2013
Table Of Contents
- Contents
- Basic Customization
- Custom Linetypes
- Custom Hatch Patterns
- User Interface Customization
- DIESEL
- Command Scripts
- Introduction to Programming Interfaces
- Shapes and Shape Fonts
- Overview of Shape Files
- Create Shape Definition Files
- Shape Descriptions
- Vector Length and Direction Code
- Special Codes
- Use Special Codes
- Codes 0, 1, and 2: End of Shape and Draw Mode Control
- Codes 3 and 4: Size Control
- Codes 5 and 6: Location Save/Restore
- Code 7: Subshape
- Codes 8 and 9: X-Y Displacements
- Code 00A: Octant Arc
- Code 00B: Fractional Arc
- Codes 00C and 00D: Bulge-Specified Arcs
- Code 00E: Flag Vertical Text Command
- Text Font Descriptions
- Sample Files
- Big Font Descriptions
- Unicode Font Descriptions
- Superscripts and Subscripts in SHX Files
- Index
Control the Display of Command Items
The way a menu item is displayed indicates its availability in the program.
A menu item can be displayed as:
Grayed out (disabled)
Marked with a check marker or border
Both grayed out and marked
Gray Out (Disable) Menu Items
You gray out a menu item by doing one of the following:
Beginning a name with a tilde (~)
Using a DIESEL string expression
For more information about using DIESEL expressions, see DIESEL Expressions
in Macros. When grayed out, the macro and submenus associated with the
menu item are made inaccessible.
DIESEL string expressions are used to conditionally disable or enable a menu
item each time they are displayed. For example, the DIESEL string expression
in the Macro text box in the Properties section disables the MOVE command
while any other command is active.
$(if,$(getvar,cmdactive),~)MOVE^C^C_move
Mark Menu Items
You can mark a menu item by doing one of the following:
Beginning a command name with an exclamation point and a period (!.)
Using a DIESEL string expression
A menu item is marked with or without a check mark.
Menu items can contain DIESEL string expressions to conditionally mark them
each time they are displayed. When the following DIESEL string is added to
the Macro text box for the applicable command in the Properties section on
the Commands tab, a check mark is placed to the left of the menu item whose
related system variable is currently enabled.
$(if,$(getvar,orthomode),!.)Ortho^O
50 | Chapter 4 User Interface Customization