Use Macros to Swap User Interface Elements (Concept)

AutoCAD

 
Use Macros to Swap User Interface Elements
Concept Quick Reference
 
 
 

You can replace the contents of active menus, mouse buttons, tablet buttons, tablet menus, or screen menus. The swapped content can be that of another user interface element of the same type in the main CUI file, or it can come from a partial CUI file.

You cannot swap interface elements that are of different types (menus and mouse buttons, for example). However, within a given type, you can swap any user interface element for any other element.

NoteSwapping can lead to some strange behavior for tablet menus, because they typically have a different number of macros.

Use the following syntax in a macro to swap elements:

$section=menugroup.menuname

The following describes each section of the macro syntax for swapping elements:

Macro syntax for swapping elements

$

Loads an interface element

section

Specifies the element type. Valid names are:

A1-A4 for Aux menus 1 through 4

B1-B4 for mouse buttons 1 through 4

P0-P16 for pull-down menus 0 through 16

I for the image tile menu

S for the screen menu

T1-T4 for tablet menus 1 through 4

infogroup

Specifies the information group that menuname is a member of (not necessary if menuname is in the main CUI file).

menuname

Specifies which section or submenu to insert. It is the main label or alias for the section to load

The following commands illustrate submenu referencing:

$S=PARTS
$T1=EDITCMDS

You can activate the submenu mechanism in the middle of a command without interrupting the command. For example, the following command strings are equivalent:

$S=ARCSTUFF ARC
ARC $S=ARCSTUFF

Each command starts the ARC command, switches to the ARCSTUFF screen submenu, and awaits the entry of arc parameters. A space must follow the submenu reference to separate it from subsequent commands in the command.

A pull-down menu can be present either in the menu bar or on the active shortcut menu but not both.