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:
    • B1B4: BUTTONS menus.
    • A1A4: AUX (auxiliary device) menus.
    • P0P16: pull-down menus.
    • I: image-tile menus.
    • T1T4: 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 P1P16 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/P1P16).
  • Status: cross-vendor divergence — see Phase 4 reconciliation in vendor-inventory-2026.org §10.

See Also

  • BricsCAD documents only the P0 cursor menu and P1P16 pulldown forms. AutoCAD additionally documents B1B4 (BUTTONS), A1A4 (AUX), T1T4 (TABLET), I (image-tile), M (DIESEL), and Gmenugroup.nametag forms — none are accepted by BricsCAD.
  • Divergence documented in vendor-inventory-2026.org §10 item 4.

Source Notes