2011

Table Of Contents
The acaddoc.lsp file can contain AutoLISP code for one or more routines, or
just a series of load function calls. The latter method is preferable, because
modification is easier. If you save the following code as an acaddoc.lsp file, the
files mydocumentapp1.lsp, build.lsp, and counter.lsp are loaded every time a new
document is opened.
(load "mydocumentapp1")
(load "build")
(load "counter")
WARNING Do not modify the reserved acad2011doc.lsp file. Autodesk provides
the acad2011doc.lsp file, which contains AutoLISP-defined functions that are
required by AutoCAD. This file is loaded into memory immediately before the
acaddoc.lsp file is loaded.
See also:
Overview of File Organization on page 4
Prevent AutoLISP Errors When Loading Startup Files on page 445
Quick Reference
Commands
APPLOAD
Loads and unloads applications and defines which applications to load at
startup.
System Variables
ACADLSPASDOC
Controls whether the acad.lsp file is loaded into every drawing or just the
first drawing opened in a session.
The MNL File for an AutoLISP Menu
When AutoCAD loads a customization file, it searches for an MNL file with a
matching file name. If it finds the file, it loads the file into memory. This
function ensures that AutoCAD loads the AutoLISP functions that are needed
for proper operation of a menu.
444 | Chapter 7 Introduction to Programming Interfaces