2011
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
Chapter 4 User Interface Customization . . . . . . . . . . . . . . . . . . . 41
Understand User Interface Customization . . . . . . . . . . . . . . . . 41
Overview of the Customization . . . . . . . . . . . . . . . . . . . 41
Customization Glossary . . . . . . . . . . . . . . . . . . . . . . . 42
Customize Commands . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Overview of Commands . . . . . . . . . . . . . . . . . . . . . . 43
Create, Edit, and Reuse Commands . . . . . . . . . . . . . . . . . 44
Create Macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Overview of Macros . . . . . . . . . . . . . . . . . . . . . . 47
Use Special Control Characters in Macros . . . . . . . . . . 49
Pause for User Input in Macros . . . . . . . . . . . . . . . . 51
Provide International Support in Macros . . . . . . . . . . . 53
Use Built-in Commands in Macros . . . . . . . . . . . . . . 54
Repeat Commands in Macros . . . . . . . . . . . . . . . . . 54
Use Single Object Selection Mode in Macros . . . . . . . . . 55
Use Conditional Expressions in Macros . . . . . . . . . . . 56
Use AutoLISP in Macros . . . . . . . . . . . . . . . . . . . . 57
Create Tooltips for Commands . . . . . . . . . . . . . . . . . . . 59
Create and Manage Images for Commands . . . . . . . . . . . . . 59
Assign Images to a Command . . . . . . . . . . . . . . . . 59
Customize User Interface Elements . . . . . . . . . . . . . . . . . . . . 60
Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Overview of Menus . . . . . . . . . . . . . . . . . . . . . . 60
Create and Manage Pull-down Menus . . . . . . . . . . . . 61
Tool Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Overview of Tool Sets and Tool Groups . . . . . . . . . . . 64
Create and Manage Tool Sets . . . . . . . . . . . . . . . . . 65
Chapter 5
DIESEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
DIESEL Expressions in Macros . . . . . . . . . . . . . . . . . . . . . . 71
Catalog of DIESEL Functions . . . . . . . . . . . . . . . . . . . . . . . 75
+ (addition) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
- (subtraction) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
* (multiplication) . . . . . . . . . . . . . . . . . . . . . . . . . . 76
/ (division) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
= (equal to) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
< (less than) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
> (greater than) . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
!= (not equal to) . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
<= (less than or equal to) . . . . . . . . . . . . . . . . . . . . . . 78
>= (greater than or equal to) . . . . . . . . . . . . . . . . . . . . 78
and . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
angtos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
edtime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
eq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
iv | Contents