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
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 does not add a blank space after it.
An item that ends with a backslash (\) pauses a macro for user input.
Compare the following macros:
ucs
ucs ;
The first example enters ucs at the command prompt and presses Spacebar.
The following prompt is displayed.
Specify origin of UCS or
[Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] <World>:
The second example enters ucs, presses Spacebar, and presses Enter, which
accepts the default value (World).
Suppress Echoes and Prompts in Macros
Characters in a macro appear at the command line as though you had typed
the characters on the keyboard. This display duplication is called “echoing”.
You can suppress the “echoed” displays with the MENUECHO system variable.
If echoes and prompts from item input are turned off, a ^P in the item turns
them off.
Use Special Control Characters in Macros
You can use special characters, including control characters, in macros. In a
macro, the caret (^) is equivalent to pressing the Command key on the
keyboard. You can combine the caret with another character to construct
macros that do such things as turn the grid on and off (^G) or cancel a
command (^C).
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;
42 | Chapter 4 User Interface Customization