Customize Commands

AutoCAD

 
Customize Commands
Concept Procedure
 
 
 

You can easily create, edit, and reuse commands. The Customize tab of the Customize User Interface (CUI) Editor displays a master list of commands that are loaded in the product. You can add any commands from this list to toolbars, menus, and other user interface elements.

When you change properties of a command in the master list or on the tree view, the properties of the command are changed everywhere that command is used.

The following table shows the Scale command properties as they appear in the Properties pane.

Properties for the Scale command on the Modify menu

Properties pane item

Description

Example

Name

String displayed as a menu name or as a tooltip when you click a toolbar button. The string must include alphanumeric characters with no punctuation other than a hyphen (-) or an underscore (_).

Scale

Description

String displayed as a tooltip when the cursor hovers over a toolbar or panel button, or menu item.

Enlarges or reduces selected objects, keeping the proportions of the object the same after scaling

Extended Help File

Displays the file name and ID for the extended tooltip that is displayed when the cursor hovers over a toolbar or panel button.

 

Command Display Name

String that contains the name of the command that is related to the command.

SCALE

Macro

The command macro. It follows the standard macro syntax.

NoteWhen you change the name of a macro, the name of its corresponding menu item or toolbar button does not change. You must change a menu item or toolbar button name by selecting it in the tree view.

$M=$(if,$(eq,$(substr,$(getvar,cmdnames)

,1,4),GRIP),_scale,^C^C_scale)

Tags

Keywords associated to a command. Tags provide an additional field to search for a loaded command when using the Search field in the menu browser.

 

Element ID

Tag that uniquely identifies a command.

ID_Scale

Small Image

ID string of the small-image resource (16 × 16 bitmap). The string must include alphanumeric characters with no punctuation other than a hyphen (-) or an underscore (_). It can also be a user-defined bitmap. Click the [] button to open the Select Image File dialog box.

RCDATA_16_SCALE

Large Image

ID string of the large-image resource (32 × 32 bitmap). If the specified bitmap is not 32 × 32, the program scales it to that size. The string must include alphanumeric characters with no punctuation other than a hyphen (-) or an underscore (_). It can also be a user-defined bitmap. Click the [] button to open the Select Image File dialog box

RCDATA_16_SCALE

  • Create, Edit, and Reuse Commands

    You can create a new command from scratch, copy an existing command to create a new command, or edit the properties of an existing command. When you create or edit a command, the properties you can define are the command name, description, extended help file, command display name, macro, tags, element ID (for new commands only), and small or large image.

  • Find Command Names and Search Strings

    You can search one or more CUI files for commands or search strings (including commands or user interface element names, command display names, descriptions, macros, and tags). You can also replace commands or search strings one at a time or all at once.

  • Control the Display of Command Labels

    You can control the way that menu labels indicate a command's availability in the program. Display menu commands as grayed out (disabled), mark them with a check mark or border, or use a combination of indicators.

  • Create Images for Commands

    Images can be associated with a command, and are displayed on a toolbar button or next to a menu item in a pull-down menu. You can use images that come with the program or create your own.

  • Assign Tags to Commands

    With command tags, you can search for a command or a group of commands with the menu browser.

  • Create Tooltips and Extended Help for Commands

    Tooltips are descriptive messages that are displayed near the cursor when it hovers over a toolbar or panel button, or menu item.

  • Create Status Line Help Messages

    Status line help messages are simple, descriptive messages that are displayed on the status line (at the bottom of the application window) when the cursor hovers over a menu item.