2011

Table Of Contents
NOTE When specifying a directory path, you must use a slash (/) or two backslashes
(\\) as the separator, because a single backslash has a special meaning in AutoLISP.
Quick Reference
Commands
APPLOAD
Loads and unloads applications and defines which applications to load at
startup.
Automatically Load and Run AutoLISP Routines
You can load AutoLISP routines each time you run AutoCAD for Mac. You
can also execute certain commands or functions at specific times during a
drawing session.
Overview of AutoLISP Automatic Loading
See also:
S::STARTUP Function: Postinitialization Execution on page 101
AutoCAD for Mac loads the contents of two user-definable files automatically:
acad.lsp and acaddoc.lsp.
By default, the acad.lsp file is loaded only once, when AutoCAD for Mac starts,
whereas acaddoc.lsp is loaded with each individual document (or drawing).
This lets you associate the loading of the acad.lsp file with application startup,
and the acaddoc.lsp file with document (or drawing) startup. The default
method for loading these startup files can be modified by changing the setting
of the ACADLSPASDOC system variable.
If one of these files defines a function of the special type S::STARTUP, this
routine runs immediately after the drawing is fully initialized. The S::STARTUP
function is described in
S::STARTUP Function: Postinitialization Execution on
page 101. As an alternative, the APPLOAD command provides a Startup Suite
option that loads the specified applications without the need to edit any files.
The acad.lsp and acaddoc.lsp startup files are not provided with AutoCAD for
Mac. It is up to the user to create and maintain these files.
96 | Chapter 7 Introduction to Programming Interfaces