System Variable for acaddoc.lsp

System Variable for acaddoc.lsp

gcsjlewis
Collaborator Collaborator
794 Views
4 Replies
Message 1 of 5

System Variable for acaddoc.lsp

gcsjlewis
Collaborator
Collaborator

I have read a couple of posts on this, but i am a litte confused.  I set up a Acaddoc.lsp file, and i put in a call to load and run a lsp when new a new drawing is opened.  Is there a way to stop the lisp from running while you are plotting a project?

 

(autocad Electrical 2011)

 

Thanks.

0 Likes
Accepted solutions (1)
795 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant
Accepted solution

The only way I can think of to prevent acaddoc.lsp from doing its thing when a drawing is opened is to temporarily move it to a folder location that is not in the Support File Search Path list.  But remember to move it back!

 

And that assumes there's nothing else in it that you do want to be done in the drawings as you open them to Plot.  If there is something else in acaddoc.lsp like that, you could have two of those files, one with and one without the routine in question, and put the one you want to use at the moment in a higher location in the Search Path list than the other one.

 

Alternatively, have acaddoc.lsp load the routine, but not run it automatically, which would mean the User would need to call for it when it should be done.

Kent Cooper, AIA
Message 3 of 5

gcsjlewis
Collaborator
Collaborator
Ok thanks!
0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant
You're welcome. Another option that occurred to me is to RENAME acaddoc.lsp, rather than move it [and of course, change the name back again afterwards]. Whatever the approach, the movings or renamings could probably be BUILT INTO some plotting Script that ScriptPro or the like could run, but I'm not versed in that category of customization.
Kent Cooper, AIA
0 Likes
Message 5 of 5

scot-65
Advisor
Advisor
Another thought that comes to mind, which is in line to Kent's idea,
is to not actually rename or move the acaddoc.lsp, but rather create
two profiles where one profile points to a folder that contains the
load call, and the other profile does not. This would mean having
two shortcuts on the desktop with the profile switch added to each.

If you do not like the desktop shortcut method, command OPTIONS,
profile tab will allow to switch profiles however I discovered that
the PGP will carry to the next selected profile. I'm not sure about
loaded routines though.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes