Autolisp In Autocad Guide
: To create a custom command that can be typed into the AutoCAD command line, use the defun function with a C: prefix. For instance, (defun C:HELLO () (prompt "\nHello World!")) defines a new command called HELLO .
: In AutoLISP, the function name always comes first, followed by its arguments. For example, to add two numbers, you write (+ 1 2) instead of 1 + 2 . AutoLISP in AutoCAD
AutoLISP excels at interacting with the AutoCAD environment and its drawing database. : To create a custom command that can
: The (command ...) function allows a routine to execute standard AutoCAD commands just as a user would type them. the function name always comes first