Special Codes

AutoCAD

 
Special Codes
 
 
 

In addition to defining vectors, a specification byte can use special codes to create additional forms and specify certain actions.

To use a special code, the second character of the three-character string (the vector length specification) must be 0, or you can specify only the code number. For example, 008 and 8 are both valid specifications.

Specification byte codes

Code

Description

000

End of shape definition

001

Activate Draw mode (pen down)

002

Deactivate Draw mode (pen up)

003

Divide vector lengths by next byte

004

Multiply vector lengths by next byte

005

Push current location onto stack

006

Pop current location from stack

007

Draw subshape number given by next byte

008

X-Y displacement given by next two bytes

009

Multiple X-Y displacements, terminated (0,0)

00A

Octant arc defined by next two bytes

00B

Fractional arc defined by next five bytes

00C

Arc defined by X-Y displacement and bulge

00D

Multiple bulge-specified arcs

00E

Process next command only if vertical text