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: |
|
$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: |
|
$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: |
|
$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: |
|
$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: |
|
$DIMALTU |
70 |
Units format for alternate units of all dimension style family members except angular: |
|
$DIMALTZ |
70 |
Controls suppression of zeros for alternate unit dimension values: |
|
$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: |
|
$DIMAUNIT |
70 |
Angle format for angular dimensions: |
|
$DIMAZIN |
70 |
Controls suppression of zeros for angular dimensions: |
|
$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: |
|
$DIMCLRE |
70 |
Dimension extension line color: |
|
$DIMCLRT |
70 |
Dimension text color: |
|
$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: |
|
$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: |
|
$DIMLWD |
70 |
Dimension line lineweight: |
|
$DIMLWE |
70 |
Extension line lineweight: |
|
$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: |
|
$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 |
|
$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: |
|
$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: |
|
$DIMTP |
40 |
Plus tolerance |
|
$DIMTSZ |
40 |
Dimensioning tick size: |
|
$DIMTVP |
40 |
Text vertical position |
|
$DIMTXSTY |
7 |
Dimension text style |
|
$DIMTXT |
40 |
Dimensioning text height |
|
$DIMTZIN |
70 |
Controls suppression of zeros for tolerance values: |
|
$DIMUPT |
70 |
Cursor functionality for user positioned text: |
|
$DIMZIN |
70 |
Controls suppression of zeros for primary unit values: |
|
$DISPSILH |
70 |
Controls the display of silhouette curves of body objects in Wire-frame mode: |
|
$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: |
|
$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: |
|
$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: |
|
$JOINSTYLE |
280 |
Lineweight joint setting for new objects: |
|
$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: |
|
$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: |
|
$PLINEWID |
40 |
Default polyline width |
|
$PROXYGRAPHICS |
70 |
Controls the saving of proxy object images |
|
$PSLTSCALE |
70 |
Controls paper space linetype scaling: |
|
$PSTYLEMODE |
290 |
Indicates whether the current drawing is in a Color-Dependent or Named Plot Style mode: |
|
$PSVPSCALE |
40 |
View scale factor for new viewports: |
|
$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: |
|
$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 |
|
$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: |
|
$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 |
|
$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. |