Function Entry: MENUCMD
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: MENUCMD
Name
menucmd
Class
Function
Syntax
(menucmd str)
Arguments and Values
str: string of the form `"menuarea=value"` selecting a menu area and a value. Supported menu areas:B1–B4: BUTTONS menus.A1–A4: AUX (auxiliary device) menus.P0–P16: pull-down menus.I: image-tile menus.T1–T4: TABLET menus.M: DIESEL expressions.Gmenugroup.nametag: a tagged menu inside a named menugroup.
Description
Issues menu commands. Switches between subpages of a menu, enables / disables menu and ribbon items, places marks, displays image-tile menus, and evaluates DIESEL expressions.
The BricsCAD interpretation of menucmd is documented as supporting only the P0 cursor menu and P1–P16 pulldowns; auxiliary, button, icon, DIESEL, screen, and tablet forms are not supported there. See Phase 4 cross-reference.
Return Values
Always returns nil.
Side Effects
Updates the menu state, evaluates DIESEL, or displays an image-tile menu.
Examples
- Display an image-tile menu:
(menucmd "I=moreicons")then(menucmd "I=*"). - Check, then disable a pulldown item:
(setq s (menucmd "P11.3=?"))and(if (= s "") (menucmd "P11.3=~")). - Evaluate DIESEL:
(menucmd "M=$(edtime,$(getvar,date),DDDD\",\" D MONTH YYYY)").
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: documented with reduced surface (only
P0/P1–P16). - Status: cross-vendor divergence — see Phase 4 reconciliation in
vendor-inventory-2026.org§10.
See Also
- BricsCAD documents only the
P0cursor menu andP1–P16pulldown forms. AutoCAD additionally documentsB1–B4(BUTTONS),A1–A4(AUX),T1–T4(TABLET),I(image-tile),M(DIESEL), andGmenugroup.nametagforms — none are accepted by BricsCAD. - Divergence documented in
vendor-inventory-2026.org§10 item 4.
Source Notes
- [menucmd (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-20357966-71D4-4D55-881B-06AFDECD24DB.htm)
- Status: documented (Phase 3 body fill).