Sinc
I am heading out the door to see some Scientist lecture on Indoor Air Quality and I quickly look at your reponse. No I dont have it set up like that. What you see for Code is what I thru in the middle of the AcadDoc File. I have some questions and will post them when I get back because now I am confused..
Thanks
It's relatively straight-forward. The ACADDOC.LSP file gets run as a DWG file is being loaded. The DWG is not fully-initialized at this point, so not all commands will work.
Items that need to wait until the DWG is fully-initialized can be run as part of the S::STARTUP function. This is much like any other Lisp command, except it gets run automatically by Autocad right after the DWG initialization is completed. (Basically, just before it gives you the command prompt, Autocad runs S::STARTUP.)
By putting the code I posted into your ACADDOC.LSP file, you are adding your own custom startup code to the overall startup suite. Note that the code defines a function called MYSTARTUP, then appends this to the already-existing function S::STARTUP. This makes sure you don't stomp on any startup commands added by verticals or other third-party customizations that you have installed. If you simply redefined S::STARTUP, you might clobber special startup stuff added by other software.