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
The macro for the Address command below uses the backslash (\) to pause
for user input and the semicolon (;) for Enter.
text \.4 0 DRAFT Inc;;;Main St.;;;City, State;
The macro starts the TEXT command, pauses for the user to specify a start
point, and then enters the address on three lines. In the triple semicolon (;;;),
the first semicolon ends the text string, the second repeats TEXT, and the
third accepts the default placement below the previous line.
Macros use the special characters listed in the following table.
Special characters used in macros
DescriptionCharacter
Issues Enter;
Issues Enter^M
Issues Tab^I
Enters a space; a blank space between command sequences in a
command is equivalent to pressing the Spacebar
[blank space]
Pauses for user input (cannot be used with accelerators)\
Allows you to access a built-in AutoCAD for Mac command even if it
was undefined using the UNDEFINE command.
.
Translates AutoCAD for Mac commands and options that follow_
Displays the current top-level pull-down, shortcut, or image menu=*
Repeats a command until another command is chosen*^C^C
Introduces a conditional DIESEL macro expression ($M=)$
Turns Snap on or off (equivalent to Command-B)^B
Cancels the active command or command option (equivalent to Esc)^C
Turns Dynamic UCS on or off (equivalent to Control-D)^D
Sets the next isometric plane^E
50 | Chapter 4 User Interface Customization