2012
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
Components in CIRCLE macro
Creates a pause for the user to specify the
center point
Special control charac-
ter
\
Responds to the prompt for the circle's
radius (1)
Special control charac-
ter
1
For a list of special control characters that you can use in macros, see
Use
Special Control Characters in Macros
(page 40).
Cancel Running Commands
Make sure that you have no AutoCAD for Mac commands in progress before
you execute a macro. To automatically cancel a command before executing
a macro, enter ^C^C at the beginning of the macro (which is the same as
pressing ESC twice). Although a single ^C cancels most commands, ^C^C is
required to return to the command prompt from a dimensioning command
and ^C^C^C is required based on the current option of the -LAYER command.
^C^C handles canceling out of most command sequences and therefore is the
recommended sequence used to ensure no command is active before the macro
is started.
Verify Macro Characters
Every character in a macro is significant, even a blank space.
When you place a space at the end of the macro, AutoCAD for Mac processes
the macro as though you had entered a command (circle, for example) and
then pressed the Spacebar to complete the command.
Terminate Macros
Some macros require special terminators. Some commands (TEXT, for example)
require you to press Enter rather than Spacebar to terminate the command.
Some commands require more than one space (or Enter) to complete, but
some text editors cannot create a line with trailing blanks.
Two special conventions resolve these problems.
A semicolon (;) in a macro automatically issues Enter at the Command
prompt.
If a line ends with a control character, a backslash (\), a plus sign (+), or a
semicolon (;), AutoCAD for Mac does not add a blank space after it.
Customize Commands | 39