The HELLO function must be wrapped in parentheses since it is not defined as a command. The HELLO function can be called from the AutoCAD Command prompt by entering the following: (defun HELLO () (princ "\nHello world.") (princ))įunctions can be issued from the AutoCAD Command prompt or an AutoLISP program. The following defines a function named HELLO. New commands can be defined with the defun function and by prefixing a function name with c.įunctions prefixed with c: can be accessed directly from the AutoCAD Command prompt and used to redefine an AutoCAD command.įunctions that are defined as commands should not accept arguments directly, instead input for a command should be obtained using one of the get XXX functions.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |