Hi!
I have the following files and i know that this is the files that AutoCAD will find first:
acad2012.lsp
acad.lsp
acad2012doc.lsp
acaddoc.lsp
When ACADLSPASDOC variable is set to 0 I expect that acad2012.lsp and acad.lsp should only be loaded when AutoCAD starts.
That´s not the case thou...
acad.lsp will not load more than once but acad2012.lsp is always loaded into every drawing.
Shouldn´t acad2012.lsp and acad.lsp go hand in hand, either be none or it will load both?
Is there some other setting I don´t know about?
Thanks in advance!
Solved! Go to Solution.
Hi Pendean,
acad2012.lsp is an AutoCAD file that you are not supposed to change, so there is not really a problem. I´m just curious why the file is loaded when it´s not supposed to. And I thought that autodesk forum would be the place to look for that answer.
If you want to hear the background... 🙂
I work on a large company that have added (load "...networkserver...\\startup.lsp") at the end of acad2012.lsp on every computer. The idea was that "startup.lsp" should only be loaded once on every AutoCAD session.
I know that you should not change the file but instead use acad.lsp but at the moment that´s not the case here.
Following quote is from page:
http://www.blog.cadnauseam.com/2008/09/01/what-is-loaded-at-autocad-startup-and-when/
"First, Autodesk’s acad2009.lsp file is loaded. Next, if you have created a file called acad.lsp, that is loaded. These two files are only loaded at first startup, unless the ACADLSPASDOC system variable is set to 1, in which case the acad.lsp file is reloaded with each new drawing."
I know it is not an official facts page but that person seems to know what he's talking about.
Its not uncommon for older custom LISPs to put an extra (load ...) call for the version-specific LISP files when called, even though its not necessary, since they were customized with extra functions instead of putting them in the user acad/acaddoc.lsp. With the current hack to load your ...startup.lsp, it wouldn't suprise me if its being called to "ensure" everything is loaded in every drawing.
You'll need to parse through your entire content (including MNL files) to ensure this isn't being done. While you're at it, its a good time to evaluate the entire start-up process with an eye to streamlining it along with pulling that acad2012.lsp hack.
I made a new installation of AutoCAD 2012 and acad2012.lsp is still loaded into every drawing.
End of story...