Chapter 2 -- HEADER Section
HEADER Section Group Codes

The following table lists the variables that are saved in a DXF file. For information about abbreviations and formatting used in this table, see "Formatting Conventions in This Reference."

DXF system variables
Variable Group code Description

$ACADMAINTVER

70

Maintenance version number (should be ignored)

$ACADVER

1

The AutoCAD drawing database version number:
AC1006 = R10, AC1009 = R11 and R12,
AC1012 = R13, AC1014 = R14, AC1500 = AutoCAD 2000

$ANGBASE

50

Angle 0 direction

$ANGDIR

70

1 = Clockwise angles, 0 = Counterclockwise

$ATTMODE

70

Attribute visibility: 0 = None, 1 = Normal, 2 = All

$AUNITS

70

Units format for angles

$AUPREC

70

Units precision for angles

$CECOLOR

62

Current entity color number:
0 = BYBLOCK, 256 = BYLAYER

$CELTSCALE

40

Current entity linetype scale

$CELTYPE

6

Entity linetype name, or BYBLOCK or BYLAYER

$CELWEIGHT

370

Lineweight of new objects

$CPSNID

390

Plotstyle handle of new objects. If CEPSNTYPE is 3, then this value indicates the handle.

$CEPSNTYPE

380

Plotstyle type of new objects:
0 = PlotStyle by layer
1 = PlotStyle by block
2 = PlotStyle by dictionary default
3 = PlotStyle by object ID/handle

$CHAMFERA

40

First chamfer distance

$CHAMFERB

40

Second chamfer distance

$CHAMFERC

40

Chamfer length

$CHAMFERD

40

Chamfer angle

$CLAYER

8

Current layer name

$CMLJUST

70

Current multiline justification:
0 = Top, 1 = Middle, 2 = Bottom

$CMLSCALE

40

Current multiline scale

$CMLSTYLE

2

Current multiline style name

$DIMADEC

70

Number of precision places displayed in angular dimensions

$DIMALT

70

Alternate unit dimensioning performed if nonzero

$DIMALTD

70

Alternate unit decimal places

$DIMALTF

40

Alternate unit scale factor

$DIMALTRND

40

Determines rounding of alternate units

$DIMALTTD

70

Number of decimal places for tolerance values of an alternate units dimension

$DIMALTTZ

70

Controls suppression of zeros for alternate tolerance values:
0 = Suppresses zero feet and precisely zero inches
1 = Includes zero feet and precisely zero inches
2 = Includes zero feet and suppresses zero inches
3 = Includes zero inches and suppresses zero feet

$DIMALTU

70

Units format for alternate units of all dimension style family members except angular:
1 = Scientific; 2 = Decimal; 3 = Engineering;
4 = Architectural (stacked); 5 = Fractional (stacked);
6 = Architectural; 7 = Fractional

$DIMALTZ

70

Controls suppression of zeros for alternate unit dimension values:
0 = Suppresses zero feet and precisely zero inches
1 = Includes zero feet and precisely zero inches
2 = Includes zero feet and suppresses zero inches
3 = Includes zero inches and suppresses zero feet

$DIMAPOST

1

Alternate dimensioning suffix

$DIMASO

70

1 = Create associative dimensioning, 0 = Draw individual entities

$DIMASZ

40

Dimensioning arrow size

$DIMATFIT

70

Controls dimension text and arrow placement when space is not sufficient to place both within the extension lines:
0 = Places both text and arrows outside extension lines
1 = Moves arrows first, then text
2 = Moves text first, then arrows
3 = Moves either text or arrows, whichever fits best
AutoCAD adds a leader to moved dimension text when DIMTMOVE is set to 1.

$DIMAUNIT

70

Angle format for angular dimensions:
0 = Decimal degrees, 1 = Degrees/minutes/seconds, 2 = Gradians, 3 = Radians, 4 = Surveyor's units

$DIMAZIN

70

Controls suppression of zeros for angular dimensions:
0 = Displays all leading and trailing zeros
1 = Suppresses leading zeros in decimal dimensions
2 = Suppresses trailing zeros in decimal dimensions
3 = Suppresses leading and trailing zeros

$DIMBLK

1

Arrow block name

$DIMBLK1

1

First arrow block name

$DIMBLK2

1

Second arrow block name

$DIMCEN

40

Size of center mark/lines

$DIMCLRD

70

Dimension line color:
range is 0 = BYBLOCK, 256 = BYLAYER

$DIMCLRE

70

Dimension extension line color:
range is 0 = BYBLOCK, 256 = BYLAYER

$DIMCLRT

70

Dimension text color:
range is 0 = BYBLOCK, 256 = BYLAYER

$DIMDEC

70

Number of decimal places for the tolerance values of a primary units dimension

$DIMDLE

40

Dimension line extension

$DIMDLI

40

Dimension line increment

$DIMDSEP

70

Single-character decimal separator used when creating dimensions whose unit format is decimal.

$DIMEXE

40

Extension line extension

$DIMEXO

40

Extension line offset

$DIMFAC

40

Scale factor used to calculate the height of text for dimension fractions and tolerances. AutoCAD multiplies DIMTXT by DIMTFAC to set the fractional or tolerance text height.

$DIMGAP

40

Dimension line gap

$DIMJUST

70

Horizontal dimension text position:
0 = Above dimension line and center-justified between extension lines,
1 = Above dimension line and next to first extension line,
2 = Above dimension line and next to second extension line,
3 = Above and center-justified to first extension line,
4 = Above and center-justified to second extension line

$DIMLDRBLK

1

Arrow block name for leaders

$DIMLFAC

40

Linear measurements scale factor

$DIMLIM

70

Dimension limits generated if nonzero

$DIMLUNIT

70

Sets units for all dimension types except Angular:
1 = Scientific; 2 = Decimal; 3 = Engineering
4 = Architectural; 5 = Fractional; 6 = Windows desktop

$DIMLWD

70

Dimension line lineweight:
-3 = Standard
-2 = ByLayer
-1 = ByBlock
0-211 = an integer representing 100th of mm

$DIMLWE

70

Extension line lineweight:
-3 = Standard
-2 = ByLayer
-1 = ByBlock
0-211 = an integer representing 100th of mm

$DIMPOST

1

General dimensioning suffix

$DIMRND

40

Rounding value for dimension distances

$DIMSAH

70

Use separate arrow blocks if nonzero

$DIMSCALE

40

Overall dimensioning scale factor

$DIMSD1

70

Suppression of first extension line:
0 = Not suppressed, 1 = Suppressed

$DIMSD2

70

Suppression of second extension line:


0 = Not suppressed, 1 = Suppressed

$DIMSE1

70

First extension line suppressed if nonzero

$DIMSE2

70

Second extension line suppressed if nonzero

$DIMSHO

70

1 = Recompute dimensions while dragging
0 = Drag original image

$DIMSOXD

70

Suppress outside-extensions dimension lines if nonzero

$DIMSTYLE

2

Dimension style name

$DIMTAD

70

Text above dimension line if nonzero

$DIMTDEC

70

Number of decimal places to display the tolerance values

$DIMTFAC

40

Dimension tolerance display scale factor

$DIMTIH

70

Text inside horizontal if nonzero

$DIMTIX

70

Force text inside extensions if nonzero

$DIMTM

40

Minus tolerance

$DIMTMOVE

70

Dimension text movement rules:
0 = Moves the dimension line with dimension text
1 = Adds a leader when dimension text is moved
2 = Allows text to be moved freely without a leader

$DIMTOFL

70

If text is outside extensions, force line extensions between extensions if nonzero

$DIMTOH

70

Text outside horizontal if nonzero

$DIMTOL

70

Dimension tolerances generated if nonzero

$DIMTOLJ

70

Vertical justification for tolerance values:
0 = Top, 1 = Middle, 2 = Bottom

$DIMTP

40

Plus tolerance

