Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Why does publishing trigger acaddoc.lsp to run?

3 REPLIES 3
Reply
Message 1 of 4
nbawden
313 Views, 3 Replies

Why does publishing trigger acaddoc.lsp to run?

Why does publishing trigger acaddoc.lsp to run?

 

Whilst debugging my acaddoc.lsp I have a couple of alerts in the code and when I just published some drawings the alerts popped up telling me that acaddoc.lsp had just run.

3 REPLIES 3
Message 2 of 4
jurgen.galba
in reply to: nbawden

the "acaddoc.lsp" is a lisp file that will be executed on opening any *.dwg

the "acad.lsp" will run on opening an autocad session.

 

publishing needs to open you dwg's, and therefore the "acaddoc.lsp" runs as well

- Aut viam inveniam aut faciam -
(I shall either find a way or make one.)
Message 3 of 4
nbawden
in reply to: jurgen.galba

Thanks for your comments. So it "re-opens" drawings that are already open when prepping for publishing?

 

Message 4 of 4
jurgen.galba
in reply to: nbawden

no, it does not re-open, when already open, it opens while the drawing is opened

 

Each time a drawing opens, AutoCAD searches for the acaddoc.lsp file. If it finds one, it loads the file into memory. The acaddoc.lsp file is always loaded with each drawing. The acaddoc.lsp file is intended to be associated with each document (or drawing) initialization. This file is useful if you want to load a library of AutoLISP routines to be available every time you start a new drawing (or open an existing drawing).

- Aut viam inveniam aut faciam -
(I shall either find a way or make one.)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost