C++
virtual void lispWillStart( const ACHAR* );
Description
This callback function indicates that the expression firstLine is about to be executed by the AutoLISP interpreter.
If the LISP function being executed is defined (with defun) as a "C:xxx" function and is being executed as an AutoCAD command (that is, just using the "xxx" part of the function name and no parentheses), then firstLine is the complete function name including the "C:" prefix and is enclosed inside a pair of parentheses(the same way it appears when executed as a true LISP function call.
Otherwise, firstLine is the actual LISP expression that has been typed in at the AutoCAD command line or is part of a menu macro.
firstLine does not have any case conversion of the alpha characters.
For example:
If there is a user-defined LISP function loaded called "C:TEST", and it is executed by typing "TEST" at the command line, then firstLine is "(C:TEST)".
If there is a user-defined LISP function loaded called "calc" and it is executed as (cAlc), then firstLine is "(cAlc)".
Or, if a menu macro contains "(getvar "cmdecho")", then firstLine is "(getvar "cmdecho")".
Parameters
| Parameters | Description |
|---|---|
| firstLine | Passed in string for the first line of the LISP expression being evaluated |