$DIMTSZ

40

Dimensioning tick size:
0 = No ticks

$DIMTVP

40

Text vertical position

$DIMTXSTY

7

Dimension text style

$DIMTXT

40

Dimensioning text height

$DIMTZIN

70

Controls suppression of zeros for tolerance values:
0 = Suppresses zero feet and precisely zero inches
1 = Includes zero feet and precisely zero inches
2 = Includes zero feet and suppresses zero inches
3 = Includes zero inches and suppresses zero feet

$DIMUPT

70

Cursor functionality for user positioned text:
0 = Controls only the dimension line location
1 = Controls the text position as well as the dimension line location

$DIMZIN

70

Controls suppression of zeros for primary unit values:
0 = Suppresses zero feet and precisely zero inches
1 = Includes zero feet and precisely zero inches
2 = Includes zero feet and suppresses zero inches
3 = Includes zero inches and suppresses zero feet

$DISPSILH

70

Controls the display of silhouette curves of body objects in Wire-frame mode:
0 = Off, 1 = On

$DWGCODEPAGE

3

Drawing code page; Set to the system code page when a new drawing is created, but not otherwise maintained by AutoCAD

$ELEVATION

40

Current elevation set by ELEV command

$ENDCAPS

280

Lineweight endcaps setting for new objects:
0 = none; 1 = round; 2=angle; 3=square

$EXTMAX

10, 20, 30

X, Y, and Z drawing extents upper-right corner (in WCS)


$EXTMIN

10, 20, 30

X, Y, and Z drawing extents lower-left corner (in WCS)


$EXTNAMES

290

Controls symbol table naming:
0 = Release 14 compatibility. Limits names to 31 characters in length. Names can include the letters A to Z, the numerals 0 to 9, and the special characters, dollar sign ($), underscore (_), and hyphen (-).
1 = AutoCAD 2000. Names can be up to 255 characters in length, and can include the letters A to Z, the numerals 0 to 9, spaces, and any special characters not used by Microsoft Windows and AutoCAD for other purposes.

$FILLETRAD

40

Fillet radius

$FILLMODE

70

Fill mode on if nonzero

$FINGERPRINTGUID

2

Set at creation time, uniquely identifies a particular drawing

$HANDSEED

5

Next available handle

$HYPERLINKBASE

1

Path for all relative hyperlinks in the drawing. If null, the drawing path is used.

$INSBASE

10, 20, 30

Insertion base set by BASE command (in WCS)

$INSUNITS

70

Default drawing units for AutoCAD DesignCenter blocks:
0 = Unitless; 1 = Inches; 2 = Feet; 3 = Miles; 4 = Millimeters;
5 = Centimeters; 6 = Meters; 7 = Kilometers; 8 = Microinches;
9 = Mils; 10 = Yards; 11 = Angstroms; 12 = Nanometers;
13 = Microns; 14 = Decimeters; 15 = Decameters;
16 = Hectometers; 17 = Gigameters; 18 = Astronomical units;
19 = Light years; 20 = Parsecs

$JOINSTYLE

280

Lineweight joint setting for new objects:
0=none; 1= round; 2 = angle; 3 = flat

$LIMCHECK

70

Nonzero if limits checking is on

$LIMMAX

10, 20

XY drawing limits upper-right corner (in WCS)


$LIMMIN

10, 20

XY drawing limits lower-left corner (in WCS)


$LTSCALE

40

Global linetype scale

$LUNITS

70

Units format for coordinates and distances

$LUPREC

70

Units precision for coordinates and distances

$LWDISPLAY

290

Controls the display of lineweights on the Model or Layout tab:
0 = Lineweight is not displayed
1 = Lineweight is displayed

$MAXACTVP

70

Sets maximum number of viewports to be regenerated

$MEASUREMENT

70

Sets drawing units: 0 = English; 1 = Metric

$MENU

1

Name of menu file

$MIRRTEXT

70

Mirror text if nonzero

$ORTHOMODE

70

Ortho mode on if nonzero

$PDMODE

70

Point Display mode

$PDSIZE

40

Point display size

$PELEVATION

40

Current paper space elevation

$PEXTMAX

10, 20, 30

Maximum X, Y, and Z extents for paper space

$PEXTMIN

10, 20, 30

Minimum X, Y, and Z extents for paper space

$PINSBASE

10, 20, 30

Paper space insertion base point

$PLIMCHECK

70

Limits checking in paper space when nonzero

$PLIMMAX

10, 20

Maximum X and Y limits in paper space

$PLIMMIN

10, 20

Minimum X and Y limits in paper space

$PLINEGEN

70

Governs the generation of linetype patterns around the vertices of a 2D polyline:
1 = Linetype is generated in a continuous pattern around vertices of the polyline
0 = Each segment of the polyline starts and ends with a dash

$PLINEWID

40

Default polyline width

$PROXYGRAPHICS

70

Controls the saving of proxy object images

$PSLTSCALE

70

Controls paper space linetype scaling:
1 = No special linetype scaling
0 = Viewport scaling governs linetype scaling

$PSTYLEMODE

290

Indicates whether the current drawing is in a Color-Dependent or Named Plot Style mode:
0 = Uses color-dependent plot style tables in the current drawing
1 = Uses named plot style tables in the current drawing

$PSVPSCALE

40

View scale factor for new viewports:
0 = Scaled to fit
>0 = Scale factor (a positive real value)

$PUCSBASE

2

Name of the UCS that defines the origin and orientation of orthographic UCS settings (paper space only)

$PUCSNAME

2

Current paper space UCS name

$PUCSORG

10, 20, 30

Current paper space UCS origin

$PUCSORGBACK

10, 20, 30

Point which becomes the new UCS origin after changing paper space UCS to 'BACK' when PUCSBASE is set to WORLD.

$PUCSORGBOTTOM

10, 20, 30

Point which becomes the new UCS origin after changing paper space UCS to 'BOTTOM' when PUCSBASE is set to WORLD.

$PUCSORGFRONT

10, 20, 30

Point which becomes the new UCS origin after changing paper space UCS to 'FRONT' when PUCSBASE is set to WORLD.

$PUCSORGLEFT

10, 20, 30

Point which becomes the new UCS origin after changing paper space UCS to 'LEFT' when PUCSBASE is set to WORLD.

$PUCSORGRIGHT

10, 20, 30

Point which becomes the new UCS origin after changing paper space UCS to 'RIGHT' when PUCSBASE is set to WORLD.

$PUCSORGTOP

10, 20, 30

Point which becomes the new UCS origin after changing paper space UCS to 'TOP' when PUCSBASE is set to WORLD.

$PUCSORTHOREF

2

If paper space UCS is orthographic (PUCSORTHOVIEW not equal to 0), this is the name of the UCS that the orthographic UCS is relative to. If blank, UCS is relative to WORLD.

$PUCSORTHOVIEW

70

Orthographic view type of paper space UCS:
0 = UCS is not orthographic;
1 = Top; 2 = Bottom;
3 = Front; 4 = Back;
5 = Left; 6 = Right

$PUCSXDIR

10, 20, 30

Current paper space UCS X axis

$PUCSYDIR

10, 20, 30

Current paper space UCS Y axis

$QTEXTMODE

70

Quick Text mode on if nonzero

$REGENMODE

70

REGENAUTO mode on if nonzero

$SHADEDGE

70

0 = Faces shaded, edges not highlighted
1 = Faces shaded, edges highlighted in black
2 = Faces not filled, edges in entity color
3 = Faces in entity color, edges in black

$SHADEDIF

70

Percent ambient/diffuse light, range 1-100, default 70

$SKETCHINC

40

Sketch record increment

$SKPOLY

70

0 = Sketch lines, 1 = Sketch polylines

$SPLFRAME

70

Spline control polygon display: 1 = On, 0 = Off

$SPLINESEGS

70

Number of line segments per spline patch

$SPLINETYPE

70

Spline curve type for PEDIT Spline

$SURFTAB1

70

Number of mesh tabulations in first direction

$SURFTAB2

70

Number of mesh tabulations in second direction

$SURFTYPE

70

Surface type for PEDIT Smooth

$SURFU

70

Surface density (for PEDIT Smooth) in M direction

$SURFV

70

Surface density (for PEDIT Smooth) in N direction

$TDCREATE

40

Local date/time of drawing creation (see "Special Handling of Date/Time Variables")

$TDINDWG

40

Cumulative editing time for this drawing (see "Special Handling of Date/Time Variables")

$TDUCREATE

40

Universal date/time the drawing was created (see "Special Handling of Date/Time Variables")

$TDUPDATE

40

Local date/time of last drawing update (see "Special Handling of Date/Time Variables")

$TDUSRTIMER

40

User-elapsed timer

$TDUUPDATE

40

Universal date/time of the last update/save (see "Special Handling of Date/Time Variables")

$TEXTSIZE

40

Default text height

$TEXTSTYLE

7

Current text style name

$THICKNESS

40

Current thickness set by ELEV command

$TILEMODE

70

1 for previous release compatibility mode, 0 otherwise

$TRACEWID

40

Default trace width

$TREEDEPTH

70

Specifies the maximum depth of the spatial index

$UCSBASE

2

Name of the UCS that defines the origin and orientation of orthographic UCS settings

$UCSNAME

2

Name of current UCS

$UCSORG

10, 20, 30

Origin of current UCS (in WCS)

$UCSORGBACK

10, 20, 30

Point which becomes the new UCS origin after changing model space UCS to 'BACK' when UCSBASE is set to WORLD.

$UCSORGBOTTOM

10, 20, 30

Point which becomes the new UCS origin after changing model space UCS to 'BOTTOM' when UCSBASE is set to WORLD.

$UCSORGFRONT

10, 20, 30

Point which becomes the new UCS origin after changing model space UCS to 'FRONT' when UCSBASE is set to WORLD.

$UCSORGLEFT

10, 20, 30

Point which becomes the new UCS origin after changing model space UCS to 'LEFT' when UCSBASE is set to WORLD.

$UCSORGRIGHT

10, 20, 30

Point which becomes the new UCS origin after changing model space UCS to 'RIGHT' when UCSBASE is set to WORLD.

$UCSORGTOP

10, 20, 30

Point which becomes the new UCS origin after changing model space UCS to 'TOP' when UCSBASE is set to WORLD.

$UCSORTHOREF

2

If model space UCS is orthographic (UCSORTHOVIEW not equal to 0), this is the name of the UCS that the orthographic UCS is relative to. If blank, UCS is relative to WORLD.

$UCSORTHOVIEW

70

Orthographic view type of model space UCS:
0 = UCS is not orthographic;
1 = Top; 2 = Bottom;
3 = Front; 4 = Back;
5 = Left; 6 = Right

$UCSXDIR

10, 20, 30

Direction of the current UCS X axis (in WCS)

$UCSYDIR

10, 20, 30

Direction of the current UCS Y axis (in WCS)

$UNITMODE

70

Low bit set = Display fractions, feet-and-inches, and surveyor's angles in input format

$USERI1 - 5

70

Five integer variables intended for use by third-party developers

$USERR1 - 5

40

Five real variables intended for use by third-party developers

$USRTIMER

70

0 = Timer off, 1 = Timer on

$VERSIONGUID

2

Uniquely identifies a particular version of a drawing. Updated when the drawing is modified.

$VISRETAIN

70

0 = Don't retain xref-dependent visibility settings
1 = Retain xref-dependent visibility settings

$WORLDVIEW

70

1 = Set UCS to WCS during DVIEW/VPOINT, 0 = Don't change UCS

$XEDIT

290

Controls whether the current drawing can be edited in-place when being referenced by another drawing.
0 = Can't use in-place reference editing
1 = Can use in-place reference editing


Topics in this section: