Predefines command names to load an associated AutoLISP file

(autoload filename cmdlist)

The first time a user enters a command specified in cmdlist, AutoCAD loads the application specified in filename, then continues the command.



A string specifying the .lsp file to be loaded when one of the commands defined by the cmdlist argument is entered at the Command prompt. If you omit the path from filename, AutoCAD looks for the file in the Support File Search Path.


A list of strings.

Return Values


If you associate a command with filename and that command is not defined in the specified file, AutoCAD alerts you with an error message when you enter the command.


The following causes AutoCAD to load the bonusapp.lsp file the first time the APP1, APP2, or APP3 commands are entered at the Command prompt:

(autoload "BONUSAPP" '("APP1" "APP2" "APP3"))