2012

Table Of Contents
DIESEL string expressions are used to conditionally disable or enable a menu
or ribbon button item each time they are displayed. For example, the DIESEL
string expression in the Macros cell of the Properties pane disables the MOVE
command while any other command is active.
$(if,$(getvar,cmdactive),~)MOVE^C^C_move
The AutoLISP menucmd function can also be used to disable and enable items
from a macro or application. For examples, see
Reference Pull-Down or Shortcut
Menus
on page 288.
Mark Menu or Ribbon Button Items
You can mark a menu or ribbon button item by doing one of the following:
Beginning a command name with an exclamation point and a period (!.)
Using a DIESEL string expression
Ribbon button items only support the use of DIESEL string expressions. A
menu or ribbon button item is marked in one of two ways:
A check mark. Displayed when a menu item does not have an image
associated with it.
A border. Displayed when a menu or ribbon button item has an image
associated with it; a border is displayed around the image.
Following is an example of the Edit menu with the OLE Links command
marked with a check mark and the Copy Link command's image marked with
a border:
166 | Chapter 4 User Interface Customization