2013

Table Of Contents
DIESEL
Expressions in DIESEL (Direct Interpretively Evaluated String Expression Language) take strings
as input and generate string results. DIESEL can be used in menu macros to make complex
decisions.
You can also use DIESEL in menu items as a macro language instead of AutoLISP
®
.
DIESEL expressions accept strings and generate string results.
Because DIESEL expressions handle strings exclusively, the USERS1-5 system variables
are useful for passing information from an AutoLISP routine to a DIESEL expression.
DIESEL expressions are evaluated by AutoLISP routines through the use of the
AutoLISP menucmd function.
DIESEL Expressions in Macros
You can use DIESEL string expressions in customization (CUIx) files as an
additional method of creating macros.
These expressions can return string values (text strings) in response to standard
AutoCAD commands, AutoLISP and ObjectARX
®
routines, and other macros.
They can also return string values to the menu itself, thereby altering the
appearance or content of a menu label.
A DIESEL expression that you use in a menu item must follow the
$section=submenu format where the section name is M and the submenu is the
DIESEL expression you want. Frequently, you can implement a macro more
easily with AutoLISP.
The following examples show two menu items that produce the same result;
one uses DIESEL, and the other uses AutoLISP.
This menu item uses the DIESEL expression:
^C^C^P$M=$(if,$(=,$(getvar,cvport),1),mspace,pspace)
5
63