2011

Table Of Contents
(through the loading of partial CUIx files), the following syntax will not work
in all cases.
(menucmd "P1.2=~")
This syntax relies on the location of the menu item and does not work if a
new item is inserted before POP1 by the CUILOAD command.
Menu item numbering is consecutive regardless of the hierarchy of the menu.
To make it easy for an item to address itself regardless of its location in the
menu hierarchy, use these forms:
$P@.@=xxx References the current or most recently chosen command.
$P@.n=xxx References item n in the current or most recently chosen menu.
AutoLISP Access to Label Status
The AutoLISP menucmd function accepts $Pn=xxx command strings but without
the leading $. For these functions, the xxx portion of the command string can
have special values.
Pn.i=? Returns the current disabled and marked status for the specified item
as a string (for example, ~ for a disabled item, !. for an item with a check
mark, and "" for an item that is neither grayed out nor marked).
Pn.i=#? Returns the same type of string as described for Pn.i=?, but with the
Pn.i= prefix. This is useful in conjunction with the @ forms, because the actual
menu and item number are returned.
For example, if the fifth item in the POP6 section is disabled, the following
menucmd code returns the following string values.
(menucmd "P6.5=?") returns "~"
(menucmd "P6.5=#?") returns "P6.5=~"
See Use of AutoLISP in Macros in the AutoLISP Developer's Guide.
Quick Reference
Commands
CUI
Manages the customized user interface elements in the product.
Pull-down and Shortcut Menus | 289