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.
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
Thanks for your comments. So it "re-opens" drawings that are already open when prepping for publishing?
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).