acaddoc.lsp
A LISP file AutoCAD loads every time a drawing is opened, used for per-document setup and (defun S::STARTUP).
acaddoc.lsp is the per-document startup file: AutoCAD loads it every time a DWG is opened, not just at session start. Use it when your routine needs to register reactors against the active document, define layers, or run (defun S::STARTUP () …) — the special function name AutoCAD calls automatically after any DWG opens. For session-wide setup that should only happen once, use ACAD.lsp instead.
Related guides
Related terms
A LISP file AutoCAD looks for on every session start and loads automatically — the standard place to autoload routines.
Autodesk's dialect of LISP, built into AutoCAD since 1986, used to write custom commands and automate drawings.
A special LISP function name AutoCAD calls automatically after any drawing finishes loading.