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
Use Special Codes
The second character of the three-character string (the vector length
specification) must be 0, or you can specify the special code number. For
example, 008 and 8 are both valid specifications.
Specification byte codes
DescriptionCode
End of shape definition000
Activate Draw mode (pen down)001
Deactivate Draw mode (pen up)002
Divide vector lengths by next byte003
Multiply vector lengths by next byte004
Push current location onto stack005
Pop current location from stack006
Draw subshape number given by next byte007
X-Y displacement given by next two bytes008
Multiple X-Y displacements, terminated (0,0)009
Octant arc defined by next two bytes00A
Fractional arc defined by next five bytes00B
Arc defined by X-Y displacement and bulge00C
Multiple bulge-specified arcs00D
114 | Chapter 8 Shapes and Shape Fonts