Originally Posted by
omorah
With your replies, it looks like I am doing what I am supposed to do (except not doing anything with ACAD.LSP).
Note: Acaddoc.lsp is loaded each time a drawing is loaded. Acad.lsp is only loaded once at application launch (unless you set acadlspasdoc = 1, which is not recommended) [1]
Originally Posted by
omorah
- I have the ACADDOC.LSP in: "C:\Program Files\Autodesk\AutoCAD 2014\ACADDOC.LSP"
My suggestion is to create a new directory (maybe C:\CADSTUFF) and put acaddoc.lsp in there, THEN add this path to the TOP of your support file search path.
Originally Posted by
omorah
- All the LISPs in ACADDOC.LSP are on the network folder which in turn is in my Support File Search Path.
External lisp files do not have to be in the SFSP, but it doesn't hurt.
Originally Posted by
omorah
- When AutoCAD is opened, the routines work.
- When I open a drawing file, none of the routines work.
- But when I use the Load/Unload Applications & Startup Suite, all the routines work.
Code:
;;;At the TOP of your acaddoc.lsp file, put this:
(princ "\nLoading acaddoc.lsp")
;;;At the BOTTOM of the file, put this:
(princ "\nAcaddoc.lsp successfully loaded")
Look for these lines to be printed on the command line when you open AutoCAD and when you open a drawing.
If the top one is printed, then you know the file is being loaded.
If the bottom one is missing, then something in your code is failing.