DXF LISP
DXF LISP
DXF LISP
DXF Reference
February 2011
Certain materials included in this publication are reprinted with the permission of the copyright holder.
Trademarks
The following are registered trademarks or trademarks of Autodesk, Inc., and/ or its subsidiaries and/ or affiliates in the USA and other countries:
3DEC (design/ logo), 3December, 3December.com, 3ds Max, Algor, Alias, Alias (swirl design/ logo), AliasStudio, Alias|Wavefront (design/ logo),
ATC, AUGI, AutoCAD, AutoCAD Learning Assistance, AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface,
Autodesk, Autodesk Intent, Autodesk Inventor, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap, AutoSketch, AutoTrack, Backburner,
Backdraft, Beast, Built with ObjectARX (logo), Burn, Buzzsaw, CAiCE, Civil 3D, Cleaner, Cleaner Central, ClearScale, Colour Warper, Combustion,
Communication Specification, Constructware, Content Explorer, Dancing Baby (image), DesignCenter, Design Doctor, Designer's Toolkit,
DesignKids, DesignProf, DesignServer, DesignStudio, Design Web Format, Discreet, DWF, DWG, DWG (logo), DWG Extreme, DWG TrueConvert,
DWG TrueView, DXF, Ecotect, Exposure, Extending the Design Team, Face Robot, FBX, Fempro, Fire, Flame, Flare, Flint, FMDesktop, Freewheel,
GDX Driver, Green Building Studio, Heads-up Design, Heidi, HumanIK, IDEA Server, i-drop, Illuminate Labs AB (design/ logo), ImageModeler,
iMOUT, Incinerator, Inferno, Inventor, Inventor LT, Kynapse, Kynogon, LandXplorer, LiquidLight, LiquidLight (design/ logo), Lustre, MatchMover,
Maya, Mechanical Desktop, Moldflow, Moldflow Plastics Advisers, MPI, Moldflow Plastics Insight, Moldflow Plastics Xpert, Moondust, MotionBuilder,
Movimento, MPA, MPA (design/ logo), MPX, MPX (design/ logo), Mudbox, Multi-Master Editing, Navisworks, ObjectARX, ObjectDBX, Opticore,
Pipeplus, PolarSnap, PortfolioWall, Powered with Autodesk Technology, Productstream, ProMaterials, RasterDWG, RealDWG, Real-time Roto,
Recognize, Render Queue, Retimer, Reveal, Revit, RiverCAD, Robot, Showcase, Show Me, ShowMotion, SketchBook, Smoke, Softimage,
Softimage|XSI (design/ logo), Sparks, SteeringWheels, Stitcher, Stone, StormNET, StudioTools, ToolClip, Topobase, Toxik, TrustedDWG, U-Vis,
ViewCube, Visual, Visual LISP, Volo, Vtour, WaterNetworks, Wire, Wiretap, WiretapCentral, XSI.
All other brand names, product names or trademarks belong to their respective holders.
Disclaimer
THIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLEBY AUTODESK, INC. "AS IS." AUTODESK, INC. DISCLAIMS
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS.
Published by:
Autodesk, Inc.
111 McInnis Parkway
San Rafael, CA 94903, USA
iii
iv | Contents
Contents | v
vi | Contents
Ind ex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
Contents | vii
Th e DXF™ form at is a tagged data represen tation of all th e in form ation con tain ed in an
AutoCAD ® drawin g file. Tagged data m ean s th at each data elem en t in th e file is preceded by
an in teger n um ber th at is called a group code. A group code's value in dicates wh at type of data
elem en t follows. Th is value also in dicates th e m ean in g of a data elem en t for a given object
(or record) type. Virtually all user-specified in form ation in a drawin g file can be represen ted
in DX F form at.
“ ENTITIES Section”
0-9 String (with the introduction of extended symbol names in AutoCAD 2000, the 255-character
limit has been increased to 2049 single-byte characters not including the newline at the end
of the line)
410-419 String
430-439 String
450-459 Long
470-479 String
-1 APP: entity name. The name changes each time a drawing is opened. It is never saved (fixed)
9 DXF: variable name identifier (used only in HEADER section of the DXF file)
10 Primary point; this is the start point of a line or text entity, center of a circle, and so on
DXF: X value of the primary point (followed by Y and Z value codes 20 and 30)
APP: 3D point (list of three reals)
40-48 Double-precision floating-point values (text height, scale factors, and so on)
48 Linetype scale; double precision floating point scalar value; default value is defined for all entity
types
49 Repeated double-precision floating-point value. M ultiple 49 groups may appear in one entity
for variable-length tables (such as the dash lengths in the LTYPE table). A 7x group always appears
before the first 49 group to specify the table length
50-58 Angles (output in degrees to DXF files and radians through AutoLISP and ObjectARX applications)
68 APP: identifies whether viewport is on but fully off screen; is not active or is off
100 Subclass data marker (with derived class name as a string). Required for all objects and entity
classes that are derived from another concrete class. The subclass data marker segregates data
defined by different classes in the inheritance chain for the same object.
This is in addition to the requirement for DXF names for each distinct concrete class derived
from ObjectARX (see Subclass M arkers on page 243)
102 Control string, followed by “ {<arbitrary name>” or “ }” . Similar to the xdata 1002 group code,
except that when the string begins with “ {“ , it can be followed by an arbitrary string whose
interpretation is up to the application. The only other control string allowed is “ }” as a group
terminator. AutoCAD does not interpret these strings except during drawing audit operations.
They are for application use
120-122 DXF: Y value of UCS origin, UCS X-axis, and UCS Y-axis
130-132 DXF: Z value of UCS origin, UCS X-axis, and UCS Y-axis
140-149 Double-precision floating-point values (points, elevation, and DIM STYLE settings, for example)
170-179 16-bit integer values, such as flag bits representing DIM STYLE settings
310-319 Arbitrary binary chunks with same representation and limits as 1004 group codes: hexadecimal
strings of up to 254 characters represent data chunks of up to 127 bytes
320-329 Arbitrary object handles; handle values that are taken “ as is” . They are not translated during
INSERT and XREF operations
330-339 Soft-pointer handle; arbitrary soft pointers to other objects within same DXF file or drawing.
Translated during INSERT and XREF operations
340-349 Hard-pointer handle; arbitrary hard pointers to other objects within same DXF file or drawing.
Translated during INSERT and XREF operations
350-359 Soft-owner handle; arbitrary soft ownership links to other objects within same DXF file or
drawing. Translated during INSERT and XREF operations
360-369 Hard-owner handle; arbitrary hard ownership links to other objects within same DXF file or
drawing. Translated during INSERT and XREF operations
370-379 Lineweight enum value (AcDb::LineWeight). Stored and moved around as a 16-bit integer.
Custom non-entity objects may use the full range, but entity classes only use 371-379 DXF
group codes in their representation, because AutoCAD and AutoLISP both always assume a
370 group code is the entity's lineweight. This allows 370 to behave like other “ common” entity
fields
380-389 PlotStyleName type enum (AcDb::PlotStyleNameType). Stored and moved around as a 16-bit
integer. Custom non-entity objects may use the full range, but entity classes only use 381-389
DXF group codes in their representation, for the same reason as the Lineweight range above
390-399 String representing handle value of the PlotStyleName object, basically a hard pointer, but has
a different range to make backward compatibility easier to deal with. Stored and moved around
as an object ID (a handle in DXF files) and a special type in AutoLISP. Custom non-entity objects
may use the full range, but entity classes only use 391-399 DXF group codes in their represent-
ation, for the same reason as the lineweight range above
410-419 String
420-427 32-bit integer value. When used with True Color; a 32-bit integer representing a 24-bit color
value. The high-order byte (8 bits) is 0, the low-order byte an unsigned char holding the Blue
value (0-255), then the Green value, and the next-to-high order byte is the Red Value. Convering
this integer value to hexadecimal yields the following bit mask: 0x00RRGGBB. For example, a
true color with Red==200, Green==100 and Blue==50 is 0x00C86432, and in DXF, in decimal,
13132850
430-437 String; when used for True Color, a string representing the name of the color
440-447 32-bit integer value. When used for True Color, the transparency value
450-459 Long
470-479 String
480-481 Hard-pointer handle; arbitrary hard pointers to other objects within same DXF file or drawing.
Translated during INSERT and XREF operations
999 DXF: The 999 group code indicates that the line following it is a comment string. SAVEAS does
not include such groups in a DXF output file, but OPEN honors them and ignores the comments.
You can use the 999 group to include comments in a DXF file that you've edited
1001 Registered application name (ASCII string up to 31 bytes long) for extended data
11
$DIM ALTU 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
$DIM ATFIT 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 = M oves arrows first, then text
2 = M oves text first, then arrows
3 = M oves either text or arrows, whichever fits best
AutoCAD adds a leader to moved dimension text when
DIM TMOVE is set to 1
$DIM FAC 40 Scale factor used to calculate the height of text for dimen-
sion fractions and tolerances. AutoCAD multiplies DIM TXT
by DIM TFAC to set the fractional or tolerance text height
$DIM LUNIT 70 Sets units for all dimension types except Angular:
1 = Scientific; 2 = Decimal; 3 = Engineering;
4 = Architectural; 5 = Fractional; 6 = Windows desktop
$DWGCODEPAGE 3 Drawing code page; set to the system code page when a
new drawing is created, but not otherwise maintained by
AutoCAD
$EXTM AX 10, 20, 30 X, Y, and Z drawing extents upper-right corner (in WCS)
$EXTM IN 10, 20, 30 X, Y, and Z drawing extents lower-left corner (in WCS)
$HYPERLINKBASE 1 Path for all relative hyperlinks in the drawing. If null, the
drawing path is used
$INDEXCTL 280 Controls whether layer and spatial indexes are created and
saved in drawing files:
0 = No indexes are created
1 = Layer index is created
2 = Spatial index is created
3 = Layer and spatial indexes are created
$INSBASE 10, 20, 30 Insertion base set by BASE command (in WCS)
$INTERFEREVPVS 346 Hard-pointer ID to the visual style for the viewport during
interference checking. Default visual style is 3d Wireframe.
$PUCSBASE 2 Name of the UCS that defines the origin and orientation
of orthographic UCS settings (paper space only)
$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
$SORTENTS 280 Controls the object sorting methods; accessible from the
Options dialog box User Preferences tab. SORTENTS uses
the following bitcodes:
0 = Disables SORTENTS
1 = Sorts for object selection
2 = Sorts for object snap
4 = Sorts for redraws
8 = Sorts for M SLIDE command slide creation
16 = Sorts for REGEN commands
32 = Sorts for plotting
64 = Sorts for PostScript output
$TDUCREATE 40 Universal date/ time the drawing was created (see “ Special
Handling of Date/ Time Variables” )
$TDUUPDATE 40 Universal date/ time of the last update/ save (see “ Special
Handling of Date/ Time Variables” )
$UCSBASE 2 Name of the UCS that defines the origin and orientation
of orthographic UCS settings
$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
$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)
$UNITM ODE 70 Low bit set = Display fractions, feet-and-inches, and survey-
or's angles in input format
$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
Note th at DATE return s on ly a true Julian date if th e system 's clock is set to
UTC/ Zulu (Green wich M ean Tim e). TDCREATE and TDUPDATE h ave th e sam e
form at as DATE, but th eir values represen t th e creation tim e an d last update
tim e of th e curren t drawin g.
TDINDW G an d TDUSRTIM ER (an d th e $TDINDW G an d $TDUSRTIM ER DXF
h eader variables) use a form at similar to that of DATE, but their values represent
elapsed tim es, as in
<Number of days>.<Fraction of day>
Th e group codes described in th is ch apter are foun d on ly in DXF™ files. Th e CLASSES section
h olds th e in form ation for application -defin ed classes wh ose in stan ces appear in th e BLOCKS,
ENTITIES, an d OBJECTS section s of th e database. It is assum ed th at a class defin ition is
perm an en tly fixed in th e class h ierarch y. All fields are required.
2 C++ class name. Used to bind with software that defines object class
behavior; always unique
31
280 Was-a-proxy flag. Set to 1 if class was not loaded when this DXF file was
created, and 0 otherwise
281 Is-an-entity flag. Set to 1 if class was derived from the AcDbEntity class
and can reside in the BLOCKS or ENTITIES section. If 0, instances may
appear only in the OBJECTS section
ACDBDICTIONARYWDFLT AcDbDictionaryWithDefault 0 0 0
ACDBPLACEHOLDER AcDbPlaceHolder 0 0 0
ARCALIGNEDTEXT AcDbArcAlignedText 0 0 1
DICTIONARYVAR AcDbDictionaryVar 0 0 0
HATCH AcDbHatch 0 0 1
IDBUFFER AcDbIdBuffer 0 0 0
IM AGEDEF AcDbRasterImageDef 0 0 0
IM AGEDEF_REACTOR AcDbRasterImageDefReactor 1 0 0
LAYER_INDEX AcDbLayerIndex 0 0 0
LAYOUT AcDbLayout 0 0 0
LWPOLYLINE AcDbPolyline 0 0 1
OBJECT_PTR CAseDLPNTableRecord 1 0 0
OLE2FRAM E AcDbOle2Frame 0 0 1
PLOTSETTINGS AcDbPlotSettings 0 0 0
RASTERVARIABLES AcDbRasterVariables 0 0 0
RTEXT RText 0 0 1
SORTENTSTABLE AcDbSortentsTable 0 0 0
SPATIAL_INDEX AcDbSpatialIndex 0 0 0
SPATIAL_FILTER AcDbSpatialFilter 0 0 0
WIPEOUTVARIABLES AcDbWipeoutVariables 0 0 0
35
2 Table name
5 Handle
102 “ {ACAD_XDICTIONARY” indicates the start of an extension dictionary group. This group exists
only if persistent reactors have been attached to this object (optional)
application- Codes and values within the 102 groups are application defined (optional)
defined codes
102 “ {ACAD_REACTORS” indicates the start of the AutoCAD persistent reactors group. This group
exists only if persistent reactors have been attached to this object (optional)
102 “ {ACAD_XDICTIONARY” indicates the start of an extension dictionary group. This group exists
only if persistent reactors have been attached to this object (optional)
APPID
Th e followin g group codes apply to APPID sym bol table en tries. In addition
to th e group codes described h ere, see Com m on Group Codes for Sym bol
Table En tries on page 37. For in form ation about abbreviation s an d form attin g
used in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
2 User-supplied (or application-supplied) application name (for extended data). These table
entries maintain a set of names for all registered applications
BLOCK_RECORD
Th e followin g group codes apply to BLOCK_RECORD sym bol table en tries.
In addition to th e group codes described h ere, see Com m on Group Codes for
Sym bol Table En tries on page 37. For in form ation about abbreviation s an d
form attin g used in th is table, see Form attin g Con ven tion s in Th is Referen ce
on page 2.
2 Block name
DIMSTYLE
Th e followin g group codes apply to DIM STYLE sym bol table en tries. Th e
DIM STYLE system variables are described in “ System Variables,” in th e
Command Reference. In addition to the group codes described h ere, see Comm on
Group Codes for Sym bol Table En tries on page 37. For in form ation about
DIMSTYLE | 39
3 DIM POST
4 DIM APOST
40 DIM SCALE
41 DIM ASZ
42 DIM EXO
43 DIM DLI
44 DIM EXE
45 DIM RND
46 DIM DLE
47 DIM TP
48 DIMTM
140 DIMTXT
141 DIMCEN
142 DIMTSZ
143 DIMALTF
144 DIMLFAC
145 DIMTVP
146 DIMTFAC
147 DIMGAP
148 DIMALTRND
71 DIMTOL
72 DIMLIM
73 DIMTIH
74 DIMTOH
75 DIMSE1
76 DIMSE2
77 DIMTAD
78 DIMZIN
79 DIMAZIN
170 DIMALT
DIMSTYLE | 41
270 DIM UNIT (obsolete, now use DIM LUNIT AND DIM FRAC)
281 DIMSD1
282 DIMSD2
283 DIMTOLJ
284 DIMTZIN
285 DIMALTZ
286 DIMALTTZ
287 DIMFIT (obsolete, now use DIM ATFIT and DIMTM OVE)
288 DIMUPT
289 DIMATFIT
LAYER
Th e followin g group codes apply to LAYER sym bol table en tries. In addition
to th e group codes described h ere, see Com m on Group Codes for Sym bol
LAYER | 43
2 Layer name
6 Linetype name
Xref-depen den t layers are output durin g SAVEAS. For th ese layers, th e
associated lin etype n am e in th e DXF file is always CONTINUOUS.
LTYPE
Th e followin g group codes apply to LTYPE sym bol table en tries. In addition
to th e group codes described h ere, see Com m on Group Codes for Sym bol
2 Linetype name
74 Complex linetype element type (one per element). Default is 0 (no embedded shape/ text)
The following codes are bit values:
1 = If set, code 50 specifies an absolute rotation; if not set, code 50 specifies a relative rotation
2 = Embedded element is a text string
4 = Embedded element is a shape
LTYPE | 45
50 R = (relative) or A = (absolute) rotation value in radians of embedded shape or text; one per
element if code 74 specifies an embedded shape or text string
Th e group codes 74, 75, 340, 46, 50, 44, 45, an d 9 are n ot return ed by th e
tblsearch or tblnext fun ction s. You m ust use tblobjname to retrieve th ese
values with in an application .
STYLE
Th e followin g group codes apply to STYLE sym bol table en tries. In addition
to th e group codes described h ere, see Com m on Group Codes for Sym bol
Table En tries on page 37. For in form ation about abbreviation s an d form attin g
used in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
2 Style name
41 Width factor
50 Oblique angle
1071 A long value which contains a truetype font’s pitch and family, charset, and italic and bold flags
A STYLE table item is also used to record sh ape file LOAD com m an d requests.
In th is case th e first bit (1) is set in th e 70 group flags an d on ly th e 3 group
(sh ape file n am e) is m ean in gful (all th e oth er groups are output, h owever).
UCS
Th e followin g group codes apply to UCS sym bol table en tries. In addition to
th e group codes described h ere, see Com m on Group Codes for Sym bol Table
En tries on page 37. For in form ation about abbreviation s an d form attin g used
in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
2 UCS name
UCS | 47
79 Always 0
146 Elevation
346 ID/ handle of base UCS if this is an orthographic. This code is not present if the 79 code is 0. If
this code is not present and 79 code is non-zero, then base UCS is assumed to be WORLD
71 Orthographic type (optional; always appears in pairs with the 13, 23, 33 codes):
1 = Top; 2 = Bottom
3 = Front; 4 = Back
5 = Left; 6 = Right
Each 71/ 13,23,33 pair defin es th e UCS origin for a particular orth ograph ic
type relative to th is UCS. For exam ple, if th e followin g pair is presen t, th en
VIEW
Th e followin g group codes apply to VIEW sym bol table en tries. In addition
to th e group codes described h ere, see Com m on Group Codes for Sym bol
Table En tries on page 37. For in form ation about abbreviation s an d form attin g
used in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
2 Name of view
VIEW | 49
21, 31 DXF: Y and Z values of view direction from target (in WCS)
42 Lens length
50 Twist angle
345 ID/ handle of AcDbUCSTableRecord if UCS is a named UCS. If not present, then UCS is
unnamed (appears only if code 72 is set to 1)
346 ID/ handle of AcDbUCSTableRecord of base UCS if UCS is orthographic (79 code is non-
zero). If not present and 79 code is non-zero, then base UCS is taken to be WORLD (appears
only if code 72 is set to 1)
VIEW | 51
2 Viewport name
42 Lens length
45 View height
72 Circle sides
331 or 441 Soft or hard-pointer ID/ handle to frozen layer objects; repeats for each frozen layers
VPORT | 53
74 UCSICON setting
345 ID/ handle of AcDbUCSTableRecord if UCS is a named UCS. If not present, then UCS is unnamed
346 ID/ handle of AcDbUCSTableRecord of base UCS if UCS is orthographic (79 code is non-zero).
If not present and 79 code is non-zero, then base UCS is taken to be WORLD
146 Elevation
141 Brightness
142 Contrast
VPORT | 55
57
5 Handle
application- Codes and values within the 102 groups are application defined (optional)
defined codes
8 Layer name
2 Block name
10 Base point
DXF: X value; APP: 3D point
3 Block name
ENDBLK
Th e followin g group codes apply to en dblk objects. For in form ation about
abbreviation s an d form attin g used in th is table, see Form attin g Con ven tion s
in Th is Referen ce on page 2.
ENDBLK | 59
5 Handle
application- Codes and values within the 102 groups are application defined (optional)
defined codes
8 Layer name
Th is ch apter presen ts th e group codes th at apply to graph ical objects. Th ese codes are foun d
in th e ENTITIES section of a DXF™ file an d are used by AutoLISP® an d ObjectARX ® application s
in en tity defin ition lists.
NOTE Do not write programs that rely on the order shown in these DXF code tables.
Although these tables show the order of group codes as they usually appear, the
®
order can change under certain conditions or may be changed in a future AutoCAD
release. The code that controls an entity should be driven by a case (switch) or a
table so that it can process each group correctly even if the order is unexpected.
W h en a group is om itted, its default value upon in put (wh en usin g OPEN) is
indicated in the third colum n . If th e value of a group code is equal to the default,
it is om itted upon output (wh en usin g SAVEAS). For in form ation about
abbreviation s an d form attin g used in th is table, see Form attin g Con ven tion s
in Th is Referen ce on page 2.
-1 APP: entity name (changes each time a drawing is opened) not omitted
61
application- Codes and values within the 102 groups are application-defined (optional) no default
defined codes
102 “ {ACAD_REACTORS” indicates the start of the AutoCAD persistent reactors no default
group. This group exists only if persistent reactors have been attached
to this object (optional)
6 Linetype name (present if not BYLAYER). The special name BYBLOCK in- BYLAYER
dicates a floating linetype (optional)
347 Hard-pointer ID/ handle to material object (present if not BYLAYER) BYLAYER
62 Color number (present if not BYLAYER); zero indicates the BYBLOCK BYLAYER
(floating) color; 256 indicates BYLAYER; a negative value indicates that
the layer is turned off (optional)
370 Lineweight enum value. Stored and moved around as a 16-bit integer. not omitted
92 Number of bytes in the proxy entity graphics represented in the sub- no default
sequent 310 groups, which are binary chunk records (optional)
310 Proxy entity graphics data (multiple lines; 256 characters max. per line) no default
(optional)
420 A 24-bit color value that should be dealt with in terms of bytes with values no default
of 0 to 255. The lowest byte is the blue value, the middle byte is the
green value, and the third byte is the red value. The top byte is always
0. The group code cannot be used by custom entities for their own data
because the group code is reserved for AcDbEntity, class-level color data
and AcDbEntity, class-level transparency data
430 Color name. The group code cannot be used by custom entities for their no default
own data because the group code is reserved for AcDbEntity, class-level
color data and AcDbEntity, class-level transparency data
440 Transparency value. The group code cannot be used by custom entities no default
for their own data because the group code is reserved for AcDbEntity,
class-level color data and AcDbEntity, class-level transparency data
3DFACE
Th e followin g group codes apply to 3dface en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
13 Fourth corner (in WCS). If only three corners are entered, this is the same as the third corner
DXF: X value; APP: 3D point
3DSOLID
Th e followin g group codes apply to 3dsolid en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
3 Additional lines of proprietary data (if previous group 1 string is greater than 255 characters)
(optional)
ACAD_PROXY_ENTITY
Th e followin g group codes apply to proxy en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
3DSOLID | 65
91 DXF: Application entity's class ID. Class IDs are based on the order of the class in the CLASSES
section. The first class is given the ID of 500, the next is 501, and so on
310 DXF: Binary graphics data (multiple entries can appear) (optional)
310 DXF: Binary entity data (multiple entries can appear) (optional)
95 DXF: Object drawing format when it becomes a proxy (a 32-bit unsigned integer):
Low word is AcDbDwgVersion
High word is M aintenanceReleaseVersion
ARC
The followin g group codes apply to arc entities. In addition to th e group codes
described h ere, see Com m on Group Codes for En tities on page 61. For
40 Radius
50 Start angle
51 End angle
ATTDEF
Th e followin g group codes apply to attdef (attribute defin ition ) en tities. In
addition to th e group codes described h ere, see Com m on Group Codes for
En tities on page 61. For in form ation about abbreviation s an d form attin g used
in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
ATTDEF | 67
40 Text height
41 Relative X scale factor (width) (optional; default = 1). This value is also adjusted when fit-type
text is used
71 Text generation flags (optional; default = 0); see TEXT on page 144 group codes
72 Horizontal text justification type (optional; default = 0); see TEXT on page 144 group codes
21, 31 DXF: Y and Z values of second alignment point (in OCS) (optional)
3 Prompt string
70 Attribute flags:
1 = Attribute is invisible (does not appear)
2 = This is a constant attribute
4 = Verification is required on input of this attribute
8 = Attribute is preset (no prompt during insertion)
74 Vertical text justification type (optional, default = 0); see group code 73 inTEXT on page 144
280 Lock position flag. Locks the position of the attribute within the block reference
280 Duplicate record cloning flag (determines how to merge duplicate entries):
1 = Keep existing
70 M Text flag:
2 = multiline attribute
4 = constant multiline attribute definition
70 isReallyLocked flag:
0 = unlocked
1 = locked
ATTDEF | 69
67 Absent or zero indicates entity is in model space. 1 indicates entity is in paper space (optional)
8 Layer name
10 Insertion point
DXF: X value; APP: 3D point
71 Attachment point:
1 = Top left; 2 = Top center; 3 = Top right
4 = M iddle left; 5 = M iddle center; 6 = M iddle right
7 = Bottom left; 8 = Bottom center; 9 = Bottom right
72 Drawing direction:
1 = Left to right
3 = Top to bottom
5 = By style (the flow direction is inherited from the associated text style)
1 Text string
If the text string is less than 250 characters, all characters appear in group 1. If the text string
is greater than 250 characters, the string is divided into 250-character chunks, which appear
in one or more group 3 codes. If group 3 codes are used, the last group is a group 1 and has
fewer than 250 characters.
7 DXF: X value; APP: 3D vectText style name (STANDARD if not provided) (optional)
ATTDEF | 71
ATTRIB
Th e followin g group codes apply to attrib (attribute) en tities. In addition to
th e group codes described h ere, see Com m on Group Codes for En tities on
page 61. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
40 Text height
70 Attribute flags:
1 = Attribute is invisible (does not appear)
2 = This is a constant attribute
4 = Verification is required on input of this attribute
8 = Attribute is preset (no prompt during insertion)
41 Relative X scale factor (width) (optional; default = 1). This value is also adjusted when fit-type
text is used
71 Text generation flags (optional; default = 0). See TEXT on page 144 group codes
72 Horizontal text justification type (optional; default = 0). See TEXT on page 144 group codes
74 Vertical text justification type (optional; default = 0). See group code 73 inTEXT on page 144
210 Extrusion direction. Present only if the entity's extrusion direction is not parallel to the WCS Z
axis (optional; default = 0, 0, 1)
DXF: X value; APP: 3D vector
280 Lock position flag. Locks the position of the attribute within the block reference
ATTRIB | 73
280 Duplicate record cloning flag (determines how to merge duplicate entries):
1 = Keep existing
70 M Text flag:
2 = multiline attribute
4 = constant multiline attribute definition
70 isReallyLocked flag:
0 = unlocked
1 = locked
67 Absent or zero indicates entity is in model space. 1 indicates entity is in paper space (optional)
8 Layer name
10 Insertion point
DXF: X value; APP: 3D point
71 Attachment point:
1 = Top left; 2 = Top center; 3 = Top right
4 = Middle left; 5 = M iddle center; 6 = M iddle right
7 = Bottom left; 8 = Bottom center; 9 = Bottom right
72 Drawing direction:
1 = Left to right
3 = Top to bottom
5 = By style (the flow direction is inherited from the associated text style)
1 Text string
If the text string is less than 250 characters, all characters appear in group 1. If the text string
is greater than 250 characters, the string is divided into 250-character chunks, which appear
in one or more group 3 codes. If group 3 codes are used, the last group is a group 1 and has
fewer than 250 characters.
7 DXF: X value; APP: 3D vectText style name (STANDARD if not provided) (optional)
ATTRIB | 75
3 Additional lines of proprietary data (if previous group 1 string is greater than 255 characters)
(optional)
CIRCLE
Th e followin g group codes apply to circle en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
40 Radius
BODY | 77
DIMENSION
Dim en sion en tity defin ition s con sist of group codes th at are com m on to all
dim en sion types, followed by codes specific to th e type.
2 Name of the block that contains the entities that make up the dimension picture
21, 31 DXF: Y and Z values of middle point of dimension text (in OCS)
70 Dimension type:
Values 0-6 are integer values that represent the dimension type. Values 32, 64, and 128
are bit values, which are added to the integer values (value 32 is always set in R13 and
later releases)
71 Attachment point:
1 = Top left; 2 = Top center; 3 = Top right
4 = M iddle left; 5 = M iddle center; 6 = M iddle right
7 = Bottom left; 8 = Bottom center; 9 = Bottom right
1 Dimension text explicitly entered by the user. Optional; default is the measurement. If
null or “ <>” , the dimension measurement is drawn as the text, if “ “ (one blank space),
the text is suppressed. Anything else is drawn as the text
53 The optional group code 53 is the rotation angle of the dimension text away from its default
orientation (the direction of the dimension line) (optional)
51 All dimension types have an optional 51 group code, which indicates the horizontal direc-
tion for the dimension entity. The dimension entity determines the orientation of dimension
text and lines for horizontal, vertical, and rotated linear dimensions
This group value is the negative of the angle between the OCS X axis and the UCS X axis.
It is always in the XY plane of the OCS
For all dim en sion types, th e followin g group codes represen t 3D OCS poin ts:
22, 32 DXF: Y and Z values of insertion point for clones of a dimension—Baseline and Continue (in
OCS)
23, 33 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
24, 34 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
22, 32 DXF: Y and Z values of insertion point for clones of a dimension—Baseline and Continue (in
OCS)
23, 33 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
24, 34 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
52 Linear dimension types with an oblique angle have an optional group code 52. When added
to the rotation angle of the linear dimension (group code 50), it gives the angle of the extension
lines
15 Definition point for diameter, radius, and angular dimensions (in WCS)
DXF: X value; APP: 3D point
25, 35 DXF: Y and Z values of definition point for diameter, radius, and angular dimensions (in
WCS)
23, 33 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
24, 34 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
15 Definition point for diameter, radius, and angular dimensions (in WCS) DXF: X value; APP: 3D
point
25, 35 DXF: Y and Z values of definition point for diameter, radius, and angular dimensions (in WCS)
26, 36 DXF: Y and Z values of point defining dimension arc for angular dimensions (in OCS)
23, 33 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
24, 34 DXF: Y and Z values of definition point for linear and angular dimensions (in WCS)
ELLIPSE
Th e followin g group codes apply to ellipse en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
21, 31 DXF: Y and Z values of endpoint of major axis, relative to the center (in WCS)
HATCH
Th e followin g group codes apply to h atch an d M Polygon en tities. In addition
to th e group codes described h ere, see Com m on Group Codes for En tities on
page 61. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
HATCH | 87
70 Solid fill flag (solid fill = 1; pattern fill = 0); for M Polygon, the version of M Polygon
71 Associativity flag (associative = 1; non-associative = 0); for M Polygon, solid-fill flag (has solid
fill = 1; lacks solid fill = 0)
varies Boundary path data. Repeats number of times specified by code 91. See Boundary Path Data
on page 90
75 Hatch style:
0 = Hatch “ odd parity” area (Normal style)
1 = Hatch outermost area only (Outer style)
2 = Hatch through entire area (Ignore style)
varies Pattern line data. Repeats number of times specified by code 78. See Pattern Data on page 94
47 Pixel size used to determine the density to perform various intersection and ray casting operations
in hatch pattern computation for associative hatches and hatches created with the Flood
method of hatching
99 For M Polygon, number of degenerate boundary paths (loops), where a degenerate boundary
path is a border that is ignored by the hatch
450 Indicates solid hatch or gradient; if solid hatch, the values for the remaining codes are ignored
but must be present. Optional; if code 450 is in the file, then the following codes must be in
the file: 451, 452, 453, 460, 461, 462, and 470. If code 450 is not in the file, then the following
codes must not be in the file: 451, 452, 453, 460, 461, 462, and 470
0 = Solid hatch
1 = Gradient
452 Records how colors were defined and is used only by dialog code:
0 = Two-color gradient
1 = Single-color gradient
HATCH | 89
461 Gradient definition; corresponds to the Centered option on the Gradient Tab of the Boundary
Hatch and Fill dialog box. Each gradient has two definitions, shifted and unshifted. A Shift value
describes the blend of the two definitions that should be used. A value of 0.0 means only the
unshifted version should be used, and a value of 1.0 means that only the shifted version should
be used.
462 Color tint value used by dialog code (default = 0, 0; range is 0.0 to 1.0). The color tint value is
a gradient color and controls the degree of tint in the dialog when the Hatch group code 452
is set to 1.
varies Polyline boundary type data (only if boundary = polyline). See Polyline boundary data table
below
varies Edge type data (only if boundary is not a polyline). See appropriate Edge data table below
73 Is closed flag
40 Radius
50 Start angle
51 End angle
73 Is counterclockwise flag
50 Start angle
51 End angle
73 Is counterclockwise flag
94 Degree
73 Rational
74 Periodic
95 Number of knots
12 Start tangent
DXF: X value; APP: 2D vector
13 End tangent
DXF: X value; APP: 2D vector
HELIX
Th e followin g group codes apply to h elix en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
Spline data
40 Radius
41 Number of turns
42 Turn height
IMAGE
Th e followin g group codes apply to im age en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
90 Class version
IMAGE | 95
11 U-vector of a single pixel (points along the visual bottom of the image, starting at the insertion
point) (in WCS)
DXF: X value; APP: 3D point
12 V-vector of a single pixel (points along the visual left side of the image, starting at the insertion
point) (in WCS)
DXF: X value; APP: 3D point
INSERT
The following group codes apply to insert (block referen ce) en tities. In addition
to th e group codes described h ere, see Com m on Group Codes for En tities on
page 61. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
66 Variable attributes-follow flag (optional; default = 0); if the value of attributes-follow flag is 1,
a series of attribute entities is expected to follow the insert, terminated by a seqend entity
2 Block name
INSERT | 97
LEADER
Th e followin g group codes apply to leader en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
212 Offset of last leader vertex from block reference insertion point
DXF: X value; APP: 3D vector
LEADER | 99
LIGHT
Th e followin g group codes apply to ligh t en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
90 Version number
1 Light name
290 Status
40 Intensity
10 Light Position
DXF: X value; APP: 3D point
11 Target location
72 Attenuation type
0 = None
1 = Inverse Linear
2 = Inverse Square
50 Hotspot angle
51 Falloff angle
73 Shadow Type
0 = Ray traced shadows
1 = Shadow maps
LINE
Th e followin g group codes apply to lin e en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
LINE | 101
LWPOLYLINE
Th e followin g group codes apply to lwpolylin e en tities. In addition to th e
group codes described h ere, see Com m on Group Codes for En tities on page
61. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
90 Number of vertices
43 Constant width (optional; default = 0). Not used if variable width (codes 40 and/ or 41) is set
10 Vertex coordinates (in OCS), multiple entries; one entry for each vertex
DXF: X value; APP: 2D point
20 DXF: Y value of vertex coordinates (in OCS), multiple entries; one entry for each vertex
91 Vertex identifier
40 Starting width (multiple entries; one entry for each vertex) (optional; default = 0; multiple
entries). Not used if constant width (code 43) is set
41 End width (multiple entries; one entry for each vertex) (optional; default = 0; multiple entries).
Not used if constant width (code 43) is set
42 Bulge (multiple entries; one entry for each vertex) (optional; default = 0)
MESH
Th e followin g group codes apply to th e m esh en tity. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
71 Version number
MESH | 103
10 Vertex position
91 Sub-entity marker
90 Property type
0 = Color
1 = M aterial
2 = Transparency
3 = M aterial mapper
MLINE
Th e followin g group codes apply to m lin e en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
2 String of up to 32 characters. The name of the style used for this mline. An entry for this style
must exist in the M LINESTYLE dictionary.
Do not modify this field without also updating the associated entry in the MLINESTYLE dictionary
40 Scale factor
72 Number of vertices
11 Vertex coordinates (multiple entries; one entry for each vertex) DXF: X value; APP: 3D point
12 Direction vector of segment starting at this vertex (multiple entries; one for each vertex)
MLINE | 105
22, 32 DXF: Y and Z values of direction vector of segment starting at this vertex
13 Direction vector of miter at this vertex (multiple entries: one for each vertex)
DXF: X value; APP: 3D vector
74 Number of parameters for this element (repeats for each element in segment)
75 Number of area fill parameters for this element (repeats for each element in segment)
Th e group code 41 param eterization is a list of real values, on e real per group
code 41. Th e list m ay con tain zero or m ore item s. Th e first group code 41
value is th e distan ce from th e segm en t vertex alon g th e m iter vector to th e
point wh ere th e lin e elem en t's path in tersects th e m iter vector. Th e n ext group
code 41 value is th e distan ce alon g th e lin e elem en t's path from th e poin t
defin ed by th e first group 41 to th e actual start of th e lin e elem en t. Th e n ext
is th e distan ce from th e start of th e lin e elem en t to th e first break (or cut) in
th e lin e elem en t. Th e successive group code 41 values con tin ue to list th e start
an d stop poin ts of th e lin e elem en t in th is segm en t of th e m lin e. Lin etypes
do n ot affect group 41 lists.
Th e group code 42 param eterization is also a list of real values. Sim ilar to th e
41 param eterization , it describes th e param eterization of th e fill area for th is
m lin e segm en t. Th e values are in terpreted iden tically to th e 41 param eters
an d wh en taken as a wh ole for all lin e elem en ts in th e m lin e segm en t, th ey
defin e th e boun dary of th e fill area for th e m lin e segm en t.
A com m on exam ple of th e use of th e group code 42 m ech an ism is wh en an
un filled m lin e crosses over a filled m lin e an d m ledit is used to cause th e filled
m lin e to appear un filled in th e crossin g area. Th is would result in two group
42s for each lin e elem en t in th e affected m lin e segm en t; on e for th e fill stop
an d on e for th e fill start.
MLEADERSTYLE
Th e followin g group codes apply to m leaderstyle en tities. In addition to th e
group codes described h ere, see Com m on Group Codes for En tities on page
61. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
173 LeaderLineType
91 LeaderLineColor
340 LeaderLineType ID
92 LeaderLineWeight
MLEADERSTYLE | 107
42 Landing Gap
43 Dogleg Length
341 Arrowhead ID
44 Arrowhead Size
342 mTextStyleId
93 Text Color
45 Text Height
46 Align Space
142 Scale
296 Is Annotative
MLEADER
M Leader en tity defin ition s con sist of group codes th at are com m on to all
M Leader types, followed by codes specific to th e type.
MLEADER | 109
170 LeaderLineType
91 Leade LineColor
341 LeaderLineTypeID
41 Dogleg Length
342 Arrowhead ID
42 Arrowhead Size
92 Text Color
94 Arrowhead Index
345 Arrowhead ID
40 Content Scale
41 Text Height
42 Text Rotation
43 Text Width
44 Text Height
90 Text Color
296 HasBlock
10,20,30 Vertex
43 Text Width
44 Text Height
90 Text Color
296 HasBlock
40 Dogleg Length
10,20,30 Vertex
MTEXT
Th e followin g group codes apply to m text en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
10 Insertion point
DXF: X value; APP: 3D point
71 Attachment point:
72 Drawing direction:
1 = Left to right
3 = Top to bottom
5 = By style (the flow direction is inherited from the associated text style)
1 Text string. If the text string is less than 250 characters, all characters appear in group 1. If the
text string is greater than 250 characters, the string is divided into 250-character chunks, which
appear in one or more group 3 codes. If group 3 codes are used, the last group is a group 1
and has fewer than 250 characters
42 Horizontal width of the characters that make up the mtext entity. This value will always be
equal to or less than the value of group code 41 (read-only, ignored if supplied)
75 Column type
76 Column count
79 Column Autoheight
48 Column width
49 Column gutter
50 Column heights; this code is followed by a column count (Int16), and then the number of
column heights
MTEXT | 119
OLE2FRAME
Th e followin g group codes apply to ole2fram e en tities. Th is in form ation is
read-on ly. Durin g OPEN, th e values are ign ored because th ey are part of th e
OLE bin ary object, an d are obtain ed by access fun ction s. In addition to th e
group codes described h ere, see Com m on Group Codes for En tities on page
61. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
OLE2FRAME | 121
POINT
Th e followin g group codes apply to poin t en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
50 Angle of the X axis for the UCS in effect when the point was drawn (optional, default = 0); used
when PDM ODE is nonzero
POLYLINE
Th e followin g group codes apply to polylin e en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
POINT | 123
10 DXF: always 0
APP: a “ dummy” point; the X and Y values are always 0, and the Z value is the polyline's
elevation (in OCS when 2D, WCS when 3D)
20 DXF: always 0
30 DXF: polyline's elevation (in OCS when 2D; WCS when 3D)
75 Curves and smooth surface type (optional; default = 0); integer codes, not bit-coded:
Polyface Meshes
A polyface m esh is represen ted in DXF as a varian t of a polylin e en tity. Th e
polylin e h eader is iden tified as in troducin g a polyface m esh by th e presen ce
of the 64 bit in the polyline flags (70) group. The 71 group specifies th e n um ber
of vertices in th e m esh , an d th e 72 group specifies th e n um ber of faces.
Alth ough th ese coun ts are correct for all m esh es created with th e PFACE
com m an d, application s are n ot required to place correct values in th ese fields.
Followin g th e polylin e h eader is a sequen ce of vertex en tities th at specify th e
vertex coordin ates, followed by faces th at com pose th e m esh .
Th e AutoCAD en tity structure im poses a lim it on th e n um ber of vertices th at
a given face en tity can specify. You can represen t m ore com plex polygon s by
decom posin g th em in to trian gular wedges. Th eir edges sh ould be m ade
in visible to preven t visible artifacts of th is subdivision from bein g drawn . Th e
PFACE com m an d perform s th is subdivision autom atically, but wh en
application s gen erate polyface m esh es directly, th e application s m ust do th is
th em selves. Th e n um ber of vertices per face is th e key param eter in th is
subdivision process. Th e PFACEVM AX system variable provides an application
with th e n um ber of vertices per face en tity. Th is value is read-on ly an d is set
to 4.
Polyface m esh es created with th e PFACE com m an d are always gen erated with
all th e vertex coordin ate en tities first, followed by th e face defin ition en tities.
Th e code with in AutoCAD th at processes polyface m esh es requires th is
orderin g. Program s th at gen erate polyface m esh es in DXF sh ould gen erate all
RAY
Th e followin g group codes apply to ray en tities. In addition to th e group codes
described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
REGION
Th e followin g group codes apply to region en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
3 Additional lines of proprietary data (if previous group 1 string is greater than 255 characters)
(optional)
SECTION
Th e followin g group codes apply to section en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
90 Section state
91 Section flags
1 Name
40 Top height
41 Bottom height
70 Indicator transparency
92 Number of vertices
12, 22, 32 Back line vertex (repeats for number of back line vertices)
SECTION | 127
SEQEND
Th e followin g group codes apply to seqen d en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
-2 APP: name of entity that began the sequence. This entity marks the end of vertex (vertex
type name) for a polyline, or the end of attribute entities (attrib type name) for an insert
entity that has attributes (indicated by 66 group present and nonzero in insert entity).
This code is not saved in a DXF file
SHAPE
Th e followin g group codes apply to sh ape en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
40 Size
2 Shape name
SOLID
Th e followin g group codes apply to solid en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
10 First corner
DXF: X value; APP: 3D point
11 Second corner
DXF: X value; APP: 3D point
12 Third corner
XF: X value; APP: 3D point
SOLID | 129
13 Fourth corner. If only three corners are entered to define the SOLID, then the fourth corner
coordinate is the same as the third.
DXF: X value; APP: 3D point
SPLINE
Th e followin g group codes apply to splin e en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
72 Number of knots
41 Weight (if not 1); with multiple group pairs, they are present if all are not 1
20, 30 DXF: Y and Z values of control points (in WCS); one entry per control point
21, 31 DXF: Y and Z values of fit points (in WCS); one entry per fit point
SPLINE | 131
90 Version number
290 Status
63 Color
40 Intensity
291 Shadows
91 Julian day
70 Shadow type
0 = Ray traced shadows
1 = Shadow maps
3 Additional lines of proprietary data (if previous group 1 string is greater than 255 characters)
(optional)
71 Number of U isolines
72 Number of V isolines
90 Class ID
SURFACE | 133
40 Transform matrix of extruded entity (16 reals; row major format; default = identity matrix)
45 Twist angle
48 Scale factor
46 Transform matrix of sweep entity (16 reals; row major format; default = identity matrix)
47 Transform matrix of path entity (16 reals; row major format; default = identity matrix)
40 Transform matrix of loft entity (16 reals; row major format; default = identity matrix)
Revolved Surface
The followin g group codes apply to revolved surfaces. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
90 ID of revolve entity
42 Transform matrix of revolved entity (16 reals; row major format; default = identity matrix)
Swept Surface
Th e followin g group codes apply to swept surfaces. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
90 ID of sweep entity
90 ID of path entity
40 Transform matrix of sweep entity (16 reals; row major format; default = identity matrix)
41 Transform matrix of path entity (16 reals; row major format; default = identity matrix)
45 Twist angle
48 Scale factor
46 Transform matrix of sweep entity (16 reals; row major format; default = identity matrix)
47 Transform matrix of path entity (16 reals; row major format; default = identity matrix)
TABLE
Th e followin g group codes apply to table en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Entity handle
310 Data for proxy entity graphics (multiple lines; 256-character maximum per line)
91 Number of rows
92 Number of columns
TABLE | 139
172 Cell flag value; this value is repeated, 1 value per cell
173 Cell merged value; this value is repeated, 1 value per cell
174 Boolean flag indicating if the autofit option is set for the cell; this value is repeated, 1 value per
cell
175 Cell border width (applicable only for merged cells); this value is repeated, 1 value per cell
176 Cell border height ( applicable for merged cells); this value is repeated, 1 value per cell
145 Rotation value (real; applicable for a block-type cell and a text-type cell)
344 Hard pointer ID of the FIELD object. This applies only to a text-type cell. If the text in the cell
contains one or more fields, only the ID of the FIELD object is saved. The text string (group
codes 1 and 3) is ignored
1 Text string in a cell. If the string is shorter than 250 characters, all characters appear in code 1.
If the string is longer than 250 characters, it is divided into chunks of 250 characters. The chunks
are contained in one or more code 2 codes. If code 2 codes are used, the last group is a code
1 and is shorter than 250 characters. This value applies only to text-type cells and is repeated,
1 value per cell
2 Text string in a cell, in 250-character chunks; optional. This value applies only to text-type cells
and is repeated, 1 value per cell
340 Hard-pointer ID of the block table record. This value applies only to block-type cells and is re-
peated, 1 value per cell
144 Block scale (real). This value applies only to block-type cells and is repeated, 1 value per cell
179 Number of attribute definitions in the block table record (applicable only to a block-type cell)
331 Soft pointer ID of the attribute definition in the block table record, referenced by group code
179 (applicable only for a block-type cell). This value is repeated once per attribute definition
300 Text string value for an attribute definition, repeated once per attribute definition and applicable
only for a block-type cell
64 Value for the color of cell content; override applied at the cell level
63 Value for the background (fill) color of cell content; override applied at the cell level
69 True color value for the top border of the cell; override applied at the cell level
65 True color value for the right border of the cell; override applied at the cell level
66 True color value for the bottom border of the cell; override applied at the cell level
68 True color value for the left border of the cell; override applied at the cell level
279 Lineweight for the top border of the cell; override applied at the cell level
275 Lineweight for the right border of the cell; override applied at the cell level
276 Lineweight for the bottom border of the cell; override applied at the cell level
278 Lineweight for the left border of the cell; override applied at the cell level
283 Boolean flag for whether the fill color is on; override applied at the cell level
289 Boolean flag for the visibility of the top border of the cell; override applied at the cell level
TABLE | 141
285 Boolean flag for the visibility of the right border of the cell; override applied at the cell level
286 Boolean flag for the visibility of the bottom border of the cell; override applied at the cell level
288 Boolean flag for the visibility of the left border of the cell; override applied at the cell level
280 Flag for whether the title is suppressed; override applied at the table entity level
281 Flag for whether the header row is suppressed; override applied at the table entity level
7 Text style name (string); override applied at the table entity level. There may be one entry for
each cell type
140 Text height (real); override applied at the table entity level. There may be one entry for each
cell type
170 Cell alignment (integer); override applied at the table entity level. There may be one entry for
each cell type
63 Color value for cell background or for the vertical, left border of the table; override applied at
the table entity level. There may be one entry for each cell type
64 Color value for cell content or for the horizontal, top border of the table; override applied at
the table entity level. There may be one entry for each cell type
65 Color value for the horizontal, inside border lines; override applied at the table entity level
66 Color value for the horizontal, bottom border lines; override applied at the table entity level
68 Color value for the vertical, inside border lines; override applied at the table entity level
69 Color value for the vertical, right border lines; override applied at the table entity level
283 Flag for whether background color is enabled (default = 0); override applied at the table entity
level. There may be one entry for each cell type:
0 = Disabled
1 = Enabled
274-279 Lineweight for each border type of the cell (default = kLnWtByBlock); override applied at the
table entity level. There may be one group for each cell type
284-289 Flag for visibility of each border type of the cell (default = 1); override applied at the table entity
level. There may be one group for each cell type:
0 = Invisible
1 = Visible
302 Text string in a cell. If the string is shorter than 250 characters, all characters appear in code
302. If the string is longer than 250 characters, it is divided into chunks of 250 characters. The
chunks are contained in one or more code 303 codes. If code 393 codes are used, the last
group is a code 1 and is shorter than 250 characters. This value applies only to text-type cells
and is repeated, 1 value per cell (from AutoCAD 2007)
303 Text string in a cell, in 250-character chunks; optional. This value applies only to text-type cells
and is repeated, 302 value per cell (from AutoCAD 2007)
Group code 178 is a flag value for a virtual edge. A virtual edge is used wh en
a grid lin e is sh ared by two cells. For exam ple, if a table con tain s on e row an d
two colum n s an d it con tain s cell A an d cell B, th e cen tral grid lin e con tain s
th e righ t edge of cell A an d th e left edge of cell B. On e edge is real, an d th e
oth er edge is virtual. Th e virtual edge poin ts to th e real edge; both edges h ave
th e sam e set of properties, in cludin g color, lin eweigh t, an d visibility.
TABLE | 143
40 Text height
72 Horizontal text justification type (optional, default = 0) integer codes (not bit-coded)
0 = Left; 1= Center; 2 = Right
3 = Aligned (if vertical alignment = 0)
4 = M iddle (if vertical alignment = 0)
5 = Fit (if vertical alignment = 0)
See the Group 72 and 73 integer codes table for clarification
21, 31 DXF: Y and Z values of second alignment point (in OCS) (optional)
73 Vertical text justification type (optional, default = 0): integer codes (not bit-coded):
0 = Baseline; 1 = Bottom; 2 = M iddle; 3 = Top
See the Group 72 and 73 integer codes table for clarification
TEXT | 145
TRACE
Th e followin g group codes apply to trace en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
UNDERLAY
Th e followin g group codes apply to un derlays. In addition to th e group codes
described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
UNDERLAY | 147
10,20,30 The X,Y, and Z coordinates of the insertion point of the underlay.
These are OCS/ ECS coordinates
50 Rotation Angle (in OCS/ ECS. CCW from the coordinate system X axis
and around the Z axis)
280 Flags
1 = Clipping is on
2 = Underlay is on
4 = M onochrome
8 = Adjust for background
16 = Clip is inside mode
11, 21 Repeating: 2d points in OCS/ ECS. If only two, then they are the lower
left and upper right corner points of a clip rectangle. If more than
two, then they are the vertices of a clipping polygon
10 Location point (in OCS when 2D, and WCS when 3D)
DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of location point (in OCS when 2D, and WCS when 3D)
42 Bulge (optional; default is 0). The bulge is the tangent of one fourth the included angle for an
arc segment, made negative if the arc goes clockwise from the start point to the endpoint. A
bulge of 0 indicates a straight segment, and a bulge of 1 is a semicircle
70 Vertex flags:
1 = Extra vertex created by curve-fitting
2 = Curve-fit tangent defined for this vertex. A curve-fit tangent direction of 0 may be omitted
from DXF output but is significant if this bit is set
4 = Not used
8 = Spline vertex created by spline-fitting
16 = Spline frame control point
32 = 3D polyline vertex
64 = 3D polygon mesh
128 = Polyface mesh vertex
VERTEX | 149
91 Vertex identifier
Every vertex th at is part of a polyface m esh h as its vertex flag 128 bit set. If
th e en tity supplies th e coordin ate of a vertex of th e m esh , its 64 bit is set as
well, an d th e 10, 20, 30 groups give th e vertex coordin ate. Th e vertex in dex
values are determ in ed by th e order in wh ich th e vertex en tities appear with in
th e polylin e, with th e first bein g n um bered 1.
If th e vertex defin es a face of th e m esh , its vertex flags group h as th e 128 bit
set but n ot th e 64 bit. In th is case, th e 10, 20, 30 (location ) groups of th e face
en tity are irrelevan t an d are always written as 0 in a DXF file. Th e vertex
in dexes th at defin e th e m esh are given by 71, 72, 73, an d 74 group codes, th e
values of wh ich specify on e of th e previously defin ed vertexes by in dex. If th e
in dex is n egative, th e edge th at begin s with th at vertex is in visible. Th e first
0 vertex m arks th e en d of th e vertices of th e face.
VIEWPORT
Th e followin g group codes apply to viewport en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
69 Viewport ID
14 Snap spacing
DXF: X value; APP: 2D point
15 Grid spacing
DXF: X value; APP: 2D point
VIEWPORT | 151
50 Snap angle
331 Frozen layer object ID/ handle (multiple entries may exist) (optional)
340 Hard-pointer ID/ handle to entity that serves as the viewport's clipping boundary (only present
if viewport is non-rectangular)
VIEWPORT | 153
345 ID/ handle of AcDbUCSTableRecord if UCS is a named UCS. If not present, then UCS is unnamed
346 ID/ handle of AcDbUCSTableRecord of base UCS if UCS is orthographic (79 code is non-zero).
If not present and 79 code is non-zero, then base UCS is taken to be WORLD
146 Elevation
335 Soft pointer reference to viewport object (for layer VP property override)
343 Soft pointer reference to viewport object (for layer VP property override)
344 Soft pointer reference to viewport object (for layer VP property override)
NOTE The ZOOM XP factor is calculated with the following formula: group_41
/ group_45 (or pspace_height / mspace_height).
WIPEOUT
Th e followin g group codes apply to wipeout en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
90 Class version
11 U-vector of a single pixel (points along the visual bottom of the image, starting at the insertion
point) (in WCS)
DXF: X value; APP: 3D point
WIPEOUT | 155
12 V-vector of a single pixel (points along the visual left side of the image, starting at the insertion
point) (in WCS)
DXF: X value; APP: 3D point
XLINE
Th e followin g group codes apply to xlin e en tities. In addition to th e group
codes described h ere, see Com m on Group Codes for En tities on page 61. For
in form ation about abbreviation s an d form attin g used in th is table, see
Form attin g Con ven tion s in Th is Referen ce on page 2.
XLINE | 157
Th is ch apter presen ts th e group codes th at apply to n on graph ical objects. Th ese codes are
foun d in th e OBJECTS section of a DXF™ file an d are used by AutoLISP® an d ObjectARX ®
application s in en tity defin ition lists.
Object Ownership
Th e root own er of m ost objects appearin g in th e OBJECTS section is th e n am ed
object diction ary, wh ich is, th erefore, always th e first object th at appears in th is
section . Objects th at are n ot own ed by th e n am ed object diction ary are own ed
by oth er en tities, objects, or sym bol table en tries. Objects in th is section m ay
® ®
be defin ed by AutoCAD or by application s with access to ObjectARX API. Th e
DXF nam es of application -defin ed object types sh ould always be associated with
a class n am e in th e CLASS section of th e DXF file, or else th e object record
can n ot be boun d to th e application th at will in terpret it.
As with oth er diction aries, th e n am ed-obj ect diction ary record con sists solely
of associated pairs of en try n am es an d h ard own ersh ip poin ter referen ces to th e
associated obj ect.
To avoid n am e collision between objects, developers sh ould always use th eir
registered developer prefix for th eir en tries.
159
0 Object type
5 Handle
application- Codes and values within the 102 groups are application defined (optional)
defined codes
102 “ {ACAD_REACTORS” indicates the start of the AutoCAD persistent reactors group. This group
exists only if persistent reactors have been attached to this object (optional)
102 “ {ACAD_XDICTIONARY” indicates the start of an extension dictionary group. This group exists
only if persistent reactors have been attached to this object (optional)
91 DXF: Application object's class ID. Class IDs are based on the order of the class in the CLASSES
section. The first class is given the ID of 500, the next is 501, and so on
310 DXF: Binary object data (multiple entries can appear) (optional)
95 DXF: Object drawing format when it becomes a proxy (a 32-bit unsigned integer):
Low word is AcDbDwgVersion
High word is M aintenanceReleaseVersion
ACDBDICTIONARYWDFLT
Th e followin g group codes are used by ACDBDICTIONARYW DFLT objects. In
addition to th e group codes described h ere, see Com m on Group Codes for
ACAD_PROXY_OBJECT | 161
5 Handle
281 Duplicate record cloning flag (determines how to merge duplicate entries):
0 = Not applicable
1 = Keep existing
2 = Use clone
3 = <xref>$0$<name>
4 = $0$<name>
5 = Unmangle name
350 Soft-owner ID/ handle to entry object (one for each entry)
340 Hard pointer to default object ID/ handle (currently only used for plot style dictionary's default
entry, named “ Normal” )
ACDBPLACEHOLDER
Th e followin g group codes are used by th e ACDBPLACEHOLDER objects. In
addition to th e group codes described h ere, see Com m on Group Codes for
5 Handle
DATATABLE
Th e followin g group codes are used by th e DATATABLE objects. In addition
to th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
DATATABLE | 163
70 Version
90 Number of columns
1 Table name
71 Boolean value
93 Integer value
40 Double value
3 String value
DICTIONARY
Th e followin g group codes are used by DICTIONARY objects. In addition to
th e group codes described h ere, see Com m on Group Codes for Obj ects on
5 Handle
280 Hard-owner flag. If set to 1, indicates that elements of the dictionary are to be treated as hard-
owned
281 Duplicate record cloning flag (determines how to merge duplicate entries):
0 = Not applicable
1 = Keep existing
2 = Use clone
3 = <xref>$0$<name>
4 = $0$<name>
5 = Unmangle name
350 Soft-owner ID/ handle to entry object (one for each entry) (optional)
®
AutoCAD m ain tain s item s such as m lin e styles an d group defin ition s as
objects in diction aries. Th e followin g section s describe th e AutoCAD object
group codes m ain tain ed in diction aries; h owever, oth er application s are free
to create an d use th eir own diction aries as th ey see fit. Th e prefix "ACAD_" is
reserved for use by AutoCAD application s.
DICTIONARY | 165
5 Handle
1 Value of variable
DIMASSOC
Th e followin g group codes are used by DIM ASSOC obj ects. In addition to th e
group codes described h ere, see Com m on Group Codes for Objects on page
5 Handle
330 Soft-pointer ID
90 Associativity flag
1 = First point reference
2 = Second point reference
4 = Third point reference
8 = Fourth point reference
DIMASSOC | 167
FIELD
Th e followin g group codes are used by FIELD objects. In addition to th e group
codes described h ere, see Com m on Group Codes for Objects on page 160. For
1 Evaluator ID
331 Object ID used in the field code (AcDbSoftPointerId); repeats for the
number of object IDs used in the field code
6 Key string for the field data; a key-field pair is repeated for the number
of data sets in the field
92 Binary data buffer size (if data type of field value is binary)
FIELD | 169
GEODATA
Th e followin g group codes are used by GEODATA objects. In addition to th e
group codes described h ere, see Com m on Group Codes for Objects on page
160. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
11,21,31 Reference point in coordinate system coordinates, valid only when coordinate type is Local
Grid.
40 Horizontal unit scale, factor which converts horizontal design coordinates to meters by multi-
plication.
41 Vertical unit scale, factor which converts vertical design coordinates to meters by multiplication.
91 Horizontal units per UnitsValue enumeration. Will be kUnitsUndefined if units specified by hori-
zontal unit scale is not supported by AutoCAD enumeration.
92 Vertical units per UnitsValue enumeration. Will be kUnitsUndefined if units specified by horizontal
unit scale is not supported by AutoCAD enumeration.
210,220,230 Up direction
96 Number of faces
GEODATA | 171
GROUP
Th e followin g group codes are used by GROUP objects. In addition to th e
group codes described h ere, see Com m on Group Codes for Objects on page
160. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
102 Start of persistent reactors group; always “ {ACAD_REACTORS” (persistent reactors group appears
in all dictionaries except the main dictionary)
330 Soft-pointer ID/ handle to owner dictionary. For GROUP objects this is always the ACAD_GROUP
entry of the named object dictionary
IMAGEDEF
Th e followin g group codes are used by IM AGEDEF objects. In addition to th e
group codes described h ere, see Com m on Group Codes for Objects on page
160. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
330 Soft-pointer ID/ handle to IM AGEDEF_REACTOR object (multiple entries; one for each instance)
90 Class version 0
IDBUFFER | 173
IMAGEDEF_REACTOR
Th e followin g group codes are used by IM AGEDEF_REACTOR objects. In
addition to th e group codes described h ere, see Com m on Group Codes for
Objects on page 160. For in form ation about abbreviation s an d form atting used
in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
90 Class version 2
5 Handle
LAYER_FILTER
Th e followin g group codes are used by LAYER_FILTER objects. In addition to
th e group codes described h ere, see Com m on Group Codes for Objects on
LAYER_INDEX | 175
5 Handle
LAYOUT
Th e followin g group codes are used by LAYOUT objects. In addition to th e
group codes described h ere, see Com m on Group Codes for Objects on page
160. For in form ation about abbreviation s an d form attin g used in th is table,
see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
plotsettings ob- For group codes and descriptions following the AcDbPlotSettings marker, see PLOTSETTINGS
ject group codes on page 189
1 Layout name
71 Tab order. This number is an ordinal indicating this layout's ordering in the tab control that is
attached to the AutoCAD drawing frame window. Note that the “ M odel” tab always appears
as the first tab regardless of its tab order
10 M inimum limits for this layout (defined by LIM M IN while this layout is current)
DXF: X value; APP: 2D point
11 M aximum limits for this layout (defined by LIM M AX while this layout is current):
DXF: X value; APP: 2D point
12 Insertion base point for this layout (defined by INSBASE while this layout is current):
DXF: X value; APP: 3D point
14 M inimum extents for this layout (defined by EXTM IN while this layout is current):
DXF: X value; APP: 3D point
15 M aximum extents for this layout (defined by EXTM AX while this layout is current):
LAYOUT | 177
146 Elevation
13 UCS origin
DXF: X value; APP: 3D point
16 UCS X-axis
DXF: X value; APP: 3D vector
17 UCS Y axis
DXF: X value; APP: 3D vector
330 ID/ handle to this layout's associated paper space block table record
331 ID/ handle to the viewport that was last active in this layout when the layout was current
345 ID/ handle of AcDbUCSTableRecord if UCS is a named UCS. If not present, then UCS is unnamed
346 ID/ handle of AcDbUCSTableRecord of base UCS if UCS is orthographic (76 code is non-zero).
If not present and 76 code is non-zero, then base UCS is taken to be WORLD
5 Handle
330 Soft-pointer ID/handle to owner dictionary. For LIGHTLIST objects, this is always the ACAD_LIGHT
entry of the named object dictionary
90 Version number
90 Number of lights
MATERIAL
Th e followin g group codes are used by M ATERIAL objects. In addition to th e
group codes described h ere, see Com m on Group Codes for Objects on page
LIGHTLIST | 179
5 Handle
102 Start of persistent reactors group; always “ {ACAD_REACTORS” (The persistent reactors group
appears in all dictionaries except the main dictionary.)
330 Soft-pointer ID/ handle to owner dictionary. For M ATERIAL objects, this is always the
ACAD_M ATERIAL entry of the named object dictionary.
40 Ambient color factor (real, default = 1.0; valid range is 0.0 to 1.0)
41 Diffuse color factor (real, default = 1.0; valid range is 0.0 to 1.0)
43 Transform matrix of diffuse map mapper (16 reals; row major format; default = identity matrix)
45 Specular color factor (real, default = 1.0; valid range is 0.0 to 1.0)
MATERIAL | 181
170 Auto transform method of specular map mapper (bitset; default = 1):
1 = No auto transform
2 = Scale mapper to current entity extents; translate mapper to entity origin
4 = Include current block transform in mapper transform
47 Transform matrix of specular map mapper (16 reals; row major format; default = identity matrix)
174 Auto transform method of reflection map mapper (bitset; default = 1):
1 = No auto transform
2 = Scale mapper to current entity extents; translate mapper to entity origin
49 Transform matrix of reflection map mapper (16 reals; row major format; default = identity
matrix)
178 Auto transform method of opacity map mapper (bitset; default = 1):
1 = No auto transform
2 = Scale mapper to current entity extents; translate mapper to entity origin
4 = Include current block transform in mapper transform
142 Transform matrix of opacity map mapper (16 reals; row major format; default = identity matrix)
MATERIAL | 183
272 Auto transform method of bump map mapper (bitset; default = 1):
1 = No auto transform
2 = Scale mapper to current entity extents; translate mapper to entity origin
4 = Include current block transform in mapper transform
144 Transform matrix of bump map mapper (16 reals; row major format; default = identity matrix)
276 Auto transform method of refraction map mapper (bitset; default = 1):
147 Transform matrix of refraction map mapper (16 reals; row major format; default = identity
matrix)
464 Luminance
72 Normal M ap Source
MATERIAL | 185
300 GenProcName
291 GenProcValBool
271 GenProcValInt
469 GenProcValReal
301 GenProcValText
292 GenProcTableEnd
62 GenProcValColorIndex
420 GenProcValColorRGB
430 GenProcValColorName
270 M ap UTile
148 Translucence
90 Self-Illuminaton
468 Reflectivity
93 Illumination M odel
94 Channel Flags
MLINESTYLE
Th e followin g group codes are used by M LINESTYLE objects. In addition to
th e group codes described h ere, see Com m on Group Codes for Obj ects on
5 Handle
102 Start of persistent reactors group; always “ {ACAD_REACTORS” (persistent reactors group
appears in all dictionaries except the main dictionary)
330 Soft-pointer ID/ handle to owner dictionary. For M LINESTYLE objects this is always the
ACAD_M LINESTYLE entry of the named object dictionary
70 Flags (bit-coded):
1 =Fill on
2 = Display miters
16 = Start square end (line) cap
32 = Start inner arcs cap
64 = Start round (outer arcs) cap
256 = End square (line) cap
512 = End inner arcs cap
1024 = End round (outer arcs) cap
71 Number of elements
49 Element offset (real, no default). M ultiple entries can exist; one entry for each element
MLINESTYLE | 187
62 Element color (integer, default = 0). M ultiple entries can exist; one entry for each element
6 Element linetype (string, default = BYLAYER). M ultiple entries can exist; one entry for each
element
OBJECT_PTR
Th e followin g group codes are used by OBJECT_PTR objects. In addition to
th e group codes described h ere, see Com m on Group Codes for Obj ects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
5 Handle
4 Paper size
PLOTSETTINGS | 189
73 Plot rotation:
0 = No rotation
1 = 90 degrees counterclockwise
76 ShadePlot mode:
0 = As Displayed
1 = Wireframe
2 = Hidden
3 = Rendered
PLOTSETTINGS | 191
147 A floating point scale factor that represents the standard scale value
specified in code 75
RASTERVARIABLES
Th e followin g group codes are used by RASTERVARIABLES objects. In addition
to th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
330 Soft-pointer ID/ handle to owner dictionary. For a RASTERVARIABLES object, this is always the
ACAD_IM AGE_VARS entry of the named object dictionary
90 Class version 0
72 AutoCAD units for inserting images. This is what one AutoCAD unit is equal to for the purpose
of inserting and scaling images with an associated resolution:
0 = None; 1 = M illimeter; 2 = Centimeter
3 = Meter; 4 = Kilometer; 5 = Inch
6 = Foot; 7 = Yard; 8 = M ile
RENDER
Ren der related group codes.
RENDERENVIRONMENT
Th e followin g group codes are used by RENDERENVIRONM ENT objects. In
addition to th e group codes described h ere, see Com m on Group Codes for
Objects on page 160. For inform ation about abbreviation s and form attin g used
in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
330 Soft-pointer ID/ handle to owner dictionary. For a RENDERENVIRONM ENT object, this is always
the ACAD_RENDER_ENVIRONM ENT entry of the named object dictionary
90 Class version 1
RENDER | 193
280, 280, 280 Fog color; Red, green, and blue channel values
40, 40 Near and Far distance as a percentage of the distance between the camera and the far clipping
plane
MENTALRAYRENDERSETTINGS
Th e following group codes are used by M ENTALRAYRENDERSETTINGS objects.
In addition to th e group codes described h ere, see Com m on Group Codes for
Objects on page 160. For in form ation about abbreviation s an d form atting used
in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
90 Class version 1
90 Class version 1
40, 40, 40, 40 Sampling contrast color; Red, green, blue, and alpha channel values
70 Shadow mode
0 = Simple
1 = Sort
2 = Segment
290 Shadow map flag; applies only to lights using mapped shadows
90, 90, 90 Ray tracing depth for reflections, refractions, and maximum depth
MENTALRAYRENDERSETTINGS | 195
90, 90, 90 Global illumination photo trace depth for reflections, refractions, and maximum depth
70 Diagnostic mode
0 = Off
1 = Grid
2 = Photon
4 = BSP
40 Grid size
90 Tile size
70 Tile order
0 = Hilbert
1 = Spiral
2 = Left to right
3 = Right to left
4 = Top to bottom
5 = Bottom to top
90 M emory limit
RENDERGLOBAL
Th e followin g group codes are used by RENDERGLOBAL objects. In addition
to th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
330 Soft-pointer ID/ handle to owner dictionary. For a RENDERGLOBAL object, this is always the
ACAD_RENDER_GLOBAL entry of the named object dictionary
RENDERGLOBAL | 197
90 Class version 2
90 Render procedure:
0 = View
1 = Crop
2 = Selection
90 Render destination
0 = Render Window
1 = Viewport
90 Image width
90 Image height
SECTION
Section m an ager an d section settin gs group codes.
5 Handle
90 Number of sections
330 Soft-pointer ID/ handle to section entities (repeats for number of sections)
5 Handle
90 Section type
1 “ SectionTypeSettings” marker
90 Section type
330 Soft-pointer ID/ handle to source objects (repeats for number of source objects)
3 “ SectionTypeSettingsEnd” marker
90 Section type
91 Geometry count
92 Bitflags
63 Color data
8 Layer name
6 Linetype name
40 Linetype scale
1 Plotstyle name
70 Face transparency
71 Edge transparency
41 Hatch angle
42 Hatch scale
43 Hatch spacing
SPATIAL_INDEX
Th e followin g group codes are used by SPATIAL_INDEX objects. In addition
to th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
SPATIAL_FILTER
Th e followin g group codes are used by SPATIAL_FILTER objects. In addition
to th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
10 Clip boundary definition point (in OCS) (always 2 or more) based on an xref scale of 1
DXF: X value; APP: 2D point
11 Origin used to define the local coordinate system of the clip boundary
DXF: X value; APP: 3D point
SPATIAL_FILTER | 203
21, 31 Origin used to define the local coordinate system of the clip boundary
DXF: Y and Z values
40 4x3 transformation matrix written out in column major order. This matrix is the inverse of the
original block reference (insert entity) transformation. The original block reference transformation
is the one that is applied to all entities in the block when the block reference is regenerated
(always 12 entries)
40 4x3 transformation matrix written out in column major order. This matrix transforms points
into the coordinate system of the clip boundary (12 entries)
SORTENTSTABLE
Th e followin g group codes are used by SORTENTSTABLE objects. In addition
to th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
331 Soft-pointer ID/ handle to an entity (zero or more entries may exist)
If th e SORTENTS Regen flag (bit-code value 16) is set, AutoCAD regen erates
en tities in ascen din g h an dle order. W h en th e DRAW ORDER com m an d is used,
a SORTENTSTABLE object is attach ed to th e *M odel_Space or *Paper_Space
block's exten sion diction ary un der th e n am e ACAD_SORTENTS. Th e
SORTENTSTABLE object related to th is diction ary associates a differen t h an dle
with each en tity, wh ich redefin es th e order in wh ich th e en tities are
regen erated.
TABLESTYLE
Th e followin g group codes are used by TABLESTYLE obj ects. In addition to
th e group codes described h ere, see Com m on Group Codes for Objects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
102 Start of persistent reactors group; always “ {ACAD_REACTORS” (The persistent reactors group
appears in all dictionaries except the main dictionary.)
330 Soft-pointer ID/ handle to owner dictionary. For TABLESTYLE objects, this code is always the
ACAD_TABLESTYLE entry of the named object dictionary
TABLESTYLE | 205
70 FlowDirection (integer):
0 = Down
1 = Up
71 Flags (bit-coded)
The following group codes are repeated for every cell in the table
274-279 Lineweight associated with each border type of the cell (default = kLnWtByBlock)
284-289 Flag for visibility associated with each border type of the cell (default = 1):
0 = Invisible
1 = Visible
64-69 Color value associated with each border type of the cell (default = BYBLOCK)
UNDERLAYDEFINITION
Th e followin g group codes apply to UNDERLAYDEFINITION sym bol table
en tries. In addition to th e group codes described h ere, see Com m on Group
Codes for Sym bol Table En tries on page 37. For in form ation about
abbreviation s an d form attin g used in th is table, see Form attin g Con ven tion s
in Th is Referen ce on page 2.
5 Handle
UNDERLAYDEFINITION | 207
2 Underlay Name
VISUALSTYLE
Th e followin g group codes apply to VISUALSTYLE objects. For in form ation
about abbreviation s an d form attin g used in th is table, see Form attin g
Con ven tion s in Th is Referen ce on page 2.
5 Handle
2 Description
70 Type
90 Face modifiers
0 = No modifiers
1 = Opacity
2 = Specular
62, 63 Color
91 Edge style
VISUALSTYLE | 209
92 Edge modifiers
66 Edge color
76 Edge width
77 Edge overhang
78 Edge jitter
44 Brightness
5 Handle
90 Number of bytes of binary chunk data (contained in the group code 310 records that follow)
310 DXF: Binary object data (multiple entries containing VBA project data)
WIPEOUTVARIABLES
Th e followin g group codes are used by W IPEOUTVARIABLES objects. In
addition to th e group codes described h ere, see Com m on Group Codes for
Objects on page 160. For inform ation about abbreviation s and form attin g used
in th is table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
5 Handle
VBA_PROJECT | 211
330 Soft-pointer ID/ handle to owner dictionary. For a WIPEOUTVARIABLES object, this is always the
ACAD_IM AGE_VARS entry of the named object dictionary
90 Class version 0
XRECORD
Th e followin g group codes are com m on to all xrecord objects. In addition to
th e group codes described h ere, see Com m on Group Codes for Obj ects on
page 160. For in form ation about abbreviation s an d form attin g used in th is
table, see Form attin g Con ven tion s in Th is Referen ce on page 2.
280 Duplicate record cloning flag (determines how to merge duplicate entries):
0 = Not applicable
1 = Keep existing
2 = Use clone
3 = <xref>$0$<name>
4 = $0$<name>
5 = Unmangle name
Xrecord objects are used to store an d m anage arbitrary data. Th ey are com posed
of DXF group codes with “ n orm al object” groups (th at is, n on -xdata group
codes), ran ging from 1 th rough 369 for supported ran ges. Th is object is sim ilar
in con cept to xdata but is n ot lim ited by size or order.
XRECORD | 213
Th is ch apter presen ts th e group codes th at are foun d in th e THUM BNAILIM AGE section of
a DXF™ file. Th is section exists on ly if a preview im age h as been saved with th e DXF file.
90 The number of bytes in the image (and subsequent binary chunk re-
cords)
310 Preview image data (multiple lines; 256 characters maximum per
line)
215
Th is appen dix describes th e various file form ats AutoCAD ® uses to in terch an ge drawin g data
with oth er application s. Th e form ats presen ted are Drawin g In terch an ge File (DXF™), bin ary
DXF, Slide (SLD), an d th e Slide Library (SLB) file form ats.
DXF files can be eith er ASCII or bin ary form at. Because ASCII DXF files are m ore com m on
th an th e bin ary form at, th e term DXF file is used to refer to ASCII DX F files an d th e term binary
DXF file is used for th e bin ary form at.
217
TABLES section.Con tain s defin ition s for th e followin g sym bol tables:
APPID (application iden tification table)
BLOCK_RECORD (block referen ce table)
DIM STYLE (dim en sion style table)
LAYER (layer table)
LTYPE (lin etype table)
STYLE (text style table)
UCS (user coordin ate system table)
VIEW (view table)
VPORT (viewport con figuration table)
BLOCKS section. Con tain s block defin ition an d drawin g en tities th at m ake
up each block referen ce in th e drawin g.
ENTITIES section. Con tain s th e graph ical objects (en tities) in th e drawin g,
in cludin g block referen ces (in sert en tities).
0 End of table
ENDTAB
70
1001
1040
70
40
.4 Text height
41
71
42
...
102
330
330
102
1001
1070
45
1001
APP_2
1004
18A5B3EF2C199A
' two lines at a time, all should be fine. However, to make your
' code more reliable, you should add some additional error and
' other checking.
'
Function ReadCodes() As Variant
Dim codeStr, valStr As String
Line Input #1, codeStr
Line Input #1, valStr
' Trim the leading and trailing space from the code
ReadCodes = Array(Trim(codeStr), valStr)
End Function
Th e entire HEADER section can be om itted if you don 't set h eader variables.
If you define an y lin etypes in th e LTYPE table, this table m ust appear before
th e LAYER table.
Followin g th e sen tin el are pairs (group, value) as in an ASCII DXF file but
represen ted in bin ary form . Th e group code is a 2-byte bin ary value (1 byte
in DX F files prior to AutoCAD Release 14), an d th e value th at follows is on e
of th e followin g:
A 2-byte integer with th e least sign ificant byte first an d the m ost significan t
byte last
SAVEAS writes bin ary DXF files with th e sam e file type (.dxf) as for ASCII DX F
files. Th e OPEN an d INSERT com m an ds autom atically recogn ize a bin ary file
by m ean s of its sen tin el strin g. You n eed n ot iden tify it as a bin ary file.
If th e OPEN an d INSERT com m an dsen coun ter an error in a bin ary DXF file,
AutoCAD reports th e byte address with in the file wh ere the error was detected.
Slide Files
NOTE This information is for experienced programmers, and is subject to change
without notice.
Aspect ratio 4 Drawing area aspect ratio (horizontal size/ vertical size in inches), scaled by
10,000,000. This value is always written with the least significant byte first
Test number 2 A number (1234 hex) used to determine whether all 2-byte values in the slide
were written with the high-order byte first (Intel 8086-family CPUs) or the low-
order byte first (M otorola 68000-family CPUs)
Data records follow th e h eader. Each data record begin s with a 2-byte field
wh ose h igh -order byte is th e record type. Th e rem ain der of th e record m ay
be com posed of 1-byte or 2-byte fields as described in th e followin g table. To
determ in e wh eth er th e 2-byte fields are written with th e h igh -order byte first
or th e low-order byte first, exam in e th e Test n um ber field of th e h eader th at
is described in th e previous table.
00-7F 8 Vector The from-X coordinate for an ordinary vector. From-Y, to-X, and to-Y
follow, in that order, as 2-byte values. The from- point is saved as the
last point
FB 5 Offset vec- The low-order byte and the following three bytes specify the endpoints
tor (from-X, from-Y, to-X, to-Y) of a vector, in terms of offsets (-128 to +127)
from the saved last point. The adjusted from- point is saved as the last
point for use by subsequent vectors
FD 6 Solid fill The low-order byte is always zero. The following two 2-byte values
specify the X and Y coordinates of one vertex of a polygon to be solid-
filled. Three to ten such records occur in sequence. A Solid fill record
with a negative Y coordinate indicates the start or end of such a flood
sequence. In the start record, the X coordinate indicates the number of
vertex records to follow
FE 3 Common This is a vector starting at the last point. The low-order byte and the
endpoint following byte specify to-X and to-Y in terms of offsets (-128 to +127)
vector from the saved last point. The adjusted to- point is saved as the last
point for use by subsequent vectors
FF 2 New color Subsequent vectors are to be drawn using the color number indicated
by the low-order byte
If a slide con tain s an y vectors at all, a New color record will be th e first data
record. Th e order of th e vectors in a slide an d th e order of th e en dpoin ts of
th ose vectors m ay vary.
For exam ple, th e followin g is an an n otated h ex dum p of a sim ple slide file
created on an IBM PC/ AT with an IBM En h an ced Graph ics Adapter. Th e slide
con sists of a wh ite diagon al lin e from th e lower-left corn er to th e upper-righ t
Aspect ratio 8 Drawing area aspect ratio (horizontal size/ vertical size in inches), written as a
floating-point number
Th e slide address is always written with th e low-order byte first. Each slide to
wh ich th e directory poin ts is a com plete slide file as described in th e previous
section . Th e en d of th e slide directory is sign ified by an en try with a n ull slide
n am e (first byte is NUL). A slide library can con tain a m ixture of old-form at
an d n ew-form at slides.
Th is appen dix discusses th e advan ced con cepts related to DX F™ group codes.
A h an dle wh ose value is un ique to th e drawin g/ DXF file, an d is con stan t for
th e lifetim e of th e drawin g. Th is form at h as existed sin ce AutoCAD Release
10, an d as of AutoCAD Release 13, h an dles are always en abled.
An option al own ersh ip poin ter to an exten sion diction ary wh ich , in turn ,
own s subobjects placed in it by an application .
Sym bol tables an d sym bol table records are database objects an d, th us, h ave a
h an dle. Th ey can also h ave xdata an d persisten t reactors in th eir DXF records.
241
Hard-own er h an dle
®
Th ese h an dle types are m an ifested as en tity n am es in AutoLISP , as ads_n am e
®
values in Obj ectARX an d as like-n am ed classes derived from ObjectARX.
Th ese values are always m ain tain ed in in sert, xref, an d wblock operation s
such th at referen ces between objects in a set bein g copied are updated to poin t
to th e copied objects, wh ile referen ces to oth er objects rem ain un ch an ged.
Also, a group code ran ge for “ arbitrary” h an dles is defin ed to allow con ven ien t
storage of h an dle values th at are n ot con verted to en tity n am es an d th en
tran slated in in sert, xref, or wblock.
NOTE If you use 1005 xdata group codes to store handles, they are treated as
soft-pointer handles, which means that when groups of objects are copied or
inserted into another drawing, references between the involved objects are
translated. Although 1005 xdata items are always returned as handles in AutoLISP
and ObjectARX, all of the reference handle group code ranges are represented as
“ entity names” in AutoLISP and as ads_name structures in ObjectARX.
Subclass Markers
W h en filin g a stream of group data, a single object m ay be com posed of several
filer m em bers, on e for each level of in h eritan ce wh ere filin g is don e. Sin ce
derived classes an d levels of in h eritan ce can evolve separately, th e data of
each class filer m em ber m ust be segregated from oth er m em bers. Th is is
ach ieved usin g subclass m arkers.
All class filer m em bers are expected to precede th eir class-specific portion of
in stan ce data with a “ subclass” m arker—a 100 group code followed by a strin g
with th e actual n am e of th e class. Th is does n ot affect th e state n eeded to
defin e th e object's state, but it provides a m ean s for th e DXF file parsers to
direct th e group codes to th e correspon din g application software.
Th e group code 1001 in dicates th e begin n in g of exten ded data. In con trast
to n orm al en tity data, with exten ded data th e sam e group code can appear
multiple times, an d order is im portan t.
Exten ded data is grouped by registered application n am e. Each registered
application group begin s with a 1001 group code, with th e application n am e
as th e strin g value. Registered application n am es correspon d to APPID sym bol
table en tries.
An application can use as m an y APPID n am es as n eeded. APPID n am es are
perm an en t, alth ough th ey can be purged if th ey aren 't curren tly used in th e
drawin g. Each APPID n am e can h ave n o m ore th an on e data group attach ed
to each en tity. With in an application group, th e sequen ce of exten ded data
groups an d th eir m ean in g is defin ed by th e application .
String 1000 Strings in extended data can be up to 255 bytes long (with the
256th byte reserved for the null character)
Application name 1001 Application names can be up to 31 bytes long (the 32nd byte is
also a string reserved for the null character)
value
NOTE Do not add a 1001 group into your extended data because
AutoCAD assumes it is the beginning of a new application exten-
ded data group
Control string 1002 An extended data control string can be either “ {” or “ }” . These
braces enable applications to organize their data by subdividing
the data into lists. The left brace begins a list, and the right brace
terminates the most recent list. Lists can be nested
When AutoCAD reads the extended data for a particular applica-
tion, it checks to ensure that braces are balanced
Layer name 1003 Name of the layer associated with the extended data
Binary data 1004 Binary data is organized into variable-length chunks. The maxim-
um length of each chunk is 127 bytes. In ASCII DXF files, binary
data is represented as a string of hexadecimal digits, two per
binary byte
3 reals 1010, 1020, Three real values, in the order X, Y, Z. They can be used as a point
1030 or vector record. AutoCAD never alters their value
World space posi- 1011, 1021, Unlike a simple 3D point, the world space coordinates are moved,
tion 1031 scaled, rotated, and mirrored along with the parent entity to
which the extended data belongs. The world space position is
also stretched when the STRETCH command is applied to the
parent entity and this point lies within the select window
World space dis- 1012, 1022, Also a 3D point that is scaled, rotated, and mirrored along with
placement 1032 the parent (but is not moved or stretched)
World direction 1013, 1023, Also a 3D point that is rotated and mirrored along with the parent
1033 (but is not moved, scaled, or stretched)
Distance 1041 A real value that is scaled along with the parent entity
Scale factor 1042 Also a real value that is scaled along with the parent. The differ-
ence between a distance and a scale factor is application-defined
3D entities such as line, point, 3dface, 3D These entities do not lie in a particular plane. All points are expressed
polyline, 3D vertex, 3D mesh, 3D mesh in world coordinates. Of these entities, only lines and points can be
vertex extruded. Their extrusion direction can differ from the world Z axis
2D entities such as circle, arc, solid, trace, These entities are planar in nature. All points are expressed in object
text, attrib, attdef, shape, insert, 2D coordinates. These entities can be extruded. Their extrusion direction
polyline, 2D vertex, lwpolyline, hatch, can differ from the world Z axis
image
Dimension Some of a dimension's points are expressed in WCS and some in OCS
You can n ot reliably fin d out wh at UCS was in effect wh en an en tity was
acquired.
253 | Index
254 | Index
Index | 255
256 | Index
Index | 257
258 | Index
Index | 259
260 | Index
Index | 261
262 | Index