Functions for Working with AutoCAD
Command (cont.)
- Sending a cancel to the editor
- If you send the command without any arguments {i.e. (command)}, that is the same as sending a cancel
- When NOT to use the command function
- You cannot use the command statement in the ACAD.LSP file (the file that automatically loads your lisp routines on startup) as the AutoCAD editor has not fully loaded when these commands are executed
- You can create a defun which has them in the ACAD.LSP file, but you cannot execute them
- If you really need to use the command statement at the beginning of a drawing (i.e. you want to do a zoom extents at the beginning of every drawing session), defun a program called S::STARTUP in you ACAD.LSP file. It will be run as soon as AutoCAD is fully loaded