Anyone have a lisp like this?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Anyone have a lisp like this?

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
spectrefish
Guest





Posted: Sat Dec 18, 2004 12:05 am    Post subject: Anyone have a lisp like this? Reply with quote

I don't know much about lisp...I will learn eventually. But I would like a routine that changes the ltscale to 1 every time I open a drawing. There can't be much to it. I will load it into my startup suite.
Does anyone have something that would do this? Or would you be willing to make one quick?
TIA

Back to top
BillZ
Guest





Posted: Sat Dec 18, 2004 12:11 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

(setvar "ltscale" 1.0)


Bill
Back to top
BillZ
Guest





Posted: Sat Dec 18, 2004 12:12 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

When I think about this.

Are you sure you want to change ANY drawing you open to this?

Bill

Back to top
spectrefish
Guest





Posted: Sat Dec 18, 2004 12:19 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

Thanks Bill, I knew it would be very simple.

For now, any drawing I open needs to be changed to ltscale 1 so....yes. It is only a temporary thing.

I appreciate your help.
Back to top
Tom Smith
Guest





Posted: Sat Dec 18, 2004 12:21 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

(setvar "ltscale" 1)

However, there's a big question on why you'd want to do this. If you want to
start a new drawing with settings per your standards, put this and other
settings in a template and you're done. That's what templates are for. You
shouldn't need to change a setting in a new file, it ought to already suit
your standards.

If you want to change an existing drawing, then I'd wonder why the existing
drawing was that way, and what impact you're having by making that change.
I'm resitant to having ANY variable setting changed automatically upon
opening a drawing. I want to exert that kind of control manually. At most,
I've run lisps which simply checked the stauts of certain variables, and
alerted me to unusual settings. But I've never found it necessary to have a
drawing altered on being opened. The apparent need to do that has always
been a sign that something else needed to be changed, usually the way in
which drawings were being created.

Besides, once you "fix" a drawing with the wrong setting, it never needs
fixing again, so there's no need to run a fixer-upper forever. If you need
to fix the setting in a finite number of files, I'd make a toolbar button
for the task. The macro would be something like 'ltscale;1;
Back to top
BillZ
Guest





Posted: Sat Dec 18, 2004 12:22 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

You're welcome.

Bill
Back to top
spectrefish
Guest





Posted: Sat Dec 18, 2004 12:34 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

Thanks Tom, I appreciate your advice. This is merely a temporary thing for a certain set of drawings. Then I will remove it from my startup suite.
Back to top
Bill DeShawn
Guest





Posted: Sun Dec 19, 2004 3:42 am    Post subject: Re: Anyone have a lisp like this? Reply with quote

If itīs only temporary, then place it in the startup of appload. Give it a
file name like "ltsc1.lsp" and merely load it. With just the one line of
code, it will execute. If no other code is in place like (princ) you will
see the return of the system variable change on screen.

--
Bill DeShawn
bdeshawn@nospamsterling.net
http://my.sterling.net~bdeshawn

"spectrefish" <nospam@address.withheld> wrote in message
news:381943.1103311188239.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
Thanks Bill, I knew it would be very simple.

For now, any drawing I open needs to be changed to ltscale 1 so....yes.
It is only a temporary thing.

I appreciate your help.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB