dxf2002
TRANSCRIPT
![Page 1: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/1.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 1/188
AutoCAD ® 2002
DXF Reference Guide
![Page 2: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/2.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 2/188
1 2 3 4 5 6 7 8 9 10
Copyright © 2001 Autodesk, Inc.All Right s Reserved
AUTODESK, INC. M AKES NO WARRANTY, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANYIM PLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, REGARDING THESE MATERIALSAND MAKES SUCH MATERIALS AVAILABLE SOLELY ON AN “AS-IS” BASIS.
IN NO EVENT SHALL AUTODESK, INC. BE LIABLE TO ANYONE FOR SPECIAL, COLLATERAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING OUT OF PURCHASE OR USE OF THESE MATERIALS. THESOLE AND EXCLUSIVE LIABILITY TO AUTODESK, INC., REGARDLESS OF THE FORM OF ACTION, SHALL NOT EXCEED THEPURCHASE PRICE OF THE MATERIALS DESCRIBED HEREIN.
Autodesk, Inc. reserves the right to revise and improve its products as it sees fit . This publication describes the state of this productat the time of its publication, and may not reflect the product at all times in the future.
Autodesk Trademarks
The following are registered trademarks of Autodesk, Inc., in the USA and/or other countries: 3D Plan, 3D Props, 3D Studio, 3D StudioMAX, 3D Studio VIZ, 3DSurfer, Act iveShapes, ActiveShapes (logo), Actrix, ADE, ADI, Advanced Modeling Extension, AEC Authority (l ogo),AEC-X, AME, Animator Pro, Animator Studio, ATC, AUGI, AutoCAD, AutoCAD Data Extension, AutoCAD Development System, AutoCADLT, AutoCAD M ap, Autod esk, Autodesk Animator, Autodesk (logo), Autodesk MapGuide, Autodesk University, Autodesk View, AutodeskWalkThrough, Autodesk World, AutoLISP, AutoShade, AutoSketch, AutoSurf, AutoVision, Biped, bringing information down t o earth, CADOverlay, Character Studio, Design Companion, Design Your World, Design Your World (logo), Drafix, Education by Design, Generic,Generic 3D Drafting, Generic CADD, Generic Software, Geodyssey, Heidi, HOOPS, Hyperwire, Inside Track, Kinetix, MaterialSpec,
Mechanical Desktop, Multimedia Explorer, NAAUG, ObjectARX, Office Series, Opus, PeopleTracker, Physique, Planix, Powered withAutodesk Technology, Powered wi th Autodesk Technology (logo), RadioRay, Rastation, Soft desk, Soft desk (logo ), Solut ion 3000, TechTalk, Texture Universe, The AEC Authority, The Auto Architect, TinkerTech, VISION, WHIP! , WHIP! (logo), Woodbourne, WorkCenter, andWorld-Creating Toolkit.
The following are t rademarks of Autodesk, Inc., in the USA and/or ot her count ries: 3D on t he PC, 3ds max, ACAD, Advanced User Interface,AEC Office, AME Link, Animation Partner, Animation Player, Animation Pro Player, A Studio in Every Computer, ATLAST, Auto-Architect,AutoCAD Architectural Desktop, AutoCAD Architectural Desktop Learning Assistance, AutoCAD Learning Assistance, AutoCAD LT LearningAssistance, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface, Autodesk Animator Clips, Autodesk Animator Theatre,Autodesk Device Interface, Autodesk Inventor, Autodesk PhotoEDIT, Autodesk Point A (logo), Autodesk Software Developer's Kit, AutodeskStreamline, Autodesk View DwgX, AutoFlix, AutoPAD, AutoSnap, AutoTrack, Built with ObjectARX (logo), ClearScale, Colour Warper,Combustion, Concept Studio, Content Explorer, cornerStone Toolkit, Dancing Baby (image), Design 2000 (logo), DesignCenter, DesignDoctor, Designer's Toolkit, DesignProf, DesignServer, DWG Linking, DWG Unplugged, DXF, Extending the Design Team, FLI, FLIC, GDXDriver, Generic 3D, gmax, Heads-up Design, Home Series, i-drop, Kinetix (logo), Lightscape, ObjectDBX, onscreen onair online, Ooga-Chaka, Photo Landscape, Photoscape, Plugs and Sockets, PolarSnap, Pro Landscape, QuickCAD, Real-Time Roto, Render Queue,SchoolBox, Simply Smarter Diagramming, SketchTools, Sparks, Suddenly Everything Clicks, Supportdesk, The Dancing Baby, Transform
Ideas Into Reality, Visual LISP, Visual Syllabus, VIZable, Volo, and Where Design Connects.
Third Party Trademarks
All other brand nam es, product nam es or trademarks belong to th eir respecti ve holders.
Third Party Software Program Credits
ACIS Copyright © 1989-2001 Spatial Corp.
Copyright © 1997 M icrosoft Corpo rat ion. All rights reserved.
Internation al CorrectSpell™ Spelling Correction System © 1995 by Lernout & Hauspie Speech Products, N.V. All right s reserved.
InstallShield™ 3.0. Copyrig ht © 19 97 InstallShield Softw are Corporation . All right s reserved.
Portions Copyright © 1991-1996 Arthur D. Applegate. All rights reserved.
Port ions of th is softw are are based on t he work of t he Independ ent JPEG Group .
Typefaces from the Bitstream ® t yp eface library copyrig ht 1 992.
Typefaces from Payne Loving Trust © 1 996. All rights reserved.
GOVERNMENT USE
Use, dup licat ion, o r disclosure by the U. S. Governm ent is subject t o restr ictions as set fort h in FAR 12 .212 (Com mercial Comp uterSoftware-Rest ricted Righ ts) and DFAR 227 .72 02 (Righ ts in Technical Data and Com put er Soft ware), as appl icable.
![Page 3: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/3.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 3/188
iii
Contents
Revisions to the DXF Reference . . . . . . . . . . . 1
Objects Section . . . . . . . . . . . . . . . . . . . 2
Chapter 1 DXF Format . . . . . . . . . . . . . . . . . 5
Organ ization of This Referen ce . . . . . . . . . . . . . . 6
Form attin g Con ven tion s in This Reference . . . . . . . . . 6
Object an d En tity Cod es . . . . . . . . . . . . . . . . 6Group Code Value Types . . . . . . . . . . . . . . . . 7
Group Codes in Nu m erical Order . . . . . . . . . . . . . 9
Chapter 2 HEADER Section . . . . . . . . . . . . . . . . 15
HEADER Section Grou p Cod es . . . . . . . . . . . . . 16
Revised VPORT Header Variab les . . . . . . . . . . . 27
Special Han dlin g of Date/ Tim e Variables . . . . . . . . 28
Chapter 3 CLASSES Section . . . . . . . . . . . . . . . . 31
CLASSES Sectio n Grou p Cod es . . . . . . . . . . . . . 32Defaul t Class Values . . . . . . . . . . . . . . . 33
Chapter 4 TABLES Section . . . . . . . . . . . . . . . . 35
Sym bol Table Grou p Cod es . . . . . . . . . . . . . . 36
Com m on Sym bo l Table Group Cod es . . . . . . . . . . . 36
![Page 4: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/4.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 4/188
iv | Contents
Com m on Group Codes for Sym bo l Table En tries. . . . . . 37
APPID . . . . . . . . . . . . . . . . . . . . . 38
BLOCK_RECORD . . . . . . . . . . . . . . . . . . 39
DIMSTYLE . . . . . . . . . . . . . . . . . . . . 40
LAYER . . . . . . . . . . . . . . . . . . . . . 44
LTYPE . . . . . . . . . . . . . . . . . . . . . 45
STYLE . . . . . . . . . . . . . . . . . . . . . 46UCS . . . . . . . . . . . . . . . . . . . . . . 47
VIEW . . . . . . . . . . . . . . . . . . . . . 49
VPORT . . . . . . . . . . . . . . . . . . . . . 51
Chapter 5 BLOCKS Section . . . . . . . . . . . . . . . . 55
BLOCKS Section Grou p Codes . . . . . . . . . . . . . 56
BLOCK . . . . . . . . . . . . . . . . . . . . . 56
ENDBLK . . . . . . . . . . . . . . . . . . . . 58
Chapter 6 ENTITIES Section . . . . . . . . . . . . . . . . 59
Com m on Group Codes for En tities . . . . . . . . . . . . 60
3DFACE . . . . . . . . . . . . . . . . . . . . 62
3DSOLID . . . . . . . . . . . . . . . . . . . . 63
ACAD_PROXY_ENTITY. . . . . . . . . . . . . . . . 63
ARC . . . . . . . . . . . . . . . . . . . . . . 64
ATTDEF. . . . . . . . . . . . . . . . . . . . . 65
ATTRIB . . . . . . . . . . . . . . . . . . . . . 66
BODY . . . . . . . . . . . . . . . . . . . . . 68
CIRCLE . . . . . . . . . . . . . . . . . . . . . 69
DIMENSION . . . . . . . . . . . . . . . . . . . 69Com m on Dimen sion Group Codes . . . . . . . . . . 69
Align ed Dim en sion Group Cod es. . . . . . . . . . . 71
Linear an d Rotated Dimen sion Group Cod es . . . . . . . 72
Radial an d Diam eter Dim ension Group Codes . . . . . . 73
An gular Dimen sion Group Cod es. . . . . . . . . . . 74
Ordinate Dimen sion Group Codes . . . . . . . . . . 75
Dim en sion Style Overrides . . . . . . . . . . . . . 76
ELLIPSE . . . . . . . . . . . . . . . . . . . . . 76
ELLIPSE Com m an d’s Param eter Op tion . . . . . . . . . 77
HATCH . . . . . . . . . . . . . . . . . . . . . 78
Boun dary Path Data . . . . . . . . . . . . . . . 80Patt ern Data . . . . . . . . . . . . . . . . . 83
IMAGE . . . . . . . . . . . . . . . . . . . . . 83
INSERT . . . . . . . . . . . . . . . . . . . . . 85
LEADER. . . . . . . . . . . . . . . . . . . . . 86
LINE. . . . . . . . . . . . . . . . . . . . . . 88
![Page 5: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/5.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 5/188
Contents | v
LWPO LYLINE . . . . . . . . . . . . . . . . . . . 88
MLINE. . . . . . . . . . . . . . . . . . . . . . 89
MTEXT . . . . . . . . . . . . . . . . . . . . . 92
OLEFRAME . . . . . . . . . . . . . . . . . . . . 93
OLE2FRAME . . . . . . . . . . . . . . . . . . . . 94
POINT. . . . . . . . . . . . . . . . . . . . . . 96
POLYLINE . . . . . . . . . . . . . . . . . . . . 97Polyface Mesh es . . . . . . . . . . . . . . . . . 98
RAY . . . . . . . . . . . . . . . . . . . . . . 99
REGION . . . . . . . . . . . . . . . . . . . . . 99
SEQEND . . . . . . . . . . . . . . . . . . . . 100
SHAPE. . . . . . . . . . . . . . . . . . . . . 100
SOLID . . . . . . . . . . . . . . . . . . . . . 101
SPLINE . . . . . . . . . . . . . . . . . . . . 102
TEXT . . . . . . . . . . . . . . . . . . . . . 103
TOLERANCE. . . . . . . . . . . . . . . . . . . 105
TRACE. . . . . . . . . . . . . . . . . . . . . 106
VERTEX . . . . . . . . . . . . . . . . . . . . 107VIEWPORT . . . . . . . . . . . . . . . . . . . 109
XLINE . . . . . . . . . . . . . . . . . . . . . 113
Chapter 7 OBJECTS Section . . . . . . . . . . . . . . . 115
OBJECT Section Grou p Cod es . . . . . . . . . . . . . 116
Object Own ersh ip . . . . . . . . . . . . . . . 116
Com m on Group Codes for Objects . . . . . . . . . . . 116
ACAD_PROXY_OBJECT . . . . . . . . . . . . . . . 117
ACDBDICTION ARYWDFLT . . . . . . . . . . . . . . 118
ACDBPLACEHOLDER . . . . . . . . . . . . . . . . 119DICTIONARY . . . . . . . . . . . . . . . . . . 120
DICTION ARYVAR . . . . . . . . . . . . . . . . . 121
DIMASSOC . . . . . . . . . . . . . . . . . . . 122
GROUP . . . . . . . . . . . . . . . . . . . . 124
IDBUFFER . . . . . . . . . . . . . . . . . . . 125
IMAGEDEF . . . . . . . . . . . . . . . . . . . 125
IMAGEDEF_REACTOR. . . . . . . . . . . . . . . . 126
LAYER_INDEX . . . . . . . . . . . . . . . . . . 127
LAYER_FILTER . . . . . . . . . . . . . . . . . . 128
LAYOUT . . . . . . . . . . . . . . . . . . . . 128
MLINESTYLE. . . . . . . . . . . . . . . . . . . 131OBJECT_PTR. . . . . . . . . . . . . . . . . . . 132
PLOTSETTINGS . . . . . . . . . . . . . . . . . . 133
RASTERVARIABLES. . . . . . . . . . . . . . . . . 135
SPATIAL_INDEX . . . . . . . . . . . . . . . . . 136
SPATIAL_FILTER . . . . . . . . . . . . . . . . . 137
![Page 6: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/6.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 6/188
vi | Contents
SORTENTSTABLE. . . . . . . . . . . . . . . . . . 138
VBA_PROJECT . . . . . . . . . . . . . . . . . . 139
XRECORD . . . . . . . . . . . . . . . . . . . . 140
Chapter 8 THUMBNAILIMAGE Section . . . . . . . . . . . 143
THUMBNAILIMAGE Sect ion Gro up Co des. . . . . . . . . . 144
Appendix A Drawing Interchange File Formats . . . . . . . . 145
ASCII DXF Files . . . . . . . . . . . . . . . . . . 146
Gen eral DXF File Stru cture . . . . . . . . . . . . . 146
Grou p Codes in DXF Files . . . . . . . . . . . . . 147
ASCII Con trol Ch aract ers in DXF Files . . . . . . . 147
Header Grou p Cod es in DXF Files . . . . . . . . . . 148
Class Group Codes in DXF Files . . . . . . . . . . . 148
Sym bol Table Grou p Cod es in DXF Files . . . . . . . . 149
Sym bol Table Exam ple . . . . . . . . . . . . 149Blocks Grou p Cod es in DXF Files . . . . . . . . . . . 152
En tity Grou p Cod es in DXF Files . . . . . . . . . . . 153
Object Grou p Cod es in DXF Files. . . . . . . . . . . 153
Writing a DXF Interface Program . . . . . . . . . . . 154
Read ing a DXF File . . . . . . . . . . . . . 154
Writin g a DXF File . . . . . . . . . . . . . 156
Bin ary DXF Files . . . . . . . . . . . . . . . . . . 158
Slide Files . . . . . . . . . . . . . . . . . . . . 159
Old Slide Header . . . . . . . . . . . . . . . . 162
Slide Library Files. . . . . . . . . . . . . . . . . . 163
Appendix B Advanced DXF Issues . . . . . . . . . . . . 165
Databa se Objects . . . . . . . . . . . . . . . . . . 166
Persistent Int er-Object Reference Han dles . . . . . . . . . . 166
Poin ter an d Own ership Referen ces . . . . . . . . . . 167
Hard an d Soft Referen ces . . . . . . . . . . . . . 167
Arbitrary Han dles . . . . . . . . . . . . . . . . 167
1005 Group Cod es . . . . . . . . . . . . . . . 168
Subclass Marker s . . . . . . . . . . . . . . . . . . 168
Exten sion Dictionary an d Persistent Reactors . . . . . . . . . 170
Exten ded Data . . . . . . . . . . . . . . . . . . 170Object Coo rdin ate System s (OCS) . . . . . . . . . . . . 173
Arbitrary Axis Algorith m . . . . . . . . . . . . . . . 175
Index . . . . . . . . . . . . . . . . . . 177
![Page 7: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/7.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 7/188
Revisions to the DXF
Reference
Th is topic lists th e revision s to t h e DXF Reference from
th e last up da te to th e DXF Reference. Th e version n um -
ber of th is DXF Referen ce is u 16.1.01. An y up dat es t o
th is referen ce will be available at http://
www.autodesk.com /techpubs/autocad/dxf / .
In this chapter
s Objects Section
![Page 8: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/8.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 8/188
2 | Revisions to the DXF Reference
Objects Section
s New objects: DIMASSOC.
![Page 9: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/9.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 9/188
Objects Section | 3
![Page 10: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/10.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 10/188
4
![Page 11: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/11.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 11/188
DX F Format
Th e DXF™ form at is a t agged d ata represen tation of all
th e in form ation con tained in an Aut oCAD® drawing
file. Tagged data m eans tha t each da ta elem ent in th e file
is preceded b y an integer nu m ber that i s called a group
code. A grou p code’s value ind icates wh at typ e of data
elem en t follows. This value also in dicates th e m eanin g
of a data elem ent for a given object (or record) type.
Virtually all user-specified in format ion in a d rawin g file
can be rep resen ted in DXF form at.
In this chapter
s Or ganization of This Refere
s Object and Entity Codes
s Group Code Value Types
s Group Codes in NumericalOrder
1
![Page 12: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/12.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 12/188
6 | Chapter 1 DXF Format
Organization of This Reference
Th e DXF Reference present s the DXF™ grou p codes foun d in DXF files an d
encou n tered b y Aut oLISP® and ObjectARX™ applications. This chapter
describes the general DXF con ventio ns. Th e rem ain in g ch apt ers list th e
grou p codes organized by ob ject type. Th e group codes are present ed in th eorder th ey are found in a DXF file, an d each ch apter is n am ed accordin g to
th e associated section of a DXF file. Alth ou gh th e DXF file form at is used as
the organizin g m ech anism for t h is referen ce, specific information on th e
actual form attin g of DXF files is fou n d in app en dix A, “Drawing Interchange
File Formats.” Advan ced co n cept s relating to DXF group codes as th ey per-
tain t o both app lication s and DXF files is foun d in app en dix B, “Advanced
DXF Issues.”
For descriptions of th e Aut oLISP funct ion s tha t use group codes, see cha pter
10, “Using AutoLISP to Manipulate AutoCAD Objects,” in the Visual LISP
Developer’s Guide.
Formatting Conventions in This Reference
Each grou p code listed in th is referen ce is presen ted by a nu m eric grou p code
value and a descript ion . All group codes can app ly to DXF™ files, applica-
tions (AutoLISP or ObjectARX), or both. When the description of a code is
differen t for app lication s and DXF files (or on ly applies to on e or th e oth er),
th e description is preceded by t h e followin g in dicators:
APP App lication -specific descriptio n
DXF DXF file-specific descrip tion
If th e descript ion is com m on to bot h DXF files and ap plication s, no in dicator
is provided.
Optional codes are indicated as “optional” in the description.
Object and Entity Codes
In th e DXF™ format , th e defin ition of objects differs from en tities: objects
h ave no graph ical representation an d en tities do. For examp le, diction ariesare objects not entities. Entities are also referred to as graphical objects while
objects are referred to as nongraphical objects.
![Page 13: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/13.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 13/188
Group Code Value Types | 7
En tities app ear in b oth th e BLOCK and ENTITIES section s of th e DXF file.
Th e use of group co des in th e two section s is iden tical.
Some group codes that define an entity always appear; others are optional
an d app ear only if th eir values differ from th e defaults.
Do no t write programs th at rely on th e order given here. Th e end o f an ent ity
is in dicated by th e n ext 0 group, which begins the n ext entity or indicatesthe en d of th e section.
NOT E Accommodating DXF files from future releases of AutoCAD® will be eas-
ier if you wr ite your DXF processing program in a table-driven way, ignore unde-
fined group codes, and make no assumptions about the order of group codes in
an entity. With each new AutoCAD release, new group codes will be added to
entit ies to accommodate additional features.
Group Code Value Types
Group codes define th e type of the a ssociated value as an int eger, a float in g-
poin t nu m ber, or a string, accordin g to the following table of grou p code
ranges. For information about ab breviations and form atting u sed in t h is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
Group code value types
Code range Group value type
0–9 St ring (wit h th e int roduct ion of ext end ed sym bol names inAutoCAD 2000, the 255 character limit has been lifted.There is no explicit limit to the number of bytes per line,although most lines should fall within 2049 bytes)
10–39 Double precision 3D point
40–59 Double precision float ing point value
60–79 16-bit integer value
90–99 32-bit integer value
100 St ring (255-character max imum; less for Un icode strings)
102 St ring (255-character max imum; less for Un icode strings)
![Page 14: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/14.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 14/188
8 | Chapter 1 DXF Format
105 St ring rep resent ing hexadecimal (hex) han dle value
110–119 Double precision float ing point value
120–129 Double precision float ing point value
130–139 Double precision float ing point value
140–149 Double precision scalar float ing-point value
170–179 16-bit integer value
210–239 Double precision float ing point value
270–279 16-bit integer value
280–289 16-bit integer value
290–299 Boolean flag value
300–309 Arbitrary text string
310–319 String represent ing hex value of binary chunk
320–329 String represent ing hex handle value
330–369 St ring rep resent ing hex ob ject IDs
370–379 16-bit integer value
380–389 16-bit integer value
390–399 String represent ing hex handle value
400–409 16-bit integer value
410–419 String
999 Comment (string)
1000–1009 String (same limits as indicated with 0–9 code range)
1010–1059 Double precision floating point value
1060–1070 16-b it integer value
Group code value types (continued )
Code range Group value type
![Page 15: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/15.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 15/188
Group Codes in Numerical Order | 9
Group Codes in Numerical Order
Th e followin g table gives th e grou p code or group cod e range accom pan ied
by an explanation of th e group code value. In th e table, “fixed” in dicates that
th e group code always h as the sam e pu rpose. If a grou p code isn’t fixed, its
purpose depends on the con text. For information about abbreviations an d
formatt ing used in t his table, see “Form attin g Con ven tion s in Th is Refer-
ence” on p age 6.
1071 32-bit integer value
Group codes by number
Group code Description
–5 APP: persistent reactor chain
–4 APP: condit ional operator (used only with s s g e t )
–3 APP: extended dat a (XDATA) sentinel (fixed)
–2 APP: ent ity name reference (fixed)
–1 APP: entity name. The name changes each time a drawing is opened. It
is never saved (f ixed)
0 Text string indicating the entity type (fixed)
1 Primary text value for an entity
2 Name (attribute tag, block name, and so on)
3–4 Other text or name values
5 Ent it y h andle; text string of up t o 16 h exad ecimal digit s (fixed )
6 Linetype name (fixed)
7 Text style name (fixed)
8 Layer name (fixed)
Group code value types (continued )
Code range Group value type
![Page 16: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/16.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 16/188
10 | Chapter 1 DXF Format
9 DXF: var iable name identifier (used only in HEADER sect ion of the DXFfile)
10 Primary point ; th is is the start po in t of a line or text ent ity, center of acircle, and so onDXF: X value of the primary point (followed by Y and Z value codes 20and 30)APP: 3D point (list of three reals)
11–18 Other pointsDXF: X value of other point s (followed by Y value codes 21–28 and Z value codes 31–38)APP: 3D point (list of three reals)
20, 30 DXF™: Y and Z values of the primary point
21–28, 31–37 DXF: Y and Z values of other points
38 DXF: entity’s elevation if nonzero
39 Ent ity’s thickness if nonzero (fixed)
40–48 Double precision floating point values (text height, scale factors, andso on)
48 Linetype scale; double precision float ing point scalar value; defaultvalue is defined for all entity types
49 Repeated double precision float ing point value. Mult ip le 49 g roups
may appear in one entity for variable-length tables (such as the dashlengths in the LTYPE table). A 7x group always appearsbefore the first49 group to specify the table length
50–58 Angles (output in degrees to DXF files and radians through AutoLISPand ObjectARX applications)
60 Ent ity visib ility; in teger value; absence or 0 ind icates visib ility;1 indicates invisibility
62 Color number (fixed)
66 “ Ent it ies follow” flag (fixed)
67 Space—that is, model or paper space (fixed)
Group codes by number (continued )
Group code Description
![Page 17: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/17.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 17/188
Group Codes in Numerical Order | 11
68 APP: identifies whether viewpor t is on but fully off screen; is not activeor is off
69 APP: viewport ident ification number
70–78 Integer values, such as repeat counts, f lag bits, or modes
90–99 32-bit integer values
100 Subclass data marker (with derived class name as a string). Required forall objects and entity classes that are derived from another concreteclass. The subclass data marker segregates data defined by differentclasses in the inheritance chain for the same object.This is in addition t o the requirement for DXF names for each distinctconcrete class derived from ObjectARX (see “ Subclass Markers” onpage 168)
102 Cont rol st ring , followed by “ {<arbit rary name>” or “ } ” . Similar to thexdata 1002 group code, except t hat when the string begins with “ {“ , itcan be followed by an arbitrary string whose interpretation is up to theapplication. The only other cont rol string allowed is “ }” as a groupterminator. AutoCAD does not interpret these strings except duringdrawing audit operations. They are for application use
105 Object handle for DIM VAR sym bol table entry
110 UCS origin (appears only if code 72 is set to 1)DXF: X value; APP: 3D point
111 UCS X -axis (appears only if code 72 is set to 1)DXF: X value; APP: 3D vector
112 UCS Y -axis (appears only if code 72 is set t o 1)DXF: X value; APP: 3D vector
120–122 DXF: Y value of UCS origin, UCS X -axis, and UCSY -axis
130–132 DXF: Z value of UCS orig in, UCS X -axis, and UCS Y -axis
140–149 Double precision floating point values (points, elevation, andDIM STYLE sett ings, for example)
170–179 16-bit integer values, such as flag bits representing DIMSTYLE settings
210 Extrusion direct ion (fixed)DXF: X value of extrusion directionAPP: 3D extrusion d irection vector
Group codes by number (continued )
Group code Description
![Page 18: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/18.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 18/188
12 | Chapter 1 DXF Format
220, 230 DXF: Y and Z values of the extrusion direct ion
270–279 16-bit integer values
280–289 16-bit integer values
290–299 Boolean flag value
300–309 Arbit rary text strings
310–319 Arbitrary binary chunks with same representation and limits as 1004group codes: hexadecimal strings of up to 254 characters representdata chunks of up to 127 bytes
320–329 Arbitrary object handles; handle values that are taken “ as is.” They arenot t ranslated during INSERT and XREF operations
330–339 Soft-pointer handle; arbitrary soft pointers to other objects within sameDXF file or drawing. Translated during INSERT and XREF operations
340–349 Hard-pointer handle; arbitrary hard pointers to other objects withinsame DXF file or drawing. Translated during INSERT and XREFoperations
350–359 Soft-owner handle; arbitrary soft ownership links to other objectswithin same DXF file or drawing. Translated during INSERT and XREFoperations
360–369 Hard-owner handle; arbitrary hard ownership links to other objects
within same DXF file or drawing. Translated during INSERT and XREFoperations
370–379 Lineweight enum value (AcDb::LineWeight). Stored and moved aroundas a 16-bit integer. Custom non-entity objects may use the full range,but entity classes only use 371–379 DXF group codes in theirrepresentation , because AutoCAD® and AutoLISP both always assume a370 group code is the entity’s lineweight. This allows 370 to behavelike other “ common” entity fields
380–389 PlotStyleName type enum (AcDb::PlotStyleNameType). Stored andmoved around as a 16-bit integer. Custom non-entity objects may usethe full range, but entity classes only use 381–389 DXF group codes in
their representation, for the same reason as the Lineweight rangeabove
Group codes by number (continued )
Group code Description
![Page 19: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/19.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 19/188
Group Codes in Numerical Order | 13
390–399 String representing handle value of the PlotStyleName object, basicallya hard pointer, but has a different range to make backwardcompatibility 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 classesonly use 391–399 DXF group codes in t heir representation, for thesame reason as the Lineweight range above
400–409 16-bit Integers
410–419 String
999 DXF: The 999 group code ind icates that the line following it is acomment string. SAVEAS does not include such groups in a DXF outputfile, but OPEN honors them and ignores the comm ents. You can usethe 999 g roup to include comments in a DXF file that you’ve edited
1000 ASCII st ring (up to 255 bytes long) in ex tended data
1001 Registered applicat ion name (ASCII string up to 31 bytes long) forextended data
1002 Extended data control string (“ { ” or “ } ” )
1003 Extended data layer name
1004 Chunk of b ytes (up to 12 7 b ytes lon g) in ext ended data
1005 Ent ity handle in extended data; text st ring of up to 16 hexadecimal
digits
1010 A point in extended dataDXF: X value (followed by 1020 and 1030 groups)APP: 3D point
1020, 1030 DXF: Y and Z values of a point
1011 A 3D world space position in ext ended dat aDXF: X value (followed by 1021 and 1031 g roups)APP: 3D point
1021, 1031 DXF: Y and Z values of a world space position
1012 A 3D world space displacement in ex tended d ataDXF: X value (followed by 1022 and 1032 g roups)APP: 3D vector
Group codes by number (continued )
Group code Description
![Page 20: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/20.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 20/188
14 | Chapter 1 DXF Format
1022, 1032 DXF: Y and Z values of a world space displacement
1013 A 3D world space direction in ext ended dat a
DXF: X value (followed by 1022 and 1032 g roups)APP: 3D vector
1023, 1033 DXF: Y and Z values of a world space direction
1040 Extended data doub le p recision floating point value
1041 Extended data distance value
1042 Extended data scale factor
1070 Extended data 16-bit signed integer
1071 Extended data 32-bit signed long
Group codes by number (continued )
Group code Description
![Page 21: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/21.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 21/188
1
HEADER Section
Th e group codes d escribed in th is ch apt er pertain
on ly to DXF™ files. Th e HEADER section of a DXF file
cont ains th e settin gs of variables associated with th e
drawing. Each variable is specified by a 9 grou p code
giving th e variable’s n am e, followed by group s that
supply t h e variable’s value. Th is ch apter lists on ly th e
variables tha t are saved in th e drawin g file.
In this chapter
s HEADER Section Group Co
2
![Page 22: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/22.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 22/188
16 | Chapter 2 HEADER Section
HEADER Section Group Codes
Th e following tab le lists th e variables th at are saved in a D XF™ file. For in for-
m ation about ab breviations and form atting used in t h is table, see “Format-
ting Con ven tion s in Th is Referen ce” on page 6.
DX F system variables
Variable Group code Description
$ACADM AIN TVER 70 M aintenance version n umb er (should b e ignored)
$ACADVER 1 The AutoCAD® drawing database version number:AC1006 = R10, AC1009 = R11 and R12,AC1012 = R13, AC1014 = R14, AC1015 = AutoCAD 2000
$ANGBASE 50 Angle 0 direction
$ANGDIR 70 1 = Clockwise angles, 0 = Counterclockwise
$ATTMODE 70 Attribute visibility: 0 = None, 1 = Normal, 2 = All
$AUNITS 70 Units format for angles
$AUPREC 70 Units precision for angles
$CECOLOR 62 Current ent ity color number:0 = BYBLOCK, 256 = BYLAYER
$CELTSCALE 40 Current ent ity linetype scale
$CELTYPE 6 Ent ity linetype name, or BYBLOCK or BYLAYER
$CELWEIGHT 370 Lineweig ht of new ob jects
$CPSNID 390 Plotstyle handle of new objects. If CEPSNTYPE is 3, then this valueindicates the handle
$CEPSNTYPE 380 Plotstyle type of new ob jects:0 = PlotStyle by layer1 = PlotStyle by block2 = PlotStyle by dictionary default3 = PlotStyle by object ID/handle
$CHAMFERA 40 First chamfer distance
$CHAMFERB 40 Second chamfer distance
![Page 23: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/23.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 23/188
HEADER Section Group Codes | 17
$CHAMFERC 40 Chamfer length
$CHAMFERD 40 Chamfer angle
$CLAYER 8 Current layer name
$CMLJUST 70 Current multiline just ification:0 = Top, 1 = Middle, 2 = Bottom
$CMLSCALE 40 Current multiline scale
$CMLSTYLE 2 Current multiline style name
$DIMADEC 70 Number of precision places displayed in angular dimensions
$DIMALT 70 Alternate unit dimensioning performed if nonzero
$DIMALTD 70 Alternate unit decimal places
$DIMALTF 40 Alternate unit scale factor
$DIMALTRND 40 Determines rounding o f alternate units
$DIM ALTTD 70 Number of decimal places for t olerance values of an alternat e unitsdimension
$DIM ALTTZ 70 Cont rols suppression of zeros for alternat e tolerance values:0 = Suppresses zero feet and precisely zero inches
1 = Includes zero feet and precisely zero inches2 = Includes zero feet and suppresses zero inches3 = Includes zero inches and suppresses zero feet
$DIMALTU 70 Units format for alternate units of all dimension style familymembers except angular:1 = Scienti fic; 2 = Decimal; 3 = Engineering ;4 = Architectural (stacked); 5 = Fractional (stacked);6 = Architectural; 7 = Fractional
$DIM ALTZ 70 Controls suppression of zeros for alternat e unit dim ension values:0 = Suppresses zero feet and precisely zero inches1 = Includes zero feet and precisely zero inches2 = Includes zero feet and suppresses zero inches
3 = Includes zero inches and suppresses zero feet
$DIMAPOST 1 Alternate dimensioning suffix
DX F system variables (continued )
Variable Group code Description
![Page 24: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/24.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 24/188
18 | Chapter 2 HEADER Section
$DIMASO 70 1 = Create associat ive dimensioning0 = Draw individual entities
$DIMASZ 40 Dimensioning arrow size
$DIMATFIT 70 Controls dimension text and arrow placement when space is notsufficient to place both within the extension lines:0 = Places both text and arrows outside extension lines1 = Moves arrows first, then text2 = M oves text first, t hen arrows3 = M oves either t ext or arrows, wh ichever fit s bestAutoCAD adds a leader to moved dimension text whenDIMTMOVE is set to 1
$DIMAUNIT 70 Angle format for angular dimensions:0 = Decimal degrees, 1 = Degrees/minutes/ seconds,
2 = Gradians, 3 = Radians, 4 = Surveyor’s units
$DIMAZIN 70 Controls suppression of zeros for angular dimensions:0 = Displays all leading and trailing zeros1 = Suppresses leading zeros in decimal dimensions2 = Suppresses trailing zeros in decimal dimensions3 = Suppresses leading and trailing zeros
$DIMBLK 1 Arrow block name
$DIMBLK1 1 First arrow block name
$DIMBLK2 1 Second arrow block name
$DIMCEN 40 Size of center mark/ lines
$DIMCLRD 70 Dimension line color:range is 0 = BYBLOCK, 256 = BYLAYER
$DIMCLRE 70 Dimension extension line color:range is 0 = BYBLOCK, 256 = BYLAYER
$DIMCLRT 70 Dimension text color:range is 0 = BYBLOCK, 256 = BYLAYER
$DIMDEC 70 Number of decimal places for the tolerance values of a primary
units dimension
$DIMDLE 40 Dimension line extension
$DIMDLI 40 Dimension line increment
DX F system variables (continued )
Variable Group code Description
![Page 25: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/25.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 25/188
HEADER Section Group Codes | 19
$DIMDSEP 70 Single-character decimal separator used when creating dimensionswhose unit format is decimal
$DIMEXE 40 Extension line extension
$DIMEXO 40 Extension line offset
$DIMFAC 40 Scale factor used to calculate the height of text for dimensionfractions and tolerances. AutoCAD multiplies DIMTXT by DIMTFACto set the fractional or tolerance text height
$DIMGAP 40 Dimension line gap
$DIM JUST 70 Horizont al d imensio n text posit ion:0 = Above dimension line and center-justified between extensionlines
1 = Above dimension line and next to first extension line2 = Above dimension line and next to second extension line3 = Above and center-justified to first extension line4 = Above and center-justif ied to second extension line
$DIM LDRBLK 1 Arrow block name for leaders
$DIMLFAC 40 Linear measurements scale factor
$DIMLIM 70 Dimension limits generated if nonzero
$DIMLUNIT 70 Sets uni ts for al l dimension types except Angular:1 = Scienti fic; 2 = Decimal; 3 = Engineering ;
4 = Architectural; 5 = Fractional; 6 = Windows desktop
$DIMLWD 70 Dimension line lineweight: –3 = Standard –2 = ByLayer –1 = ByBlock0–211 = an integer representing 100th of mm
$DIMLWE 70 Extension line lineweight: –3 = Standard –2 = ByLayer –1 = ByBlock0–211 = an integer representing 100th of mm
$DIMPOST 1 General dimensioning suffix
$DIMRND 40 Rounding value for dimension distances
$DIMSAH 70 Use separate arrow blocks if nonzero
DX F system variables (continued )
Variable Group code Description
![Page 26: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/26.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 26/188
20 | Chapter 2 HEADER Section
$DIMSCALE 40 Overall dimensioning scale factor
$DIMSD1 70 Suppression of first extension line:
0 = N ot suppressed, 1 = Suppressed
$DIMSD2 70 Suppression of second extension line:0 = N ot suppressed, 1 = Suppressed
$DIMSE1 70 First extension line suppressed if nonzero
$DIMSE2 70 Second extension line suppressed if nonzero
$DIMSHO 70 1 = Recompute dimensions while dragging0 = Drag original image
$DIMSOXD 70 Suppress outside-extensions dimension lines if nonzero
$DIMSTYLE 2 Dimension style name
$DIMTAD 70 Text above dimension line if nonzero
$DIMTDEC 70 Number of decimal places to display the tolerance values
$DIMTFAC 40 Dimension tolerance display scale factor
$DIMTIH 70 Text inside horizontal if nonzero
$DIMTIX 70 Force text inside extensions if nonzero
$DIMTM 40 Minus tolerance
$DIM TM OVE 70 Dim ension t ext m ovement rules:0 = Moves the dimension line with dimension text1 = Adds a leader when dimension t ext is moved2 = Allows text to be moved freely without a leader
$DIMTOFL 70 If text is outside extensions, force line extensions betweenextensions if nonzero
$DIMTOH 70 Text outside horizontal if nonzero
$DIMTOL 70 Dimension tolerances generated if nonzero
$DIMTOLJ 70 Vert ical justification for tolerance values:0 = Top, 1 = Middle, 2 = Bottom
DX F system variables (continued )
Variable Group code Description
![Page 27: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/27.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 27/188
HEADER Section Group Codes | 21
$DIMTP 40 Plus tolerance
$DIMTSZ 40 Dimensioning t ick size:
0 = No ticks
$DIMTVP 40 Text vertical position
$DIMTXSTY 7 Dimension text style
$DIMTXT 40 Dimensioning text height
$DIMTZIN 70 Controls suppression of zeros for tolerance values:0 = Suppresses zero feet and precisely zero inches1 = Includes zero feet and precisely zero inches2 = Includes zero feet and suppresses zero inches3 = Includes zero inches and suppresses zero feet
$DIMUPT 70 Cursor funct ionality for user positioned text:0 = Controls only the dimension line location1 = Controls the text position as well as the dimension line location
$DIMZIN 70 Controls suppression of zeros for primary unit values:0 = Suppresses zero feet and precisely zero inches1 = Includes zero feet and precisely zero inches2 = Includes zero feet and suppresses zero inches3 = Includes zero inches and suppresses zero feet
$DISPSILH 70 Controls the display of silhouet te curves of body objects in Wire-frame mode:
0 = Off, 1 = On
$DWGCODEPAGE 3 Draw ing code p age; Set to t he syst em cod e pag e w hen a newdrawing is created, but not otherwise maintained by AutoCAD
$ELEVATION 40 Current elevation set by ELEV command
$ENDCAPS 280 Lineweight endcaps sett ing for new objects:0 = none; 1 = round; 2=angle; 3=square
$EXTMAX 10, 20, 30 X , Y , and Z drawing extents upper-right corner (in WCS)
$EXTMIN 10, 20, 30 X , Y , and Z drawing extents lower-left corner (in WCS)
DX F system variables (continued )
Variable Group code Description
![Page 28: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/28.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 28/188
22 | Chapter 2 HEADER Section
$EXTN AM ES 29 0 Cont rols sym bol table n aming :0 = Release 14 compatibility. Limits names to 31 characters inlength. Names can include the letters A to Z, the numerals 0 to 9,
and the special characters, dollar sign ($), underscore (_), andhyphen (–).1 = AutoCAD 2000. Names can be up to 255 characters in length,and can include the letters A to Z, the numerals 0 to 9, spaces, andany special characters not used by Microsoft Windows andAutoCAD for other purposes
$FILLETRAD 40 Fillet radius
$FILLMODE 70 Fill mode on if nonzero
$FINGERPRINTGUID 2 Set at creat ion t ime, uniquely ident i fies a particular drawing
$HANDSEED 5 Next available handle
$HYPERLINKBASE 1 Path for all relative hyperlinks in the drawing. If null, the drawingpath is used
$IN SBASE 10 , 20, 30 Insert ion base set by BASE com mand (in WCS)
$INSUNITS 70 Default drawing units for AutoCAD DesignCenter blocks:0 = Unitless; 1 = Inches; 2 = Feet; 3 = Miles; 4 = Millimeters;5 = Centimeters; 6 = M eters; 7 = Kilometers; 8 = Microinches;9 = Mils; 10 = Yards; 11 = Angstroms; 12 = Nanometers;13 = Microns; 14 = Decimeters; 15 = Decameters;16 = Hectometers; 17 = Gigameters; 18 = Astronomical unit s;
19 = Light years; 20 = Parsecs
$JOINSTYLE 280 Lineweight joint sett ing for new objects:0=none; 1= round; 2 = angle; 3 = flat
$LIMCHECK 70 Nonzero if lim its checking is on
$LIMMAX 10, 20 XY drawing limits upper-right corner (in WCS)
$LIMMIN 10, 20 XY drawing limits lower-left corner (in WCS)
$LTSCALE 40 Global linetype scale
$LUNITS 70 Units format for coordinates and distances
$LUPREC 70 Units precision for coordinates and distances
DX F system variables (continued )
Variable Group code Description
![Page 29: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/29.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 29/188
HEADER Section Group Codes | 23
$LWDISPLAY 290 Cont rols t he display of lineweight s on t he M odel or Layout tab:0 = Lineweight is not displayed1 = Lineweight is displayed
$MAXACTVP 70 Sets maximum number of viewports to be regenerated
$M EASUREM ENT 70 Set s drawing units: 0 = English; 1 = M etric
$MENU 1 Name of menu file
$MIRRTEXT 70 Mirror text if nonzero
$ORTHOMODE 70 Ortho mode on if nonzero
$PDMODE 70 Point Display mode
$PDSIZE 40 Point display size
$PELEVATION 40 Current paper space elevat ion
$PEXTMAX 10, 20, 30 Maximum X , Y , and Z extents for paper space
$PEXTMIN 10, 20, 30 Minimum X , Y , and Z extents for paper space
$PINSBASE 10, 20, 30 Paper space insertion base point
$PLIMCHECK 70 Limits checking in paper space when nonzero
$PLIMMAX 10, 20 Maximum X and Y limits in paper space
$PLIMMIN 10, 20 Minimum X and Y limits in paper space
$PLIN EGEN 70 Governs the generat ion of linetype pat terns around the vert ices of a2D polyline:1 = Linetype is generated in a cont inuous patt ern around vertices ofthe polyline0 = Each segment of the polyline starts and ends with a dash
$PLINEWID 40 Default polyline width
$PROXYGRAPHICS 70 Cont ro ls t he saving of proxy object imag es
$PSLTSCALE 70 Controls paper space linetype scaling:1 = N o special linetype scaling0 = Viewport scaling governs linetype scaling
DX F system variables (continued )
Variable Group code Description
![Page 30: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/30.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 30/188
24 | Chapter 2 HEADER Section
$PSTYLEMODE 290 Indicates whether the current draw ing is in a Color-Dependen t orNamed Plot Style mode:0 = Uses color-dependent plot style tables in the current drawing
1 = Uses named plot style tables in the current drawing
$PSVPSCALE 40 View scale factor for new viewports:0 = Scaled to fit>0 = Scale factor (a positive real value)
$PUCSBASE 2 Name of the UCS that defines the origin and orientat ion oforthographic UCS settings (paper space only)
$PUCSNAME 2 Current paper space UCS name
$PUCSORG 10, 20, 30 Current paper space UCS origin
$PUCSORGBACK 10, 20, 30 Point which becomes the new UCS origin after changing paperspace UCS to ‘BACK’ when PUCSBASE is set to WORLD
$PUCSORGBOTTOM 10, 20, 30 Point which becomes the new UCS origin after changing paperspace UCS to ‘BOTTOM’ when PUCSBASE is set to WORLD
$PUCSORGFRONT 10, 20, 30 Point which becomes the new UCS origin after changing paperspace UCS to ‘FRONT’ when PUCSBASE is set to WORLD
$PUCSORGLEFT 10, 20, 30 Point which becomes the new UCS origin after changing paperspace 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 paperspace UCS to ‘TOP’ when PUCSBASE is set to WORLD
$PUCSORTHOREF 2 If paper space UCS is orthographic (PUCSORTHOVIEW not equal to0), this is the name of t he UCS that the orthographic UCS is relat iveto. If blank, UCS is relative to WORLD
$PUCSORTHOVIEW 70 Orthographic view type of paper space UCS:0 = UCS is not orthographic;1 = Top; 2 = Bottom;3 = Front; 4 = Back;
5 = Left ; 6 = Right
$PUCSXDIR 10, 20, 30 Current paper space UCS X axis
$PUCSYDIR 10, 20, 30 Current paper space UCS Y axis
DX F system variables (continued )
Variable Group code Description
![Page 31: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/31.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 31/188
HEADER Section Group Codes | 25
$QTEXTMODE 70 Quick Text mode on if nonzero
$REGENMODE 70 REGENAUTO mode on if nonzero
$SHADEDGE 70 0 = Faces shaded, edges not highlighted1 = Faces shaded, edges highlighted in black2 = Faces not fi lled, edges in entity color3 = Faces in entity color, edges in black
$SHADEDIF 70 Percent ambient/diffuse light, range 1–100, default 70
$SKETCHINC 40 Sketch record increment
$SKPOLY 70 0 = Sketch lines, 1 = Sketch polylines
$SPLFRAME 70 Spline control polygon display: 1 = On, 0 = Off
$SPLINESEGS 70 Number of line segments per spline patch
$SPLINETYPE 70 Spline curve type for PEDIT Spline
$SURFTAB1 70 Number of mesh tabulations in first direct ion
$SURFTAB2 70 Number of mesh tabulations in second direction
$SURFTYPE 70 Surface type for PEDIT Smooth
$SURFU 70 Surface density (for PEDIT Smooth) in M direction
$SURFV 70 Surface density (for PEDIT Smooth) in N direction
$TDCREATE 40 Local date/time of drawing creation (see “ Special Handling of Date/ Tim e Variables”)
$TDINDWG 40 Cumulat ive editing t ime for this drawing (see “ Special Handling ofDate/ Time Variables” )
$TDUCREATE 40 Universal date/ time the drawing was created (see “ SpecialHandling of Date/Time Variables” )
$TDUPDATE 40 Local date/t ime of last drawing update (see “ Special Handling of
Date/ Time Variables” )
$TDUSRTIMER 40 User-elapsed t imer
DX F system variables (continued )
Variable Group code Description
![Page 32: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/32.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 32/188
26 | Chapter 2 HEADER Section
$TDUUPDATE 40 Universal date/ time of the last update/save (see “ Special Handlingof Date/Time Variables” )
$TEXTSIZE 40 Default text height
$TEXTSTYLE 7 Current text style name
$THICKNESS 40 Current thickness set by ELEV command
$TILEMODE 70 1 for previous release compatibility mode, 0 otherwise
$TRACEWID 40 Default trace width
$TREEDEPTH 70 Specifies the maximum depth of the spatial index
$UCSBASE 2 Name of the UCS that defines the origin and orientat ion oforthographic UCS settings
$UCSNAME 2 Name of current UCS
$UCSORG 10, 20, 30 Origin of current UCS (in WCS)
$UCSORGBACK 10, 20, 30 Point which becomes the new UCS origin after changing modelspace UCS to ‘BACK’ when UCSBASEis set to WORLD
$UCSORGBOTTOM 10, 20, 30 Point which becomes the new UCS origin after changing modelspace UCS to ‘ BOTTOM ’ when UCSBASE is set to WORLD
$UCSORGFRONT 10, 20, 30 Point which becomes the new UCS origin after changing modelspace UCS to ‘ FRONT’ when UCSBASE is set to WORLD
$UCSORGLEFT 10, 20, 30 Point which becomes the new UCS origin after changing modelspace UCS to ‘LEFT’ when UCSBASE is set to WORLD
$UCSORGRIGHT 10, 20, 30 Point which becomes the new UCS origin after changing modelspace UCS to ‘ RIGHT’ when UCSBASE is set to WORLD
$UCSORGTOP 10, 20, 30 Point which becomes the new UCS origin after changing modelspace UCS to ‘ TOP’ when UCSBASE is set to WORLD
$UCSORTHOREF 2 If model space UCS is o rthographic (UCSORTHOVIEW not equal to
0), this is the name of t he UCS that the orthographic UCS is relat iveto. If blank, UCS is relative to WORLD
DX F system variables (continued )
Variable Group code Description
![Page 33: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/33.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 33/188
HEADER Section Group Codes | 27
Revised VPORT Header Variables
The following h eader variables existed before Auto CAD® Release 11 b ut n ow
have independent settings for each active viewport. OPEN h on ors th ese vari-
ables wh en read from DXF™ files. If a VPORT sym bol ta ble with *ACTIVE
ent ries is present (as is tru e for an y DXF file pro du ced by Release 11 or later),
$UCSORTHOVIEW 70 Ort hographic view type of m odel space UCS:0 = UCS is not orthographic;1 = Top; 2 = Bottom;
3 = Front; 4 = Back;5 = Left ; 6 = Right
$UCSXDIR 10, 20, 30 Direction of the current UCS X axis (in WCS)
$UCSYDIR 10, 20, 30 Direction of the current UCS Y axis (in WCS)
$UNITMODE 70 Low bit set = Display fract ions, feet -and-inches, and surveyor’ sangles in input format
$USERI1 – 5 70 Five int eger variables int ended for use by third-part y developers
$USERR1 – 5 40 Five real variables intended for use by t hird-party developers
$USRTIMER 70 0 = Timer off, 1 = Timer on
$VERSIONGUID 2 Uniq uely ident ifies a particular version o f a d raw ing . Up dat ed whenthe drawing is modified
$VISRETAIN 70 0 = Don’t retain xref-dependent visibility sett ings1 = Retain xref-dependent visibilit y settings
$WORLDVIEW 70 1 = Set UCS to WCS during DVIEW/VPOINT0 = Don’t change UCS
$XEDIT 290 Controls whether the current drawing can be edited in-place when
being referenced by another drawing.0 = Can’t use in-place reference editing1 = Can use in-place reference editing
DX F system variables (continued )
Variable Group code Description
![Page 34: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/34.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 34/188
28 | Chapter 2 HEADER Section
th e values in th e VPORT table en tries override the values of th ese h eader
variables.
Special Handling of Date/Time Variables
Th e CDATE an d DATE system variables provide access to th e curren t dat e and
time. Th e TDCREATE, TDINDWG, TDUPDATE, and TDUSRTIMER system vari-
ables (an d th e $ TDCREATE, $TDUC REATE, $TDUPDATE, an d $TDUUPDATE
DXF h eader variables) pro vide access to tim es an d d ates associated with th e
current drawing. Th e values are represen ted as real n um bers with special
m ean in gs, as d escribed below.
DATE is th e current date an d tim e represented as a Julian date an d fraction of
a day in a real n um ber.
<Julian date >.<Fraction of day >
Revised VPO RT header variables
Variable Group code Description
$FASTZOOM 70 Fast zoom enabled if nonzero
$GRIDMODE 70 Grid mode on if nonzero
$GRIDUNIT 10, 20 Grid X and Y spacing
$SNAPANG 50 Snap grid rotation angle
$SNAPBASE 10, 20 Snap/grid base point (in UCS)
$SNAPISOPAIR 70 Isometric plane: 0 = Left, 1 = Top, 2 = Right
$SNAPMODE 70 Snap mode on if nonzero
$SNAPSTYLE 70 Snap style: 0 = Standard, 1 = Isometric
$SNAPUNIT 10, 20 Snap grid X and Y spacing
$VIEWCTR 10, 20 XY center of current view on screen
$VIEWDIR 10, 20, 30 Viewing direct ion (d irection from target in WCS)
$VIEWSIZE 40 Height of view
![Page 35: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/35.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 35/188
HEADER Section Group Codes | 29
For exam ple, on December 31, 1999, at 9:58:35 p.m . GMT, th e DATE variable
contains
2451544.91568287
Th e date and time are taken from the co m puter’s clock when the variable is
read. The t ime is represented as a fraction o f a day, do th e times retu rn ed by
DATE m ay be truly sub tracted to com pu te differen ces in tim e. To extract th e
seconds sin ce midn igh t from th e value return ed b y DATE, use th e Auto LISP
expressions:
( s e t q s ( g e t v a r " D A T E " ) )( s e t q s e c o n d s ( * 8 6 4 0 0 . 0 ( - s ( f i x s ) ) ) )
Note that DATE on ly return s a t rue Julian d ate if th e system ’s clock is set to
UTC/Zulu (Green wich Mean Time). TDCREATE and TDUPDATE have th e same
form at as DATE, but their values represen t t h e creation time an d last u pdate
time of th e current drawin g.
TDINDWG an d TDUSRTIMER (and th e $TDINDW G an d $TDUSRTIMER DXF
h eader variables) use a form at similar to th at of DATE, but t h eir values repre-
sen t elapsed t im es, as in :
<Number of days >.<Fraction of day >
CDATE is the current d ate and time in calend ar and clock form at. The value
is return ed as a real num ber in th e form :
YYYYMMDD.HHMMSShsec
where:
YYYY = yearMM = mon th (01-12)
DD = day (01-31)
HH = hours (00-23)
MM = m in ut es (00-59)
SS = secon ds (00-59)
hsec = hun dred th s of a secon d (00-99)
For exam ple, if the curren t date is December 31, 1999, and th e tim e is
9:58:35.75 p.m., CDATE would return the value:
19991231.21583575
Note that CDATE values can be comp ared for later an d earlier values but t ha t
subtractin g them yields nu m bers th at are n ot m eanin gful.
![Page 36: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/36.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 36/188
30
![Page 37: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/37.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 37/188
3
CLASSES Section
Th e group codes d escribed in th is ch apt er are fou n d
on ly in DXF™ files. The CLASSES sectio n h olds th e
inform ation for application -defined classes who se
in stan ces app ear in t h e BLOCKS, ENTITIES, an d
OBJECTS sect ion s of th e dat abase. It is assu med th at a
class defin ition is perm an en tly fixed in t h e class hierar-
ch y. All fields are requ ired.
In this chapter
s CLASSES Section Group Co
3
![Page 38: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/38.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 38/188
32 | Chapter 3 CLASSES Section
CLASSES Section Group Codes
Each en try in th e CLASSES section con tains th e groups d escribed in th e
following table.
CLASSES section group codes
Group code Description
0 Record type (CLASS). Identif ies beg inning of a CLASS record
1 Class DXF record name; always unique
2 C++ class name. Used to bind with software that defines ob ject classbehavior; always unique
3 Applicat ion name. Posted in Alert box when a class def in it ion listed in this
section is not currently loaded
90 Proxy capabil it ies f lag. Bit-coded value that indicates the capabil it ies ofth is object as a proxy:0 = No operations allowed (0)1 = Erase allowed (0x1)2 = Transform allowed (0x2)4 = Color change allowed (0x4)8 = Layer change allowed (0x8)16 = Linetype change allowed (0x10)32 = Linetype scale change allowed (0x20)64 = Visibility change allowed (0x40)128 = Cloning allowed (0x80)256 = Lineweight change allowed (0x100)
512 = Plot Style Name change allowed (0x200)895 = All operations except cloning allowed (0x37F)1023 = All operations allowed (0x3FF)32768 = R13 format proxy (0x8000)
280 Was-a-proxy flag. Set to 1 if class was not loaded when this DXF file wascreated, and 0 otherwise
281 Is-an-entity flag. Set to 1 if class was derived from the AcDbEntity class andcan reside in the BLOCKS or ENTITIES sect ion. If 0, instances may appearonly in t he OBJECTS section
![Page 39: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/39.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 39/188
CLASSES Section Group Codes | 33
Default Class Values
Aut oCAD registers th e classes listed in th e following table. (Th is m ay n ot be
a com plete list of th e classes fou nd in a DXF file. It dep en ds on th e app lica-
tions cu rren tly in use by Aut oCAD® .)
Default class values
DXF record namecode 1
C++ class namecode 2
Code90
Code280
Code281
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
IMAGE AcDbRasterImage 127 0 1
IMAGEDEF AcDbRasterImageDef 0 0 0
IMAGEDEF_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
OLE2FRAME AcDbOle2Frame 0 0 1
PLOTSETTINGS AcDbPlotSettings 0 0 0
RASTERVARIABLES AcDbRasterVariables 0 0 0
RTEXT RText 0 0 1
![Page 40: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/40.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 40/188
34 | Chapter 3 CLASSES Section
SORTENTSTABLE AcDbSortentsTable 0 0 0
SPATIAL_INDEX AcDbSpat ialIndex 0 0 0
SPATIAL_FILTER AcDbSpat ialFilter 0 0 0
WIPEOUT AcDbWipeout 127 0 1
WIPEOUTVARIABLES AcDbWipeoutVariables 0 0 0
Default class values (continued )
DXF record namecode 1
C++ class namecode 2
Code90
Code280
Code281
![Page 41: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/41.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 41/188
3
TABLES Section
Th e group codes d escribed in th is ch apt er are fou n d
in DXF™ files and used by ap plication s. Th e TABLES
section con tain s several tables, each of which can
cont ain a variable n um ber of entries. Th ese codes are
also u sed b y Aut oLISP® an d O bjectARX™ application s
in en tity defin ition lists.
In this chapter
s Symbol Table Group Codes
s Common Symbol Table Gro
Codes
s APPIDs BLOCK_RECORD
s DIMSTYLE
s LAYER
s LTYPE
s STYLE
s UCS
s VIEW
s VPORT
4
![Page 42: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/42.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 42/188
36 | Chapter 4 TABLES Section
Symbol Table Group Codes
The order of t h e tables may chan ge, but th e LTYPE table always precedes the
LAYER table. Each table is intro duced with a 0 group code with th e label
TABLE. This is followed by a 2 grou p cod e iden tifying th e part icular table
(APPID, DIMSTYLE, LAYER, LTYPE, STYLE, UCS, VIEW, VPORT, orBLOCK_RECORD), a 5 group code (a h an dle), a 100 group cod e
(AcDbSymbolTable subclass marker), and a 70 group code that specifies the
m axim um n um ber of table en tries that m ay follow. Table n ames are outpu t
in up percase cha racters. Th e DIMSTYLE h an dle is a 105 group cod e n ot a 5
group code.
The tables in a drawing can con tain d eleted item s, but th ese are not written
to t h e DXF file. As a result, fewer table en tries m ay follow t h e table h eader
than are ind icated by th e 70 group code, so do n ot u se the coun t in th e 70
grou p code as an index to read in th e table. Th is group cod e is provided so
th at a p rogram th at reads DXF files can allocate an array large en ou gh t o h oldall th e table ent ries th at follow.
Followin g th is header for each table are th e table en tries. Each tab le en try
con sists of a 0 group ident ifyin g th e item type (sam e as table nam e, such as
LTYPE or LAYER), a 2 gro up giving th e n am e of th e t able en try, a 70 group
specifying flags relevant to th e tab le en try (defined for each following t able),
an d addition al grou ps that give th e value of th e table en try. Th e en d of each
table is in dicated by a 0 grou p with th e value ENDTAB.
Both sym bo l table records an d symb ol tables are datab ase objects. At a ver y
m in im um , with all prevailing usage with in AutoCAD®, th is im plies that a
h andle is present , positioned after the 2 group codes for both the symbo ltable record ob jects and th e sym bol tab le objects.
Th e DIMSTYLE tab le is th e on ly record t ype in th e system with a ha nd le code
of 105 because of its earlier usage of group code 5. As a rule, programmers
sh ould n ot be concerned abou t th is exception u nless it is in th e context of
th e DIMSTYLE table section . This is th e on ly con text in wh ich th is except ion
sh ould o ccur.
Common Symbol Table Group Codes
Th e followin g table sh ows group cod es th at ap ply to all sym bol tables. For
in form ation about abbreviations an d form atting used in t h is table, see “For-
m atting Con vention s in This Reference” on page 6.
![Page 43: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/43.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 43/188
Common Symbol Table Group Codes | 37
Common Group Codes for Symbol Table Entries
Th e followin g table sh ows grou p codes th at app ly to all sym bol tab le en tries.
Wh en you refer to the t able of group codes by en tity type, which lists th e
codes associated with specific en tities, keep in m in d th at th e cod es sh own
h ere can also be p resent . For information about abbreviation s and form atting
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
Group codes that apply to all symbol tables
Group code Description
–1 APP: ent ity name (ch anges each t ime a d raw ing is opened)
0 Object type (TABLE)
2 Table name
5 Handle
102 “{ACAD_XDICTIONARY” indicates the start of an extension dict ionarygroup. This group exists only if persistent reactors have been attachedto t his object (opt ional)
360 Hard owner ID/ handle to ow ner dict ionary (optional)
102 End of group, “ }” (optional)
330 Soft-pointer ID/ handle to owner object
100 Subclass marker (AcDbSymbolTable)
70 Maximum number of entries in table
Group codes that apply to all symbol table entries
Group code Description
–1 APP: ent ity name (ch anges each t ime a d raw ing is opened)
0 Entity type (table name)
5 Handle (all except DIMSTYLE)
105 Handle (DIMSTYLE table only)
![Page 44: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/44.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 44/188
38 | Chapter 4 TABLES Section
APPID
Th e followin g group cod es apply to APPID sym bol ta ble en tries. In add ition
to t h e grou p codes described h ere, see “Comm on Group Codes for Symb ol
Table Ent ries” on page 37 . For information about abbreviation s an d format -
ting u sed in t h is table, see “Form att in g Con vention s in Th is Referen ce” on
page 6.
102 Start of application-defined group “ {application_name ” . For example,“ {ACAD_REACTORS” indicates the start of the AutoCAD persistentreactors group (optional)
application- defined codes
Codes and values with in the 102 groups are appl icat ion defined(optional)
102 End of group, “ }” (opt ional)
102 “ {ACAD_REACTORS” indicates the start of the AutoCAD persistentreactors group. This group exists only if persistent reactors have beenattached t o this object (opt ional)
330 Soft pointer ID/handle to owner dictionary (opt ional)
102 End of group, “ }” (opt ional)
102 “ {ACAD_XDICTIONARY” indicates the start of an extension dictionarygroup. This group exists only if persistent reactors have been attachedto t his object (opt ional)
360 Hard owner ID/handle to owner dictionary (opt ional)
102 End of group, “ }” (opt ional)
330 Soft-pointer ID/ handle to owner object
100 Sub class m arker (AcDbSymbolTab leRecord)
Group codes that apply to all symbol table entries (continued )
Group code Description
![Page 45: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/45.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 45/188
BLOCK_RECORD | 39
BLOCK_RECORD
The followin g group codes ap ply to BLOCK_RECORD sym bol tab le ent ries.
In add ition to th e group codes described h ere, see “Com m on Group Codes
for Sym bol Table Entries” on page 37 . For informat ion about ab breviations
an d form atting used in th is table, see “Form attin g Con vent ion s in Th is Ref-
eren ce” on p age 6.
APPID group codes
Group codes Description
100 Sub class m arker (AcDbReg App TableRecord)
2 User-supplied (o r application -supplied ) application name (for extended
data). These table entries maint ain a set of names for all registeredapplications
70 Standard flag values (bit -coded values):1 = If set, xdata associated with this APPID is not written whenSAVEASR12 is perform ed16 = If set, table entry is externally dependent on an x ref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table ent ry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCADcommands. It can be ignored by most programsthat read DXF files and need not be set by programs that write DXFfiles)
BLOCK_RECORD group codes
Group codes Description
100 Subclass m arker (AcDbBlockTableRecord)
2 Block name
340 Hard-pointer ID/hand le to associated LAYOUT ob ject
310 DXF: Binary data for bit map preview (optional)
1001 Xdata applicat ion name “ ACAD” (opt ional)
![Page 46: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/46.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 46/188
40 | Chapter 4 TABLES Section
DIMSTYLE
The followin g group codes ap ply to DIMSTYLE sym bol t able en tries. The
DIMSTYLE system variables are described in app end ix B, “System Variables,”
in th e Comm and Reference. In addition to th e group codes described h ere, see
“Com m on G roup C odes for Sym bo l Table Ent ries” on page 37. For informa-
tion about abbreviations and formatting used in this table, see “Formatting
Con ven tion s in Th is Referen ce” on page 6.
1000 Xd ata string d ata “ Design Cent er Data” (op tional)
1002 Begin xdata “ {“ (optional)
1070 Autodesk Design Cent er version number
1070 Insert units:0 = Unit less; 1 = Inches; 2 = Feet; 3 = M iles; 4 = Millimeters;5 = Centimeters; 6 = Meters; 7 = Kilometers; 8 = Microinches;9 = Mils; 10 = Yards; 11 = Angstroms; 12 = Nanometers;13 = Microns; 14 = Decimeters; 15 = Decameters;16 = Hectometers; 17 = Gigameters; 18 = Astronomical unit s;19 = Light years; 20 = Parsecs
1002 End xdata “ }“
DIMSTYLE group codes
Group codes Description
100 Sub class m arker (AcDbDimStyleTableRecord )
2 Dimension style name
70 Standard flag values (bit -coded values):16 = If set, table entry is externally dependent on an xref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table entry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD® commands. It can be ignored by most programsthat read DXF™ files and need not be set by programs that write DXFfiles)
BLOCK_RECORD group codes (continued )
Group codes Description
![Page 47: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/47.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 47/188
DIMSTYLE | 41
3 DIMPOST
4 DIMAPOST
5 DIMBLK (obsolete, now object ID)
6 DIMBLK1 (obsolete, now object ID)
7 DIMBLK2 (obsolete, now object ID)
40 DIMSCALE
41 DIMASZ
42 DIMEXO
43 DIMDLI
44 DIMEXE
45 DIMRND
46 DIMDLE
47 DIMTP
48 DIMTM
140 DIMTXT
141 DIMCEN
142 DIMTSZ
143 DIMALTF
144 DIMLFAC
145 DIMTVP
146 DIMTFAC
147 DIMGAP
148 DIMALTRND
DIMSTYLE group codes (continued )
Group codes Description
![Page 48: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/48.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 48/188
42 | Chapter 4 TABLES Section
71 DIMTOL
72 DIMLIM
73 DIMTIH
74 DIMTOH
75 DIMSE1
76 DIMSE2
77 DIMTAD
78 DIMZIN
79 DIMAZIN
170 DIMALT
171 DIMALTD
172 DIMTOFL
173 DIMSAH
174 DIMTIX
175 DIMSOXD
176 DIMCLRD
177 DIMCLRE
178 DIMCLRT
179 DIMADEC
270 DIM UNIT (o bso let e, n ow use DIM LUN IT AN D DIM FRAC)
271 DIMDEC
272 DIMTDEC
273 DIMALTU
DIMSTYLE group codes (continued )
Group codes Description
![Page 49: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/49.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 49/188
DIMSTYLE | 43
274 DIMALTTD
275 DIMAUNIT
276 DIMFRAC
277 DIMLUNIT
278 DIMDSEP
279 DIMTMOVE
280 DIMJUST
281 DIMSD1
282 DIMSD2
283 DIMTOLJ
284 DIMTZIN
285 DIMALTZ
286 DIMALTTZ
287 DIMFIT (obsolete, now use DIMATFIT and DIMTMOVE)
288 DIMUPT
289 DIMATFIT
340 DIM TXSTY (handle of referenced STYLE)
341 DIM LDRBLK (handle of referenced BLOCK)
342 DIMBLK (handle of referenced BLOCK)
343 DIM BLK1 (handle of referenced BLOCK)
344 DIM BLK2 (handle of referenced BLOCK)
371 DIMLWD (lineweight enum value)
372 DIMLWE (lineweight enum value)
DIMSTYLE group codes (continued )
Group codes Description
![Page 50: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/50.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 50/188
44 | Chapter 4 TABLES Section
LAYER
The followin g group cod es apply to LAYER sym bol tab le entries. In ad dition
to t h e grou p codes described h ere, see “Comm on Group Codes for Symb ol
Table Ent ries” on page 37 . For information about abbreviation s an d format -
ting u sed in t h is table, see “Form att in g Con vention s in Th is Referen ce” onpage 6.
Xref-dependent layers are output during SAVEAS. For th ese layers, th e associ-
ated linetyp e n am e in th e DXF file is always CONTINUOUS.
LAYER group codes
Group codes Description
100 Sub class m arker (AcDbLayerTab leRecord )
2 Layer name
70 Standard flags (bit-coded values):
1 = Layer is frozen; otherwise layer is thawed2 = Layer is frozen by default in new viewpor ts4 = Layer is locked16 = If set, table entry is externally dependent on an xref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table entry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD commands. It can be ignored by most programsthat read DXF files and need not be set by programs that write DXFfiles)
62 Color number (if negat ive, layer is off)
6 Linetype name
290 Plotting flag. If set to 0, do not plot this layer
370 Lineweight enum value
390 Hard pointer ID/ handle of Plot St yleN ame object
![Page 51: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/51.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 51/188
LTYPE | 45
LTYPE
The following group codes apply to LTYPE symbol table entries. In addition
to t h e grou p codes described h ere, see “Comm on Group Codes for Symb ol
Table Ent ries” on page 37 . For information about abbreviations and form at-
ting u sed in t h is table, see “Form att in g Con vention s in Th is Referen ce” onpage 6.
LTYPE group codes
Group codes Description
100 Sub class m arker (AcDbLinet ypeTab leRecord )
2 Linetype name
70 Standard flag values (b it-coded values):
16 = If set, table entry is externally dependent on an x ref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table ent ry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD commands. It can be ignored by most programsthat read DXF files and need not be set by programs that write DXFfiles)
3 Descript ive text for linetype
72 Alignmen t code; value is alw ays 65, t he ASCII code for A
73 The number of linetype elements
40 Total pattern length
49 Dash, dot or space lengt h (one ent ry per element )
74 Complex linetype element t ype (one per element ). Default is 0 (noembedded shape/text).The following codes are bit values:1 = If set, code 50 specifies an absolute rotation; if not set, code 50specifies a relative rotation2 = Embedded element is a text str ing4 = Embedded element is a shape
![Page 52: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/52.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 52/188
46 | Chapter 4 TABLES Section
Th e group codes 74, 75, 340, 46, 50, 44, 45, and 9 are n ot return ed by th e
t b l s e a r c h or t b l n e x t fun ctions. You m ust use t b l o b j n a me to retrieve these
values within an application .
STYLE
The following grou p cod es app ly to STYLE sym bol tab le en tries. In addit ionto t h e grou p codes described h ere, see “Comm on Group Codes for Symb ol
Table Ent ries” on page 37 . For information about abbreviation s an d format -
ting u sed in t h is table, see “Form att in g Con vention s in Th is Referen ce” on
page 6.
75 Shape number (one per element) if code 74 specifies an embeddedshape.If code 74 specifies an embedded t ext string, this value is set to 0
If code 74 is set to 0, code 75 is omitted
340 Po in ter to STYLE object (one per element if code 74 > 0)
46 S = Scale value (op tion al); mu lt iple ent ries can exist
50 R = (relat ive) or A = (abso lu te) rotation value in radians of embeddedshape or text; one per element if code 74 specifies an embedded shapeor text string
44 X = X offset value (optional); mult iple entries can exist
45 Y = Y offset value (opt ional); mult iple entries can exist
9 Text string (one per element if code 74 = 2)
STYLE group codes
Group codes Description
100 Subclass marker (AcDbTex tStyleTab leRecord )
2 Style name
LTYPE group codes (continued )
Group codes Description
![Page 53: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/53.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 53/188
UCS | 47
A STYLE table item is also u sed to record shap e file LOAD comm and requests.In t his case th e first b it (1) is set in th e 70 group flags and on ly the 3 grou p
(sh ape file nam e) is m ean ingful (all th e oth er group s are outpu t, h owever).
UCS
Th e following group codes app ly to UCS sym bol table en tries. In add ition t o
th e group co des described here, see “Com m on Group Co des for Sym bol Table
En tries” on page 37 . For information about abbreviation s an d formattin g
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
70 Standard flag values (bit -coded values):1 = If set, this entry describes a shape4 = Vertical text
16 = If set, table entry is externally dependent on an x ref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table ent ry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD commands. It can b e ignored by m ost programsthat read DXF files and need not be set by programs that write DXFfiles)
40 Fixed text height; 0 if not fixed
41 Width factor
50 Oblique angle
71 Text generation flags:2 = Text is backward (mirrored in X )4 = Text is upside down (mirrored in Y )
42 Last height used
3 Primary font file name
4 Bigfont file name; blank if none
STYLE group codes (continued )
Group codes Description
![Page 54: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/54.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 54/188
48 | Chapter 4 TABLES Section
UCS group codes
Group codes Description
100 Subclass m arker (AcDbUCSTableRecord)
2 UCS name
70 Standard flag values (bit -coded values):16 = If set, table entry is externally dependent on an xref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table entry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD commands. It can be ignored by most programsthat read DXF files and need not be set by programs that write DXFfiles)
10 Origin (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of origin ( in WCS)
11 X -axis direction (in WCS)DXF: X value; APP: 3D vector
21, 31 DXF: Y and Z values of X -axis direction (in WCS)
12 Y -axis direction (in WCS)DXF: X value; APP: 3D vector
22, 32 DXF: Y and Z values of Y -axis direction (in WCS)
79 Always 0
146 Elevat ion
346 ID/handle of base UCS if this is an orthographic. This code is notpresent if the 79 code is 0. If t his code is not present and 79 code isnon-zero, then base UCS is assumed to be WORLD
71 Orthographic t ype (opt ional; always appears in pairs with the 13 , 23,33 codes):1 = Top; 2 = Bottom;3 = Front; 4 = Back;5 = Left; 6 = Right
13 Origin for t his ort hographic t ype relative t o this UCS.DXF: X value of origin point; APP: 3D point
23, 33 DXF: Y and Z values of origin point
![Page 55: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/55.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 55/188
VIEW | 49
Each 71/ 13,23,33 pair d efines th e UCS origin for a particular orth ograph ic
type relative to th is UCS. For in stance if th e followin g pair is present , th en
invo king t he UC S/LEFT comm an d w h en UC SBASE is set to t h is UCS will
cause the new UCS origin t o becom e (1,2,3).
7 1 : 51 3 : 1 . 0
2 3 : 2 . 03 3 : 3 . 0
If th is pair were n ot present , then in voking th e UCS/LEFT com m an d wou ld
cause the new UCS origin to be set to this UCS’s origin point.
VIEW
Th e followin g grou p cod es apply to VIEW sym bol table ent ries. In add ition
to t h e grou p codes described h ere, see “Comm on Group Codes for Symb ol
Table Ent ries” on page 37 . For information about abbreviations and form at-ting u sed in t h is table, see “Form att in g Con vention s in Th is Referen ce” on
page 6.
VIEW group codes
Group codes Description
100 Subclass m arker (AcDbView TableRecord)
2 Name of view
70 Standard flag values (b it-coded values):1 = If set, this is a paper space view16 = If set, table entry is externally dependent on an x ref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table ent ry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD commands. It can be ignored by most programsthat read DXF files and need not be set by programs that write DXFfiles)
40 View height (in DCS)
10 View center point (in DCS)DXF: X value; APP: 2D point
20 DXF: Y value of view center point (in DCS)
![Page 56: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/56.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 56/188
50 | Chapter 4 TABLES Section
Th e followin g cod es on ly ap pear if cod e 72 is set to 1 . Th ey defin e th e UCS
th at is associated to th is view. Th is UCS will becom e th e curren t UCS wh en -
ever th is view is restored (if cod e 72 is 0, th e UCS is un ch an ged).
41 View width (in DCS)
11 View direction from target (in WCS)
DXF: X value; APP: 3D vector
21, 31 DXF: Y and Z values of view direction from target (in WCS)
12 Target point (in WCS)DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of target point (in WCS)
42 Lens length
43 Front clipping plane (offset from target point)
44 Back clipping plane (offset from target point)
50 Twist angle
71 View mode (see VIEWM ODE system variable)
281 Render mode:0 = 2D Optimized (classic 2D)1 = Wireframe2 = Hidden line3 = Flat shaded4 = Gouraud shaded5 = Flat shaded with wireframe
6 = Gouraud shaded with wireframe
All rendering modes other than 2D Optimized engage the new 3Dgraphics pipeline. These values directly correspond to the SHADEMODEcommand and the AcDbAbstractViewTableRecord::RenderMode enum
72 1 if th ere is a UCS asso ciat ed to t his view, 0 oth erw ise
VIEW group codes (continued )
Group codes Description
![Page 57: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/57.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 57/188
VPORT | 51
VPORT
The following grou p cod es apply to VPORT symb ol tab le en tries. Th e VPORT
table is un ique: it m ay con tain several ent ries with th e same n ame (ind icat-
in g a m ultiple-viewport con figuration ). Th e ent ries correspond in g to t he
active viewp ort con figuration all h ave th e n am e *ACTIVE. The first such
entry describes the current viewport. In add ition to th e group codes
described h ere, see “Com m on Group Codes for Sym bol Table Ent ries” on
VIEW with UCS group codes
Group codes Description
110 UCS origin (appears only if code 72 is set to 1)DXF: X value; APP: 3D point
120, 130 DXF: Y and Z values of UCS origin
111 UCS X -axis (appears only if code 72 is set to 1)DXF: X value; APP: 3D vector
121, 131 DXF: Y and Z values of UCS X -axis
112 UCS Y -axis (appears only if code 72 is set t o 1)DXF: X value; APP: 3D vector
122, 132 DXF: Y and Z values of UCS Y -axis
79 Ort hog rap hic t ype of UCS (app ears o nly if code 7 2 is set to 1):
0 = UCS is not orthographic;1 = Top; 2 = Bottom;3 = Front; 4 = Back;5 = Left; 6 = Right
146 UCS Elevat ion (appears only if code 72 is set to 1)
345 ID/handle of AcDbUCSTableRecord i f UCS is a named UCS. I f notpresent, then UCS is unnamed (appears only if code 72 is set t o 1)
346 ID/handle of AcDbUCSTableRecord of base UCS i f UCS is orthographic(79 code is non-zero). If not present and 79 code is non-zero, then baseUCS is taken to be WORLD (appears only if code 72 is set to 1)
![Page 58: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/58.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 58/188
52 | Chapter 4 TABLES Section
page 37. For information about abbreviations and form atting used in th is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
VPORT group codes
Group codes Description
100 Sub class m arker (AcDbView po rt Tab leRecord )
2 Viewport name
70 Standard flag values (bit -coded values):16 = If set, table entry is externally dependent on an xref32 = If this bit and bit 16 are both set, the externally dependent xrefhas been successfully resolved64 = If set, the table entry was referenced by at least one ent ity in thedrawing the last time the drawing was edited. (This flag is for thebenefit of AutoCAD commands. It can be ignored by most programsthat read DXF files and need not be set by programs that write DXFfiles)
10 Lower-left corner of viewportDXF: X value; APP: 2D point
20 DXF: Y value of lower-left corner of viewport
11 Upper-right corner of viewportDXF: X value; APP: 2D point
21 DXF: Y value of upper-right corner of viewport
12 View center point (in DCS)
DXF: X value; APP: 2D point
22 DXF: Y value of view center point (in DCS)
13 Snap base pointDXF: X value; APP: 2D point
23 DXF: Y value of snap base point
14 Snap spacing X and Y DXF: X value; APP: 2D point
24 DXF: Y value of snap spacing X and Y
15 Grid spacing X and Y DXF: X value; APP: 2D point
25 DXF: Y value of grid spacing X and Y
![Page 59: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/59.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 59/188
VPORT | 53
16 View direction from target point (in WCS)DXF: X value; APP: 3D point
26, 36 DXF: Y and Z values of view direction from target point(in WCS)
17 View target point (in WCS)DXF: X value; APP: 3D point
27, 37 DXF: Y and Z values of view t arget point (in WCS)
40 View height
41 Viewport aspect ratio
42 Lens length
43 Front clipping plane (offset from target point)
44 Back clipping plane (offset from target point)
50 Snap rotation angle
51 View twist angle
68 APP: Status field (never saved in DXF)
69 APP: ID (never saved in DXF)
71 View mode (see VIEWM ODE system variable)
72 Circle zoom percent
73 Fast zoom sett ing
74 UCSICON setting
75 Snap on/off
76 Grid on/off
77 Snap style
78 Snap isopair
VPORT group codes (continued )
Group codes Description
![Page 60: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/60.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 60/188
54 | Chapter 4 TABLES Section
281 Render mode:0 = 2D Optimized (classic 2D)1 = Wireframe
2 = Hidden line3 = Flat shaded4 = Gouraud shaded5 = Flat shaded with wireframe6 = Gouraud shaded with wireframe
All rendering modes other than 2D Optimized engage the new 3Dgraphics pipeline. These values directly correspond to the SHADEMODEcommand and the AcDbAbstractViewTableRecord::RenderMode enum
65 Value of UCSVP for this viewport . If set to 1 , then viewport stores itsown UCS which w ill become the current UCS whenever the viewport isactivated. If set to 0, UCS will not change when this viewport isactivated
110 UCS originDXF: X value; APP: 3D point
120, 130 DXF: Y and Z values of UCS origin
111 UCS X -axisDXF: X value; APP: 3D vector
121, 131 DXF: Y and Z values of UCS X -axis
112 UCS Y -axisDXF: X value; APP: 3D vector
122, 132 DXF: Y and Z values of UCS Y -axis
79 Orthographic type of UCS0 = UCS is not orthographic;1 = Top; 2 = Bottom;3 = Front; 4 = Back;5 = Left; 6 = Right
146 Elevat ion
345 ID/handle of AcDbUCSTableRecord i f UCS is a named UCS. I f notpresent, then UCS is unnamed
346 ID/handle of AcDbUCSTableRecord of base UCS i f UCS is orthographic(79 code is non-zero). If not p resent and 79 code is non-zero, then baseUCS is taken t o be WORLD
VPORT group codes (continued )
Group codes Description
![Page 61: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/61.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 61/188
5
BLOCKS Section
Th e group codes d escribed in th is ch apt er are fou n d in
DXF™ files an d used by ap plication s. Th e BLOCKS
section conta ins an entry for each block referen ce in th e
drawing.
In this chapter
s BLOCKS Section Group Co
s BLOCK
s ENDBLK
5
![Page 62: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/62.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 62/188
56 | Chapter 5 BLOCKS Section
BLOCKS Section Group Codes
The BLOCKS section of th e DXF file con tain s all th e block defin ition s,
in cludin g ano n ymo us blocks gen erated by the HATCH com man d and by
associative dim en sion in g. Each b lock defin ition con tains th e entities th at
m ake up th at block as it is used in th e drawin g. Th e form at of th e en tities inth is section is iden tical to th ose in th e ENTITIES section. All en tities in th e
BLOCKS section app ear between block an d end blk en tities. Block an d en dblk
entities appear only in the BLOCKS section. Block definitions are never
n ested (th at is, no block or en dblk en tity ever app ears within an oth er block-
endblk pair), altho ugh a b lock definition can con tain an insert entity.
External references are written in the DXF file as block definitions, except
th at t hey also include a string (group co de 1) th at specifies th e pa th an d file
n am e of the external reference.
Th e block table h an dle, alon g with an y xdata an d persistent reactors, appears
in each block defin ition im m ediately followin g the BLOCK record, which
con tains all of th e specific in format ion th at a block table record stores.
BLOCK
Th e followin g group codes apply to block ent ities. For inform ation abou t
abbreviation s and form atting used in th is table, see “Form atting Conven-
tions in Th is Reference” on page 6.
Block group codes
Group codes Description
0 Ent ity type (BLOCK)
5 Handle
102 Start of applicat ion-defined group “ {application_name ” . For example,“ {ACAD_REACTORS” indicates the start of the AutoCAD persistentreactors group (optional)
application- defined codes
Codes and values with in the 102 groups are appl icat ion defined(optional)
102 End of group, “ }” (opt ional)
330 Soft-pointer ID/ handle to owner object
![Page 63: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/63.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 63/188
BLOCK | 57
Th e UCS in effect wh en a block definition is created becom es th e WCS for all
ent ities in th e block definition . Th e new o rigin for these entities is sh ifted t o
m atch th e base point d efin ed for th e block definit ion . All ent ity data is tran s-
lated to fit th is new W CS.
Model Space and Paper Space Block Definitions
Three emp ty d efinition s always appear in th e BLOCKS section . Th ey are
titled *Mod el_Space, *Paper_Space an d *Paper_Space0. These d efin ition s
m an ifest th e represen tation s of m odel space an d pap er space as block
defin itions int ern ally. Th e in terna l n am e of th e first p aper space layout is
100 Subclass marker (AcDbEntity)
8 Layer name
100 Subclass marker (AcDbBlockBegin)
2 Block name
70 Block-typ e flags (bit coded values, may be comb in ed):0 = Indicates none of the following flags apply1 = This is an anonymous block generated by hatching, associativedimensioning, other internal operations, or an application2 = This block has non-constant att ribute definitions (this bi t is not set ifthe block has any attribute definitions that are constant, or has noattribute definitions at all)4 = This block is an external reference (xref)
8 = This block is an xref overlay16 = This block is externally dependent32 = This is a resolved external reference, or dependent of an externalreference (ignored on input)64 = This definition is a referenced external reference (ignoredon input)
10 Base pointDXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of base point
3 Block name
1 Xref path name
4 Block descript ion (opt ional)
Block group codes (continued )
Group codes Description
![Page 64: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/64.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 64/188
58 | Chapter 5 BLOCKS Section
*Paper_Space, th e secon d is *Paper_Space0, th e t h ird *Paper_Space1, a nd
so o n.
Model Space and Paper Space Entity Segregation
Th e in terleavin g between m odel space an d pap er space n o lon ger occurs.
Instead, all paper space en tities are outp ut , followed b y m od el space en tities.
Th e flag distin guishing th em is th e grou p code 67.
ENDBLK
Th e followin g group codes apply to en dblk objects. For inform ation about
abbreviation s and form atting used in th is table, see “Form atting Conven-
tions in Th is Reference” on page 6.
Endblk group codes
Group codes Description
0 Ent ity type (ENDBLK)
5 Handle
102 Start of application-defined group “ {application_name ” . For example,“ {ACAD_REACTORS” indicates the start of the AutoCAD persistentreactors group (optional)
application- defined codes
Codes and values with in the 102 groups are appl icat ion defined(optional)
102 End of group, “ }” (opt ional)
330 Soft-pointer ID/ handle to owner object
100 Subclass marker (AcDbEntity)
8 Layer name
100 Subclass marker (AcDbBlockEnd)
![Page 65: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/65.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 65/188
5
ENTITIES Section
Th is chapt er presents th e group codes th at apply to
graph ical objects. Th ese codes are fou n d in th e
ENTITIES sect ion of a DXF™ file an d are u sed by
Au to LISP® an d O bjectARX™ application s in en tity
defin ition lists.
In this chapter
s Common Group Codes for Entit
s 3DFACE
s 3DSOLID
s ACAD_PROXY_ENTITY
s ARC
s ATTDEFs ATTRIB
s BODY
s CIRCLE
s DIMENSION
s ELLIPSE
s HATCH
s IMAGE
s INSERT
s LEADER
s LINE
s LWPOLYLINE
s MLINE
s MTEXTs OLEFRAME
s OLE2FRAME
s POINT
s POLYLINE
s RAY
s REGION
s SEQEND
s SHAPE
s SOLID
s SPLINE
s TEXT
sTOLERANCE
s TRACE
s VERTEX
s VIEWPORT
s XLINE
6
![Page 66: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/66.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 66/188
60 | Chapter 6 ENTITIES Section
Common Group Codes for Entities
Th e followin g table sh ows group cod es th at app ly to virtu ally all graph ical
objects. Som e of th e group cod es shown h ere are in clud ed with an en tity def-
in ition only if the en tity has non default values for the p roperty. Wh en you
refer to th e group codes by ent ity t ype, the lists of codes associated wit hspecific entities, keep in m ind t h at th e codes sh own h ere are also p resent.
NOT E 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 cont rols an enti ty should be driven by
a case (switch) or a table so that it can process each group correctly even if the
order is unexpected.
Wh en a group is omitted, its default value up on in put (when using OPEN) isin dicated in the t h ird column . If the value of a group code is equal to th e
default, it is omitted upo n outpu t (wh en u sing SAVEAS). For information
about abbreviations and formatting used in this table, see “Forma ttin g Con -
vention s in Th is Referen ce” on p age 6.
Group codes that apply to all graphical objects
Group code DescriptionIf omitted,defaults to…
–1 APP: ent ity name (changes each time adrawing is opened)
not omitted
0 Ent ity type not omitted
5 Handle not omitted
102 Start of applicat ion defined group“ {application_name ” (optional)
no default
application- defined codes
Codes and values with in the 102 groups areapplication-defined (opt ional)
no default
102 End of group, “ }” (opt ional) no default
102 “ {ACAD_REACTORS” indicates the start of theAutoCAD persistent reactors group. This groupexists only if persistent reactors have beenattached t o this object (optional)
no default
![Page 67: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/67.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 67/188
Common Group Codes for Entities | 61
330 Soft pointer ID/handle to owner dictionary(optional)
no default
102 End of group, “ }” (optional) no default
102 “ {ACAD_XDICTIONARY” ind icates the start ofan extension dictionary group. This groupexists only if persistent reactors have beenattached t o this object (opt ional)
no default
360 Hard owner ID/handle to owner dictionary(optional)
no default
102 End of group, “ }” (optional) no default
330 Soft-pointer ID/ handle to ownerBLOCK_RECORD object
not omitted
100 Subclass marker (AcDbEntity) not omitted
67 Absent or zero indicates entit y is in modelspace. 1 indicates entity is in paper space(optional)
0
410 APP: layout tab name not omitted
8 Layer name not omitted
6 Linetype name (present if not BYLAYER). The
special name BYBLOCK indicates a floatinglinetype (optional)
BYLAYER
62 Color num ber (present if not BYLAYER); zeroindicates the BYBLOCK (floating) color; 256indicates BYLAYER; a negative value indicatesthat the layer is turned off (optional)
BYLAYER
370 Lineweight enum value. Stored and movedaround as a 16-bit integer.
not omitted
48 Linetype scale (opt ional) 1.0
60 Object visibilit y (option al): 0 = Visible, 1 =Invisible
0
92 The number of bytes in the image (andsubsequent binary chunk records) (opt ional)
no default
Group codes that apply to all graphical objects (continued )
Group code DescriptionIf omitted,defaults to…
![Page 68: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/68.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 68/188
62 | Chapter 6 ENTITIES Section
3DFACE
Th e following grou p codes apply to 3dface entities. In add ition to t he group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
310 Preview image data (multiple lines; 256charaters max. per line) (optional)
no default
3dface group codes
Group codes Description
100 Subclass marker (AcDbFace)
10 First corner (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of first corner (in WCS)
11 Second corner (in WCS)DXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of second corner (in WCS)
12 Third corner (in WCS)DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of third corner (in WCS)
13 Fourth corner (in WCS). If only three corners are entered, th is is thesame as the third cornerDXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of fourth corner (in WCS)
70 Invisible edge flags (opt ional; default = 0):1 = First edge is invisible2 = Second edge is invisible4 = Third edge is invisib le8 = Fourth edge is invisible
Group codes that apply to all graphical objects (continued )
Group code DescriptionIf omitted,defaults to…
![Page 69: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/69.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 69/188
3DSOLID | 63
3DSOLID
Th e followin g grou p codes app ly to 3dsolid en tities. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
ACAD_PROXY_ENTITY
Th e followin g grou p codes apply to proxy en tities. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
3dsolid group codes
Group codes Description
100 Subclass m arker (AcDbM odelerGeometry)
70 Modeler format version number (currently = 1)
1 Propriet ary dat a (mult iple lines < 255 characters each)
3 Additional lines of proprietary data (if previous group 1 string is greaterthan 255 characters) (optional)
Acad_proxy_ent ity group codes
Group codes Description
100 DXF™: AcDbProxyEntit y
90 DXF: Proxy entity class ID (always 498)
91 DXF: Application entity’s class ID. Class IDs are based on the order ofthe class in the CLASSES section. The first class is given the ID of 500,the next is 501, and so on
92 DXF: Size of graphics data in bytes
310 DXF: Binary graphics data (mult iple entries can appear) (optional)
![Page 70: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/70.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 70/188
64 | Chapter 6 ENTITIES Section
ARC
Th e followin g grou p codes apply to arc en tities. In add ition to th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
93 DXF: Size of entity data in bits
310 DXF: Binary entit y data (multiple entries can appear) (opt ional)
330 or 340or 350 or 360
DXF: An object ID (multiple entries can appear) (optional)
94 DXF: 0 (indicates end of object ID section)
95 DXF: Object drawing format w hen it b eco mes a p ro xy (a 32-b itunsigned integer):Low word is AcDbDwgVersionHigh word is MaintenanceReleaseVersion
70 DXF: Original custom object data format:0 = DWG format
1 = DXF format
Arc group codes
Group codes Description
100 Subclass marker (AcDbCircle)
39 Thickness (optional; default = 0)
10 Center point (in OCS)DXF™: X value; APP: 3D point
20, 30 DXF: Y and Z values of center point (in OCS)
40 Radius
100 Subclass marker (AcDbArc)
50 Start angle
Acad_proxy_ent ity group codes (continued )
Group codes Description
![Page 71: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/71.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 71/188
ATTDEF | 65
ATTDEF
Th e followin g grou p codes ap ply to at tdef (attribute defin ition ) en tities. In
addition to th e grou p codes described h ere, see “Comm on Group Codes for
En tities” on page 60 . For in formation about a bbreviation s and format ting
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
51 End angle
210 Extrusion direction (opt ional; default = 0, 0, 1)
DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
Attdef group codes
Group codes Description
100 Subclass marker (AcDbText)
39 Thickness (optional; default = 0)
10 First alignment point (in OCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of text start point (in OCS)
40 Text height
1 Default value (string)
100 Subclass m arker (AcDbAt tribut eDefinit ion)
50 Text rotat ion (opt ional; default = 0)
41 Relative X scale factor (widt h) (op tional; default = 1). This value is alsoadjusted when fit-type text is used
51 Oblique angle (option al; default = 0)
7 Text style name (optional, default = STANDARD)
Arc group codes (continued )
Group codes Description
![Page 72: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/72.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 72/188
66 | Chapter 6 ENTITIES Section
If group 72 and/ or 74 values are non zero th en the first alignm ent p oint
values are ignored an d Aut oCAD calculates n ew values based on th e secon d
alignm en t po in t an d th e length an d h eight of th e text strin g itself (after
app lying th e text style). If the 72 an d 74 values are zero or m issing, th en th e
secon d alignm ent point is meanin gless.
ATTRIB
Th e followin g grou p codes app ly to attrib (attribute) en tities. In add ition to
th e group co des described h ere, see “Com m on Group Codes for Entities” on
71 Text generation flags (opt ional, default = 0); see TEXT group codes
72 Horizontal tex t just ification type (opt ional, default = 0); see TEXT group
codes
11 Second alignment point (in OCS) (optional)DXF: X value; APP: 3D pointMeaningful only if 72 or 74 group values are nonzero
21, 31 DXF: Y and Z values of second alignment point (in OCS) (optional)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction
100 Subclass m arker (AcDbAt tribut eDefinit ion)
3 Prompt string
2 Tag string
70 Attribute flags:1 = Attribut e is invisible (does not appear)2 = This is a constant attrib ute4 = Verification is required on input of this attribute8 = Attr ibute is preset (no prompt during insertion)
73 Field lengt h (optional; default = 0) (not currently used)
74 Ver tical text justificat ion type (optional, default = 0); see group code 73in TEXT
Attdef group codes (continued )
Group codes Description
![Page 73: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/73.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 73/188
ATTRIB | 67
page 60. For information about abbreviations an d form atting used in th is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
Attr ib group codes
Group codes Description
100 Subclass marker (AcDbText)
39 Thickness (optional; default = 0)
10 Text start point (in OCS)DXF™: X value; APP: 3D point
20, 30 DXF: Y and Z values of text start point (in OCS)
40 Text height
1 Default value (string)
100 Subclass marker (AcDbAttribute)
2 Attribute tag (string)
70 Attribute flags:1 = Attribute is invisible (does not appear)2 = This is a constant attrib ute4 = Verification is required on input of this attribute8 = Attribut e is preset (no prompt during insertion)
73 Field lengt h (optional; default = 0) (not currently used)
50 Text rotat ion (opt ional; default = 0)
41 Relat ive X scale factor (width) (optional; defaul t = 1). This value is alsoadjusted when fit-type text is used
51 Oblique angle (optional; default = 0)
7 Text style name (optional, default = STANDARD)
71 Text generation flags (opt ional, default = 0). See TEXT group codes
72 Horizontal text justificat ion t ype (optional, default = 0). See TEXT groupcodes
74 Ver tical tex t just ification type (opt ional, default = 0) . See group code 73in TEXT
11 Alignment point (in OCS) (opt ional)DXF: X value; APP: 3D pointPresent only if 72 or 74 group is present and nonzero
![Page 74: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/74.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 74/188
68 | Chapter 6 ENTITIES Section
If group 72 an d/or 74 values are non zero then th e text in sertion point values
are ign ored, and Aut oCAD calculates n ew values based on th e text alignm ent
poin t an d th e len gth of the t ext strin g itself (after applying th e text style). If
the 72 an d 74 values are zero or m issing, then the text alignm ent po in t is
ignored an d recalculated based on t h e text insertion p oint an d th e length o f
th e text string itself (after ap plying th e text style).
BODY
Th e followin g grou p codes apply to bod y entities. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
21, 31 DXF: Y and Z values of alignment point (in OCS) (optional)
210 Extrusion direct ion. Present only if the enti ty’s extrusion direct ion is not
parallel to the WCS Z axis (opt ional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
Body group codes
Group codes Description
100 Subclass m arker (AcDbM odelerGeometry)
70 M odeler format version number (currently = 1)
1 Propriet ary dat a (mult iple lines < 255 characters each)
3 Add it ional lines of p rop rietary data (if p revious g roup 1 string is g reaterthan 255 characters) (optional)
Attrib group codes (continued )
Group codes Description
![Page 75: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/75.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 75/188
CIRCLE | 69
CIRCLE
Th e followin g grou p codes app ly to circle entities. In ad dition t o th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
DIMENSION
Dim ension en tity definition s con sist o f group codes th at are com m on to all
dim en sion t ypes, followed b y codes specific to th e type.
Common Dimension Group Codes
The followin g grou p codes apply to all dim ension en tity types. In add ition
to t h e grou p codes described h ere, see “Com m on Group Cod es for En tities”
Circle group codes
Group codes Description
100 Subclass marker (AcDbCircle)
39 Thickness (optional; default = 0)
10 Center point (in OCS)DXF™: X value; APP: 3D point
20, 30 DXF: Y and Z values of center point (in OCS)
40 Radius
210 Extrusion direction (opt ional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
![Page 76: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/76.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 76/188
70 | Chapter 6 ENTITIES Section
on page 60. For information about abbreviations an d formatting used in t h is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
Common dimension group codes
Group codes Description
100 Subclass marker (AcDbDimension)
2 Nam e of the block that contains t he ent ities that make up thedimension picture
10 Definit ion point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of definition point (in WCS)
11 Middle point of dimension text (in OCS)DXF: X value; APP: 3D point
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. Values32, 64, and 128 are bit values, which are added to the integer values(value 32 is always set in R13 and later releases).0 = Rotated, horizontal, or vertical; 1 = Aligned;2 = Angular; 3 = Diameter; 4 = Radius;5 = Angular 3 point; 6 = Ordinate;32 = Ind icates that the block reference (group code 2) is referenced bythis dimension only.64 = Ordinate type. This is a bit value (bit 7) used only with integervalue 6. If set, ordinate is X-type; if not set, ordinate is Y-type.128 = This is a bit value (bit 8) added to the other group 70 values ifthe dimension text has been posit ioned at a user-defined locationrather than at the default location
71 Attachment point :1 = Top left; 2 = Top center; 3 = Top right;4 = Midd le left; 5 = Middle center; 6 = Middle right ;7 = Bott om left; 8 = Bottom center; 9 = Bottom r ight
72 Dimension text line spacing style (opt ional):1 (or missing) = At least (taller characters will override)2 = Exact (taller characters will not override)
41 Dim ension t ext line spacing fact or (opt ional):Percentage of default (3-on-5) line spacing to be applied. Valid valuesrange from 0.25 to 4.00
42 Act ual m easurement (optional; read-only value)
![Page 77: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/77.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 77/188
DIMENSION | 71
Xdata belonging to the application ID " A CA D" follows a d im en sion en tity if
an y dim en sion overrides th at h ave been app lied to th is en tity. See “Dimen-
sion Style Overrides” on page 76 .
For all dimen sion typ es, th e followin g group cod es represen t 3D WCS poin ts:
s (10, 20, 30)
s (13, 23, 33)
s (14, 24, 34)
s (15, 25, 35)
For all dimen sion t ypes, th e followin g group cod es represen t 3D OCS po ints:
s (11, 21, 31)
s (12, 22, 32)
s (16, 26, 36)
Aligned Dimension Group Codes
Th e followin g grou p codes apply to aligned dim en sions. In ad dition t o th e
grou p codes described here, th ose listed in “Comm on Grou p Codes for En ti-
1 Dimension text explicit ly en tered by the user. Opt ional; default is themeasurement. If null or “ <>” , the dimension measurement is drawn asthe text, if “ “ (one blank space), the text is supp ressed. Anything else is
drawn as the text
53 The opt ional g roup code 53 is the rotation ang le of the dimension tex taway from its default orientation (the direction of the dimension line)(optional)
51 All dimension types have an opt ional 51 group code, wh ich ind icatesthe horizontal direction for the dimension entity. The dimension entitydetermines 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 OCSX axisand the UCS X axis. It is always in the XY plane of the OCS
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
3 Dimension style name
Common dimension group codes (continued )
Group codes Description
![Page 78: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/78.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 78/188
72 | Chapter 6 ENTITIES Section
ties” on page 60 an d “Com m on Dimen sion Group Codes” on page 69 can
also be presen t. For inform ation ab out abb reviation s an d format ting used in
th is table, see “Form atting Con ventio ns in This Reference” on page 6.
Th e poin t (13,23,33) specifies th e start poin t o f th e first extension lin e and
th e poin t (14,24,34) specifies the start poin t of the secon d exten sion lin e.
Poin t (10,20,30) specifies the d im ension lin e location . Th e poin t (11,21,31)
specifies th e m idpo in t o f the d im ension text.
Linear and Rotated Dimension Group Codes
Th e followin g group codes apply to linear an d rotated d im ensions (n ote th at
lin ear an d rotated d imen sions are part of th e AcDbAlign edDimen sion sub-
class). In add ition to th e group co des described h ere, th ose listed in “Com-
m on Gro up Codes for En tities” on p age 60 and “Com m on Dimension Group
Codes” on page 69 can also be presen t. For in form ation about abb reviation s
Aligned dimension group codes
Group codes Description
100 Subclass m arker (AcDbAlignedDimension)
12 Insert ion poin t for clones of a dimension—Baseline and Cont inue ( inOCS)DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of insert ion point for clones of a dimension—Baseline and Continue (in OCS)
13 Definit ion point fo r lin ear and an gular d imensions (in WCS)DXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
14 Definit ion poin t fo r lin ear and angular d imensions (in WCS)DXF: X value; APP: 3D point
24, 34 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
![Page 79: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/79.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 79/188
DIMENSION | 73
an d form atting used in th is table, see “Form attin g Con vent ion s in Th is Ref-
eren ce” on p age 6.
Radial and Diameter Dimension Group Codes
Th e followin g group cod es app ly to radial an d d iam eter dim ension s. In ad di-
tion to th e grou p codes described h ere, th ose listed in “Comm on Group
Cod es for En tities” on page 60 an d “Comm on Dim ension Group Codes” on
page 69 can also be present. For in formation a bout abb reviation s an d form at-
Linear and rotated dimension group codes
Group codes Description
100 Subclass m arker (AcDbAlignedDimension)
12 Insert ion poin t for clones of a dimension—Baseline and Cont inue (inOCS)DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of insertion point for clones of a dimension—Baseline and Continue (in OCS)
13 Definit ion poin t fo r lin ear and an gular d imensions (in WCS)DXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
14 Definit ion poin t fo r lin ear and angular d imensions (in WCS)DXF: X value; APP: 3D point
24, 34 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
50 Angle of rot ated, horizontal, or vertical dimensions
52 Linear dimension types with an oblique angle have an opt ional g roupcode 52. When added to the rotation angle of the linear dimension
(group code 50), it gives the angle of the extension lines
100 Subclass m arker (AcDbRot atedDimension)
![Page 80: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/80.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 80/188
74 | Chapter 6 ENTITIES Section
ting u sed in t h is table, see “Form att in g Con vention s in Th is Referen ce” on
page 6.
Th e point (15,25,35) specifies the first po in t of th e dim ension line o n t he cir-
cle/arc an d th e poin t (10,20,30) specifies th e poin t opp osite th e first poin t.
Th e point (11,21,31) specifies th e m idp oin t of the dim ension t ext.
Th e point (15,25,35) specifies the first po in t of th e dim ension line o n t he cir-
cle/arc an d th e po int (10,20,30) specifies th e cent er of th e circle/arc. The
point (11,21,31) specifies the midpoint of the dimension text.
Angular Dimension Group Codes
The following group codes apply to angular dimensions. In addition to the
grou p codes described here, th ose listed in “Comm on Grou p Codes for En ti-
ties” on page 60 an d “Com m on Dimen sion Group Codes” on page 69 canalso be presen t. For inform ation ab out abb reviation s an d format ting used in
th is table, see “Form atting Con ventio ns in This Reference” on page 6.
Radial and diameter dimension group codes
Group codes Description
100 Subclass marker (AcDbRadialDimension or AcDbDiametricDimension)
15 Defin it ion poin t for diameter , rad ius, and angular dimensions (in WCS)DXF: X value; APP: 3D point
25, 35 DXF: Y and Z values of definition point for diameter, radius, andangular dimensions (in WCS)
40 Leader lengt h for radius and diam eter dimensions
Angular dimension group codes
Group codes Description
100 Sub class m arker (AcDb3Point AngularDimension)
13 Definit ion poin t fo r lin ear and angular d imensions (in WCS)DXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
14 Definit ion poin t fo r lin ear and angular d imensions (in WCS)DXF: X value; APP: 3D point
![Page 81: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/81.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 81/188
DIMENSION | 75
Th e poin ts (13,23,33) an d (14,24,34) specify th e en dp oin ts of th e lin e usedto d etermin e th e first exten sion lin e. Point s (10,20,30) and (15,25,35) specify
the en dpo in ts of the line used to determin e the second ex tension line. Point
(16,26,36) specifies th e location of the dim en sion line arc. Th e poin t
(11,21,31) specifies the midpoint of the dimension text.
Th e poin t (15,25,35) specifies th e vertex of th e an gle. Th e poin ts (13,23,33)
an d (14,24,34) specify th e end poin ts of the exten sion lines. Th e point
(10,20,30) specifies th e location of the dim en sion line arc an d th e poin t
(11,21,31) specifies the midpoint of the dimension text.
Ordinate Dimension Group CodesTh e following group codes apply to ordinate dim ension s. In add ition to t h e
grou p codes described here, th ose listed in “Comm on Grou p Codes for En ti-
ties” on page 60 an d “Com m on Dimen sion Group Codes” on page 69 can
also be presen t. For inform ation ab out abb reviation s an d format ting used in
th is table, see “Form atting Con ventio ns in Th is Reference” on page 6.
24, 34 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
15 Defin it ion poin t for d iameter, rad ius, and angular dimensions ( in WCS)DXF: X value; APP: 3D point
25, 35 DXF: Y and Z values of definition point for diameter, radius, andangular dimensions (in WCS)
16 Po in t defining dimension arc for angular d imensions (in OCS)DXF: X value; APP: 3D point
26, 36 DXF: Y and Z values of point defining dimension arc for angulardimensions (in OCS)
Ordinate dimension group codes
Group codes Description
100 Subclass m arker (AcDbOrdinat eDimension)
13 Definit ion poin t fo r lin ear and an gular d imensions (in WCS)DXF: X value; APP: 3D point
Angular dimension group codes (continued )
Group codes Description
![Page 82: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/82.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 82/188
76 | Chapter 6 ENTITIES Section
Th e poin t (13,23,33) specifies th e feature location an d t h e poin t (14,24,34)
specifies th e leader end poin t. The poin t (11,21,31) specifies the m idpoin t of
th e dim en sion text. Point (10,20,30) is placed at th e origin o f th e UCS th at is
current when the d imen sion is created.
Dimension Style Overrides
Dim en sion style overrides can be app lied to dim en sion , leader, an d tolerance
ent ities. An y overrides applied to th ese en tities are stored in th e en tity as
xdata. Th e overridd en d imen sion variable grou p codes an d th e related values
are con tained with in group 1002 con trol strings. Th e followin g exam ple
sh ows th e xdata of a dimension entity wh ere the DIMTOL an d DIMCLRE vari-
ables have been overridden.
( s e t q d i me n t ( c a r ( e n t s e l ) ) ) ; Se l e c t d i me n s i o n e n t i t y( s e t q e l s t ( e n t g e t d i me n t ' ( " A CA D" ) ) ) ; Ge t e n t i t y d e f i n i t i o n l i s t( a s s o c - 3 e l s t ) ; Ex t r a c t x d a t a o n l y
Th is cod e return s the following:
( - 3 ( " AC AD " S t a r t o f t h e AC AD AP P I D s e c t i o n o f x d a t a( 1 0 0 0 . " DS T YL E" ) ( 1 0 0 2 . " { " ) B e g i n n i n g o f t h e d i ms t y l e s u b s e c t i o n( 1 0 7 0 . 1 7 7 ) ( 1 0 7 0 . 3 ) T h e D I MCL RE ( c o d e 1 7 7 ) o v e r r i d e + v a l u e ( 3 )( 1 0 7 0 . 7 1 ) ( 1 0 7 0 . 1 ) T h e D I MT OL ( c o d e 7 1 ) o v e r r i d e + v a l u e ( 1 )( 1 0 0 2 . " } " ) ) ) E n d d i ms t y l e s u bs e c t i o n a n d A CA D s e c t i o n
ELLIPSE
Th e followin g group codes apply to ellipse ent ities. In addition to th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
23, 33 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
14 Definit ion poin t fo r lin ear and angular d imensions (in WCS)DXF: X value; APP: 3D point
24, 34 DXF: Y and Z values of definition point for linear and angulardimensions (in WCS)
Ordinate dimension group codes (continued )
Group codes Description
![Page 83: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/83.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 83/188
ELLIPSE | 77
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
The group codes 41 an d 42 are th e start an d en d values for u in the equation
describin g th e Param eter option of the ELLIPSE comm and (see th e followin g
topic, “ELLIPSE Com m an d’s Param eter O ption ”). Th e m agnitude of the
codes 11,21,31 vector is equal to 1 /2 of th e m ajor axis wh ich is the a value in
the equation. Th e poin t 10,20,30 is the c value in th e equation . Kn owing all
th ese, we can calculate th e b value to complete the equat ion .
ELLIPSE Command’s Parameter Option
Th e Parameter option o f th e ELLIPSE com m and uses th e followin g equation
to d efin e an ellipt ical arc.
p ( u ) = c +a * c o s ( u ) + b * s i n ( u )
The variables a, b, c are determined wh en you select th e endpoint s for th e
first axis an d t he d istan ce for th e second axis. a is th e n egative of 1/2 of th e
Ellipse group codes
Group codes Description
100 Subclass marker (AcDbEllipse)
10 Center point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of center point (in WCS)
11 Endpoint of major axis, relat ive t o the cent er (in WCS)DXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of endpoint of major axis, relative to the center (inWCS)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
40 Ratio of minor axis to major axis
41 St art p aram eter (t his value is 0.0 for a full ellip se)
42 End param eter (t his value is 2pi for a full ellipse)
![Page 84: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/84.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 84/188
78 | Chapter 6 ENTITIES Section
m ajor axis len gth , b is th e n egative of 1/2 the m in or axis length , and c is th e
cen ter p oint (2-D) of th e ellipse.
Becau se th is is actua lly a vecto r equation an d t he variable c is actu ally a po int
with X an d Y values, it really sh ould be written as:
p ( u ) = ( C x + a * c o s ( u ) ) * i + ( C y + b * s i n ( u ) ) * j
where
s Cx is the X value of th e point c
s Cy is th e Y value of th e point c
s a is –(1/ 2 of th e m ajor axis len gth)
s b is –(1/2 of th e m in or axis len gth)
s i and j represent un it vectors in the X an d Y directions
In Aut oCAD, on ce th e axis endp oint s are selected, all you h ave left to specify
is the start an d en d o f th e ellipt ical arc.
Wh en you select th e parameter opt ion , you are asked for a start param eter
and an end parameter. Th ese values are plugged in to th e equation to deter-
m in e th e actual start an d en d p oints on th e ellipse. Th e rest of th e ellipse is
filled in between t h ese two poin ts in a coun terclockwise direction from th e
first parameter to th e second. Th e value entered for the parameter u is taken
to be d egrees for th e purp oses of obtainin g the cos(u) an d sin (u).
For exam ple:
Axis en dp oint 1 = 0,1
Axis en dp oint 2 = 4,1
Oth er axis distan ce = 2,0
Start param eter = 270En d param eter = 0
generates the start p oint at 2,2 an d th e end p oint at 0,1 an d fills in the ellipse
from 2,2 to 0,1 in a coun terclockwise direction .
HATCH
Th e followin g group codes apply to h atch entities. In addition to the grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
![Page 85: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/85.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 85/188
HATCH | 79
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Hatch group codes
Group codes Description
100 Subclass marker (AcDbHatch)
10 Elevat ion point (in OCS)DXF: X value = 0; APP: 3D point (X and Y always equal 0, Z representsthe elevation)
20, 30 DXF: Y and Z values of elevation point (in OCS)Y value = 0, Z represents the elevation
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion d irection
2 Hatch pattern name
70 Solid fill flag (solid fill = 1; pattern fill = 0)
71 Associativity flag (associative = 1; non-associat ive = 0)
91 Number of boundary paths (loops)
varies Boundary path data. Repeats number of times specified by code 91.See “ Boundary Path Data” on page 80
75 Hatch style:0 = Hatch “ odd parity” area (Normal style)1 = Hatch out ermost area only (Outer style)2 = Hatch through entire area (Ignore style)
76 Hatch pattern type:0 = User-defined; 1 = Predefined; 2 = Custom
52 Hatch pattern angle (pattern fill only)
41 Hatch patt ern scale or spacing (pattern fill only)
77 Hatch pattern double flag (pattern fill only):
0 = not double; 1 = double
78 Number of pattern definit ion lines
![Page 86: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/86.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 86/188
80 | Chapter 6 ENTITIES Section
Boundary Path DataTh e boun dary of each hatch object is defined by a path (or loop) tha t consists
of one or m ore segm ent s. Path segmen t data varies depen ding on th e en tity
type (or types) that m ake up th e path. Each p ath segm ent is defined by its
own set of group codes. For information about abbreviations and form atting
used in t h is table, see “Form att in g Con ven tions in This Reference” on page
6.
varies Pattern line data. Repeats number of times specified by code 78. See“ Pattern Data” on page 83
47 Pixel size used to determine the density to per form various intersect ionand ray cast ing operations in hatch pattern computation for associativehatches and hatches created with the Flood method of hatching
98 Number of seed points
10 Seed point (in OCS)DXF: X value; APP: 2D poin t (multiple entries)
20 DXF: Y value of seed point (in OCS); (mult iple entries)
Hatch boundary path data group codes
Group codes Description
92 Boundary path type flag (bit coded):0 = Default; 1 = External; 2 = Polyline;4 = Derived; 8 = Textbox; 16 = Outermost
varies Polyline bound ary typ e data (only if boundary = polyline). See Polylineboundary data table below
93 Num ber o f ed ges in this b oundary path (only if bou ndary is n ot apolyline)
72 Edge type (only if boundary is not a polyline):1 = Line; 2 = Circular arc; 3 = Elliptic arc; 4 = Spline
varies Edge type data (only if boundary is not a polyline). See appropriateEdge data table below
97 Number of source boundary objects
Hatch group codes (continued )
Group codes Description
![Page 87: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/87.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 87/188
HATCH | 81
330 Reference to source boundary objects (multip le en tries)
Polyline boundary data group codes
Group codes Description
72 Has bulge flag
73 Is closed flag
93 Number of polyline vertices
10 Vertex locat ion (in OCS)DXF: X value; APP: 2D poin t (multiple entries)
20 DXF: Y value of vertex location (in OCS) (mult iple entries)
42 Bulge (opt ional, default = 0)
Line edge data group codes
Group codes Description
10 Start point (in OCS)DXF: X value; APP: 2D point
20 DXF: Y value of start point (in OCS)
11 End point (in OCS)DXF: X value; APP: 2D point
21 DXF: Y value of end point (in OCS)
Arc edge data group codes
Group codes Description
10 Center point (in OCS)
DXF: X value; APP: 2D point
20 DXF: Y value of center point (in OCS)
40 Radius
Hatch boundary path data group codes (continued )
Group codes Description
![Page 88: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/88.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 88/188
![Page 89: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/89.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 89/188
IMAGE | 83
Pattern Data
The followin g pat tern d ata codes repeat for each patt ern definition lin e. For
in form ation about abbreviations an d form atting used in t h is table, see “For-
matting Conventions in This Reference” on page 6.
IMAGE
Th e followin g group codes app ly to im age ent ities. In add ition to th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
10 Control point (in OCS)DXF: X value; APP: 2D point
20 DXF: Y value of control point (in OCS)
42 Weights (opt ional, default = 1)
Hatch pattern data group codes
Group codes Description
53 Pattern line angle
43 Pattern line base point, X component
44 Pattern line base point, Y component
45 Pattern line offset, X component
46 Pattern line offset, Y component
79 Number of dash length items
49 Dash length (multiple entries)
Spline edge data group codes (continued )
Group codes Description
![Page 90: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/90.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 90/188
84 | Chapter 6 ENTITIES Section
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Image group codes
Group codes Description
100 Subclass m arker (AcDbRasterImage)
90 Class version
10 Insert ion point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of insertion point (in WCS)
11 U-vector o f a single pixel (points along the visual bot tom of the image,starting at the insertion point) (in WCS)DXF: X value; APP: 3D point
21, 31 DXF: Y and Z values U-vector (in WCS)
12 V-vector of a sing le p ixel (po in ts along the visual lef t side of the image,starting at the insertion point) (in WCS)DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of V-vector (in WCS)
13 Image size in pixelsDXF: U value; APP: 2D point (U and V values)
23 DXF: V value of image size in pixels
340 Hard reference to imagedef object
70 Image display propert ies:1 = Show image2 = Show image when not aligned with screen4 = Use clipping boundary8 = Transparency is on
280 Clipping state: 0 = Off, 1 = On
281 Brightness value (0-100; default = 50)
282 Contrast value (0-100; default = 50)
283 Fade value (0-100; default = 0)
![Page 91: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/91.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 91/188
INSERT | 85
INSERT
Th e followin g grou p cod es apply to insert (block reference) ent ities. In ad di-
tion t o th e group codes described h ere, see “Com m on G roup Codes for En ti-
ties” on page 60. For informat ion about ab breviations and form atting used
in th is table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6 .
360 Hard reference to imagedef_react or object
71 Clipping boundary type. 1 = Rect angular, 2 = Polygonal
91 Number of clip boundary vertices that follow
14 Clip boundary vertex (in OCS)DXF: X value; APP: 2D poin t (multiple entries)Notes:1) For rectangular clip boundary type, two opposite corners must bespecified. Default is (–0.5,–0.5), (size.x–0.5, size.y–0.5).2) For polygonal clip boundary type, three or more vertices must bespecified. Polygonal vertices must be listed sequentially
24 DXF: Y value of clip boundary vertex (in OCS) (multiple entries)
Insert group codes
Group codes Description
100 Subclass m arker (AcDbBlockReference)
66 Var iable att ributes-follow flag (optional; default = 0); if the value ofattrib utes-follow flag is 1, a series of attr ibute entit ies is expected tofollow t he insert, terminated by a seqend entit y
2 Block name
10 Insert ion point (in OCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of insertion poin t (in OCS)
41 X scale factor (optional; default = 1)
Image group codes (continued )
Group codes Description
![Page 92: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/92.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 92/188
![Page 93: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/93.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 93/188
LEADER | 87
Xdata belonging to the application ID " A CA D" follows a leader en tity if any
dimen sion o verrides ha ve been app lied to t h is en tity. See “Dim en sion Style
Overrides” on page 76.
74 Hook line direction flag:0 = Hook line (or end of tangent for a splined leader) is the oppositedirection from the horizontal vector
1 = Hook line (or end of tangent for a splined leader) is the samedirection as horizontal vector (see code 75)
75 Hook line flag: 0 = No hookline; 1 = Has a hookline
40 Text annotat ion height
41 Text annotat ion width
76 Num ber of vertices in leader (ignored for OPEN)
10 Vert ex coordinates (one entry for each vertex)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of vertex coordinates
77 Color to use if leader’s DIMCLRD = BYBLOCK
340 Hard reference to associated annotat ion (mtext, tolerance, or insertentity)
210 Normal vectorDXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of normal vector
211 “ Horizontal” direction for leader
DXF: X value; APP: 3D vector
221, 231 DXF: Y and Z values of “ horizontal” direction for leader
212 Offset o f last leader vertex from b lock reference insert ion po in tDXF: X value; APP: 3D vector
222, 232 DXF: Y and Z values of offset
213 Offset of last leader vertex from annotat ion placement po in tDXF: X value; APP: 3D vector
223, 233 DXF: Y and Z values of offset
Leader group codes (continued )
Group codes Description
![Page 94: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/94.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 94/188
88 | Chapter 6 ENTITIES Section
LINE
Th e followin g grou p codes apply to lin e entities. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
LW POLYLINE
Th e followin g grou p codes apply to lwpolylin e entities. In add ition to th e
grou p codes described h ere, see “Comm on Group Co des for En tities” on page
60 . For information about ab breviations and formatting u sed in t h is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
Line group codes
Group codes Description
100 Subclass marker (AcDbLine)
39 Thickness (optional; default = 0)
10 Start point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of start point (in WCS)
11 End point (in WCS)DXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of end point (in WCS)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
![Page 95: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/95.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 95/188
MLINE | 89
MLINE
Th e followin g grou p codes ap ply to m line en tities. In a ddition to th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Lwpolyline group codes
Group codes Description
100 Subclass marker (AcDbPolyline)
90 Number of vert ices
70 Polyline flag (bit -coded); default is 0:1 = Closed; 128 = Plinegen
43 Constant width (optional; default = 0). Not used if variable width(codes 40 and/ or 41) is set
38 Elevation (opt ional; default = 0)
39 Thickness (optional; default = 0)
10 Ver tex coord inates ( in OCS), mult iple ent ries; one entry for each ver texDXF: X value; APP: 2D point
20 DXF: Y value of vertex coordinates (in OCS), mult iple entries; one entryfor each vertex
40 Starting width (mult iple entries; one entry for each vertex) (opt ional;default = 0; m ultiple entries). Not used if constant widt h (code 43) isset
41 End width (mult iple entries; one entry for each vertex) (option al;default = 0; m ultiple entries). Not used if constant widt h (code 43) isset
42 Bulge (multiple entries; one entry for each vertex) (opt ional; default =
0)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
![Page 96: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/96.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 96/188
90 | Chapter 6 ENTITIES Section
Mline group codes
Group codes Description
100 Subclass marker (AcDbMline)
2 St ring of up to 32 characters. The name of the style used for this mline.
An entry for this style must exist in the MLINESTYLE dictionary.
NOTE Do not modify this field without also updating the associatedentry in the MLINESTYLE dictionary
340 Pointer-handle/ ID of MLIN ESTYLE object
40 Scale factor
70 Justificat ion: 0 = Top, 1 = Zero, 2 = Bottom
71 Flags (bit-coded values):1 = Has at least one vertex (code 72 is greater than 0);2 = Closed;4 = Suppress start caps; 8 = Suppress end caps
72 Number of vert ices
73 Num ber of elements in M LINESTYLE definit ion
10 Start point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of start point (in WCS)
210 Ext rusion direct ion (optional; default = 0, 0, 1)
DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
11 Ver tex coord inates (mult ip le ent ries; one ent ry for each vertex) DXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of vertex coordinates
12 Direct ion vector of segment start ing at this vertex (mult iple ent ries; onefor each vertex)DXF: X value; APP: 3D vector
22, 32 DXF: Y and Z values of direction vector of segment starting at thisvertex
13 Direct ion vector of miter at this ver tex (mult iple ent ries: one for eachvertex)DXF: X value; APP: 3D vector
![Page 97: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/97.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 97/188
MLINE | 91
Th e grou p code 4 1 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 cod e 41
value is the distance from th e segment vertex alon g the m iter vector to th epoint where th e lin e elem ent ’s path intersects the m iter vector. The next
group code 41 value is the d istan ce alon g the line element’s path from th e
point d efined by th e first group 41 t o th e actual start of th e lin e elem ent . Th e
n ext is the distan ce from th e start of the line elemen t to th e first break (or
cut) in th e lin e elemen t. Th e successive group code 4 1 values con tinu e to list
the start an d stop points of the line elem ent in this segm ent of the mline.
Linetyp es do n ot affect group 41 lists.
The group co de 42 param eterization is also a list of real values. Sim ilar to t he
41 param eterization , it describes th e param eterization of th e fill area for this
m lin e segm ent . The values are in terpreted iden tically to the 41 param eters
and when taken as a who le for all line elem ents in th e m line segmen t, th eydefin e th e boun dary of the fill area for th e m line segm ent .
A comm on exam ple of th e use of the group code 42 m ech anism is wh en an
un filled m lin e crosses over a filled m lin e and m ledit is used t o cause th e filled
m lin e to appear u nfilled 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
and one for th e fill start.
The 2 group cod es in m line en tities an d m lin estyle objects are redu n dan t
fields. These grou ps sh ou ld no t be m od ified un der an y circum stances,
alth ou gh it is safe to read th em an d u se their values. Th e correct fields to
m odify are as follows:
Mline Th e 340 group in th e same o bject, wh ich in dicates th e
proper MLINESTYLE object.
23, 33 DXF: Y and Z values of direction vector of miter
74 Number o f parameters for this element (repeats for each element in
segment)
41 Element parameters (rep eats b ased on previous cod e 74)
75 Number o f area fill parameters for this element (repeats for eachelement in segment)
42 Area fill paramet ers (rep eat s based on previou s code 7 5)
Mline group codes (continued )
Group codes Description
![Page 98: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/98.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 98/188
92 | Chapter 6 ENTITIES Section
Mlinestyle The 3 group value in th e MLINESTYLE diction ary
which precedes the 350 group th at h as th e han dle or
entity nam e of the current m lin estyle.
MTEXT
Th e followin g grou p codes app ly to m text en tities. In ad dition to t h e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Mtext group codes
Group codes Description
100 Subclass marker (AcDbMText)
10 Insert ion pointDXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of insert ion point
40 Nominal (initial) text height
41 Reference rectangle width
71 Attachment point :1 = Top left; 2 = Top center; 3 = Top right;
4 = Midd le left; 5 = Middle center; 6 = Mid dle right ;7 = Bott om left; 8 = Bottom center; 9 = Bottom r ight
72 Drawing direct ion:1 = Left to right;3 = Top to bottom ;5 = By style (the flow direction is inherited from the associated textstyle)
1 Text st ring. If the text str ing is less than 250 characters, all charactersappear in group 1. If the text string is greater than 250 characters, thestring is divided into 250 character chunks, which appear in one ormore group 3 codes. If group 3 codes are used, the last group is agroup 1 and has fewer than 250 characters
3 Addit ional text (alw ays in 250 charact er chunks) (opt ional)
7 Text st yle name (STAN DARD if not provided) (optional)
![Page 99: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/99.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 99/188
OLEFRAME | 93
Xdata with t h e " DC O1 5 " app lication ID m ay follow an m text ent ity. Th is con -
tain s inform ation related to th e dbCon n ect feature.
OLEFRAME
Th e followin g grou p codes apply to olefram e ent ities. In add ition to th e
grou p codes described h ere, see “Comm on Group Co des for En tities” on page
60 . For informat ion about ab breviations and formatting u sed in t h is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
11 X -axis direction vector (in WCS)DXF: X value; APP: 3D vector
NOTE A group code 50 (rotation angle in radians) passed as DXFinput is converted to the equivalent direction vector (if both a code 50and codes 11, 21, 31 are passed, the last one wins). This is provided asa convenience for conversions from text objects
21, 31 DXF: Y and Z values of X -axis direction vector (in WCS)
42 Horizontal w id th o f the characters that make up the mtext entit y. Thisvalue will always be equal to or less than the value of group code 41
(read-only, ignored if supplied)
43 Vert ical heigh t of the mtext en tity (read-on ly, ignored if supplied )
50 Rotat ion angle in radians
73 Mtext line spacing style (opt ional):1 = At least (t aller characters will override)2 = Exact (taller characters will not override)
44 Mtext line spacing factor (optional):Percentage of default (3-on-5) line spacing to be applied. Valid valuesrange from 0.25 to 4.00
Mtext group codes (continued )
Group codes Description
![Page 100: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/100.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 100/188
94 | Chapter 6 ENTITIES Section
OLE2FRAME
Th e followin g grou p codes app ly to ole2fram e en tities. Th is in form ation is
read-only. During OPEN , th e values are ign ored because th ey are part of th e
OLE binary ob ject, an d are obtain ed via access fun ctions. In add ition to th e
grou p codes described h ere, see “Comm on Group Co des for En tities” on page
60 . For information about ab breviations and formatting u sed in t h is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
Oleframe group codes
Group codes Description
100 Subclass marker (AcDbOleFrame)
70 OLE version number
90 Length of binary data
310 Binary data (multiple lines)
1 End of OLE data (the string “ OLE” )
Ole2frame group codes
Group codes Description
100 Subclass marker (AcDbOle2Frame)
70 OLE version number
3 Length of binary data
10 Upper left corner (WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of upper left corner (in WCS)
11 Lower right corner (WCS)DXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of low er right corner (in WCS)
71 OLE object t ype, 1 = Link, 2 = Embedded, 3 = Stat ic
![Page 101: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/101.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 101/188
OLE2FRAME | 95
Sam ple DXF outp ut :
O L E 2 F R A M E5
2 D
1 0 0A c Db En t i t y6 7
18
01 0 0A c Db Ol e 2 F r a me
7 02
3P a i n t b r u s h P i c t u r e
1 04 . 4 3 1 1 6
2 05 . 6 6 5 9 9 23 0
0 . 01 1
6 . 4 1 8 82 1
4 . 2 4 4 9 3 93 1
0 . 07 1
27 2
1
9 0 2 3 6 8 03 1 0
0 1 5 5 7 6 4 B D6 0 0 8 2 B 9 1 1 4 0 1 1 4 B 0 8 C 8 F 9 A 9 1 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 6 D C0 D 0 D9 A C
3 1 0
72 Tile mode descriptor:0 = Object resides in model space1 = Object resides in paper space
90 Length of binary data
310 Binary data (multiple lines)
1 End of OLE data (the string “ OLE” )
Ole2frame group codes (continued )
Group codes Description
![Page 102: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/102.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 102/188
96 | Chapter 6 ENTITIES Section
1 9 4 0 1 1 4 B 0 8 C 8 F 9 A9 1 6 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 6 DC0 D 0 D9 A C1 9 4 0 0 2 3 0 3 E 5 CD 1 FA
3 1 0 1 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 6 4 B D 6 0 0 8 2 B 9 1 1 4 0 0 2 3 0 3 E 5 C D 1 F A 1 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0
. . .
. . .
AutoLISP e n t n e x t fun ction samp le outpu t:
Co mma n d : ( s e t q e ( e n t g e t e 3 ) )( ( - 1 . < E n t i t y n a me : 7 d 5 0 4 2 8 > ) ( 0 . " OL E2 F RA ME " ) ( 5 . " 2 D " )( 1 0 0 . " Ac D b E n t i t y " ) ( 6 7 . 1 ) ( 8 . " 0 " ) ( 1 0 0 . " A c Db Ol e 2 F r a me " )( 7 0 . 2 ) ( 3 " P a i n t b r u s h P i c t u r e " ) ( 1 0 4 . 4 3 1 1 6 5 . 6 6 5 9 9 0 . 0 )( 1 1 6 . 4 1 8 8 4 . 2 4 4 9 4 0 . 0 ) ( 7 1 . 2 ) ( 7 2 . 1 ) )
POINT
Th e followin g grou p codes apply to p oint ent ities. In ad dition to t h e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Point group codes
Group codes Description
100 Subclass marker (AcDbPoint)
10 Point locat ion (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of point location (in WCS)
39 Thickness (optional; default = 0)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
50 Angle of the X axis for t he UCS in effect when the point was drawn(opt ional, default = 0); used when PDMODE is nonzero
![Page 103: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/103.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 103/188
POLYLINE | 97
POLYLINE
Th e followin g grou p codes app ly to polyline en tities. In add ition to th e
grou p codes described h ere, see “Comm on Group Co des for En tities” on page
60 . For informat ion about ab breviations and formatting u sed in t h is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
Polyline group codes
Group codes Description
100 Subclass marker (AcDb2dPolyline or AcDb3dPolyline)
66 Obsolete; former ly an “ent ities follow flag” (opt ional; ignore if present )
10 DXF: always 0APP: 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 elevat ion (in OCS wh en 2D, WCS w hen 3D)
39 Thickness (optional; default = 0)
70 Polyline flag (bit -coded); default is 0:1 = This is a closed polyline (or a p olygon mesh closed in the Mdirection)2 = Curve-fit vertices have been added4 = Spline-fit vertices have been added
8 = This is a 3D polyline16 = This is a 3D polygon mesh32 = The polygon mesh is closed in the N direction64 = The polyline is a polyface mesh128 = The linetype pattern is generated continuously around thevertices of this polyline
40 Default start width (opt ional; default = 0)
41 Default end width (optional; default = 0)
71 Polygon mesh M vert ex count (optional; default = 0)
72 Polygon mesh N vert ex count (opt ional; default = 0)
73 Smooth surface M density (opt ional; default = 0)
74 Smooth surface N densit y (optional; default = 0)
![Page 104: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/104.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 104/188
98 | Chapter 6 ENTITIES Section
Xdata with th e " A UT O CA D_ P OS T S C RI P T _ F I G UR E " ap plication ID may follow a
polylin e en tity. Th is con tains inform ation related to PostScript ima ges and
PostScript fill information.
Polyface Meshes
A po lyface m esh is represen ted in DXF as a varian t o f a polylin e ent ity. Th e
polylin e header is ident ified as intro du cin g a polyface m esh b y the p resence
of the 64 bit in th e polylin e flags (70) grou p. The 71 group specifies th e n um -
ber of vertices in th e m esh , and th e 72 group specifies th e num ber of faces.
Altho ugh th ese coun ts are correct for all meshes created with t h e PFACE com-
m an d, applications are no t required to p lace correct values in th ese fields.
Followin g th e po lyline h eader is a sequ en ce of vertex en tities th at specify th e
vertex coordinates, then followed by faces that compose the mesh.
Th e AutoCAD entity struct ure imp oses a limit on th e nu m ber of vertices th at
a given face en tity can specify. You can represent m ore com plex po lygons by
decom posin g th em in to t rian gular wedges. Th eir edges should b e m ade invis-
ible to prevent visible artifacts of th is sub division from being d rawn. Th e
PFACE comm and performs th is subd ivision autom atically, but when applica-
tions generate po lyface meshes directly, the app lication s mu st do th is
th em selves. Th e n um ber of vertices per face is th e key param eter in th is sub -
division process. The PFACEVMAX system variable provides an app lication
with th e n um ber of vertices per face en tity. This value is read-on ly and is set
to 4.
Polyface m eshes created with t h e PFACE com m and are always generated with
all th e vertex coordinat e ent ities first, followed by th e face definition ent ities.
Th e cod e within Aut oCAD th at p rocesses polyface m esh es requires th is
75 Curves and smooth sur face type (opt ional; default = 0) ; integer codes,not bit-coded:0 = No smooth surface fitted
5 = Quadratic B-spline surface6 = Cubic B-spline surface8 = Bezier surface
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
Polyline group codes (continued )
Group codes Description
![Page 105: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/105.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 105/188
RAY | 99
ordering. Program s th at generat e polyface m esh es in DXF sh ou ld gen erate all
th e vertices th en all th e faces. However, program s th at read po lyface m esh es
from DXF sh ou ld be tolerant of odd vertex an d face orderin g.
RAY
Th e followin g grou p codes apply to ray entit ies. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
REGION
Th e following group codes apply to region entities. In add ition to th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Ray group codes
Group codes Description
100 Subclass marker (AcDbRay)
10 Start point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of start point (in WCS)
11 Unit direction vector (in WCS)DXF: X value; APP: 3D vector
21, 31 DXF: Y and Z values of unit direction vector (in WCS)
Region group codes
Group codes Description
100 Subclass m arker (AcDbM odelerGeometry)
70 Modeler format version number (currently = 1)
![Page 106: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/106.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 106/188
100 | Chapter 6 ENTITIES Section
SEQEND
Th e followin g group codes app ly to seqen d en tities. In a ddition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
SHAPE
Th e followin g grou p codes apply to shap e entit ies. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
1 Propriet ary dat a (mult iple lines < 255 characters each)
3 Addit ional lines of proprietary data (if previous group 1 string is greater
than 255 characters) (optional)
Seqend group codes
Group codes Description
–2 APP: name of ent ity that began the sequence. This ent ity marks the endof vertex (vertex type name) for a polyline, or the end of att ributeentities (attrib type name) for an insert entity that has attributes(indicated) by 66 group present and nonzero in insert entity). This codeis not saved in a DXF file
Shape group codes
Group codes Description
100 Subclass marker (AcDbShape)
39 Thickness (optional; default = 0)
10 Insert ion point (in WCS)DXF: X value; APP: 3D point
Region group codes (continued )
Group codes Description
![Page 107: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/107.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 107/188
SOLID | 101
SOLID
The followin g grou p codes app ly to solid entities. In ad dition t o th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
20, 30 DXF: Y and Z values of insertion point (in WCS)
40 Size
2 Shape name
50 Rotat ion angle (optional; default = 0)
41 Relative X scale fact or (opt ional; default = 1)
51 Oblique angle (optional; default = 0)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF:Y
andZ
values of extrusion direction (optional)
Solid group codes
Group codes Description
100 Subclass marker (AcDbTrace)
10 First cornerDXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of first corner
11 Second cornerDXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of second corner
12 Third cornerXF: X value; APP: 3D point
Shape group codes (continued )
Group codes Description
![Page 108: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/108.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 108/188
102 | Chapter 6 ENTITIES Section
SPLINE
Th e following group codes app ly to spline en tities. In ad dition t o th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see
“Form atting Con ventio n s in This Reference” on page 6.
22, 32 DXF: Y and Z values of third corner
13 Fourth corner. I f only three corners are entered to def ine the SOLID,
then the fourth corner coordinate is the same as the third.DXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of four th corner
39 Thickness (optional; default = 0)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
Spline group codes
Group codes Description
100 Subclass marker (AcDbSpline)
210 Normal vect or (omit ted if t he spline is nonplanar)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of normal vector (optional)
70 Spline flag (bit coded):1 = Closed spline2 = Periodic spline4 = Rational spline8 = Planar
16 = Linear (planar bit is also set)
71 Degree of the spline curve
Solid group codes (continued )
Group codes Description
![Page 109: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/109.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 109/188
TEXT | 103
TEXT
Th e followin g grou p codes apply to text en tities. In addition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
72 Number of knots
73 Number of control points
74 Number of fit points (if any)
42 Knot tolerance (default = 0.0000001)
43 Control-point tolerance (default = 0.0000001)
44 Fit tolerance (default = 0.0000000001)
12 Start tangent—may be omitted (in WCS)DXF: X value; APP: 3D point
22, 32 DXF:Y
andZ
values of start tangent—may be omitted (in WCS)
13 End tangent—may be omitted (in WCS)DXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of end tangent—may be omitt ed (in WCS)
40 Knot value (one entry per knot)
41 Weigh t (if not 1); w ith mult ip le group pairs, are presen t if all are not 1
10 Cont rol points (in WCS), one ent ry per control pointDXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of control points (in WCS), one entry per controlpoint
11 Fit points (in WCS), one entry per fit pointDXF: X value; APP: 3D point
21, 31 DXF: Y and Z values of fit points (in WCS), one entry per fit point
Spline group codes (continued )
Group codes Description
![Page 110: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/110.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 110/188
![Page 111: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/111.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 111/188
TOLERANCE | 105
Th e followin g table describes th e group codes 72 (h orizont al align m ent ) and
73 (vertical align m en t) in greater deta il.
If group 72 and/ or 73 values are non zero th en the first alignm ent p oint val-
ues are ign ored an d Aut oCAD calculates new values based on th e secon d
alignm en t po in t an d th e length an d h eight of th e text strin g itself (after
app lying th e text style). If the 72 an d 73 values are zero or m issing, th en th e
second alignm ent point is meanin gless.
TOLERANCE
Th e followin g grou p codes app ly to tolerance en tities. In addition to t he
grou p codes described h ere, see “Comm on Group Co des for En tities” on page
60 . For informat ion about ab breviations and formatting u sed in t h is table,see “Form attin g Conven tion s in Th is Referen ce” on page 6.
220, 230 DXF: Y and Z values of extrusion direction (optional)
100 Subclass marker (AcDbText)
73 Ver tical text just ification type (optional, defau lt = 0) : in teger codes (notbit-coded):0 = Baseline; 1 = Bott om; 2 = Middle; 3 = TopSee the Group 72 and 73 integer codes table for clarification
Group 72 and 73 integer codes
Group 73 Group 720 1 2 3 4 5
3 (top) TLeft TCenter TRight
2 (middle) MLeft MCenter MRight
1 (bottom) BLeft BCenter BRight
0 (baseline) Left Center Right Aligned Middle Fit
Text group codes (continued )
Group codes Description
![Page 112: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/112.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 112/188
106 | Chapter 6 ENTITIES Section
TRACE
Th e followin g grou p codes apply to trace ent ities. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For in form ation ab out abbreviation s an d form attin g used in t h is table, see“Form atting Con ventio n s in This Reference” on page 6.
Tolerance group codes
Group codes Description
100 Subclass marker (AcDbFcf)
3 Dimension style name
10 Insert ion point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of insertion point (in WCS)
1 St ring rep resent in g th e visual rep resent ation of th e t olerance
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
11 X-axis direct ion vector (in WCS)DXF: X value; APP: 3D vector
21, 31 DXF: Y and Z values of X-axis direction vector (in WCS)
Trace group codes
Group codes Description
100 Subclass marker (AcDbTrace)
10 First corner (in OCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of first corner (in OCS)
11 Second corner (in OCS)DXF: X value; APP: 3D point
![Page 113: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/113.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 113/188
VERTEX | 107
VERTEX
The followin g group co des apply to vertex en tities. In addition to th e grou p
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
21, 31 DXF: Y and Z values of second corner (in OCS)
12 Third corner (in OCS)
DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of third corner (in OCS)
13 Fourth corner (in OCS)DXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of fourth corner (in OCS)
39 Thickness (optional; default = 0)
210 Ext rusion direct ion (optional; default = 0, 0, 1)DXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction (optional)
Vertex group codes
Group codes Description
100 Subclass marker (AcDbVertex)
100 Subclass marker (AcDb2dVertex or AcDb3dPolylineVertex)
10 Locat ion 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 when3D)
40 Start ing width (optional; default is 0)
Trace group codes (continued )
Group codes Description
![Page 114: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/114.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 114/188
108 | Chapter 6 ENTITIES Section
Every vertex th at is part of a polyface m esh h as its vertex flag 128 bit set. If
th e en tity sup plies th e coordinat e of a vertex of th e m esh , its 64 bit is set as
well, and th e 10, 20, 30 groups give the vertex coord inate. The vertex ind ex
values are determ ined b y th e order in wh ich the vertex ent ities appear with in
the polyline, with th e first bein g num bered 1.
If th e vertex defines a face of th e mesh , 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 the face
entity are irrelevant and are always written as 0 in a DXF file. The vertex
in dexes th at defin e the m esh are given by 71, 72, 73, and 74 group codes, th e
values of wh ich specify on e of th e previously defin ed vertexes by ind ex. If the
41 Ending width (opt ional; default is 0)
42 Bulge (op tional; default is 0). The bulge is the tangent of one fourth the
included angle for an arc segment, made negative if the arc goesclockwise from the start point to the endpoint. A bulge of 0 indicates astraight segment, and a bulge of 1 is a semicircle
70 Vertex flags:1 = Extra vertex created by curve-fit t ing2 = Curve-fit tangent defined for this vertex. A curve-fit tangentdirection of 0 may be omit ted from DXF outpu t but is significant if thisbit is set4 = Not used8 = Spline vertex created by spline-fitting16 = Spline frame control point32 = 3D polyline vertex64 = 3D polygon mesh128 = Polyface mesh vertex
50 Curve fit tangent direct ion
71 Po lyface mesh vertex index. Opt ional. Present only if nonzero
72 Po lyface mesh vertex index. Opt ional. Present only if nonzero
73 Po lyface mesh vertex index. Opt ional. Present only if nonzero
74 Polyface mesh vertex index. Opt ional. Present only if nonzero
Vert ex group codes (continued )
Group codes Description
![Page 115: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/115.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 115/188
VIEWPORT | 109
in dex is n egative, th e edge th at begins with th at vertex is in visible. The first
0 vertex marks th e en d of th e vertices of th e face.
VIEW PORT
The followin g grou p codes apply to viewport en tities. In addition to th e
grou p codes described h ere, see “Comm on Group Co des for En tities” on page
60 . For informat ion about ab breviations and formatting u sed in t h is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
Viewport group codes
Group codes Description
100 Subclass marker (AcDbViewport)
10 Center point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of center point (in WCS)
40 Width in paper space units
41 Height in paper space units
68 Viewport status field: –1 = On, but is fully off screen, or is one of the viewports that is notactive because the $MAXACTVP count is currently being exceeded.0 = Off
<positive value > = On and active. The value indicates the order ofstacking for the viewports, where 1 is the act ive viewport, 2 is the next,and so forth
69 Viewport ID
12 View center point (in DCS)DXF: X value; APP: 2D point
22 DXF: View center point Y value (in DCS)
![Page 116: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/116.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 116/188
110 | Chapter 6 ENTITIES Section
13 Snap base pointDXF: X value; APP: 2D point
23 DXF: Snap base point Y value
14 Snap spacingDXF: X value; APP: 2D point
24 DXF: Snap spacing Y value
15 Grid spacingDXF: X value; APP: 2D point
25 DXF: Grid spacing Y value
16 View direction vector (in WCS)
DXF: X value; APP: 3D vector
26, 36 DXF: Y and Z values of view direction vector (in WCS)
17 View target point (in WCS)DXF: X value; APP: 3D vector
27, 37 DXF: Y and Z values of view t arget point ( in WCS)
42 Perspective lens length
43 Front clip plane Z value
44 Back clip plane Z value
45 View height (in model space units)
50 Snap angle
51 View twist angle
72 Circle zoom percent
341 Frozen layer object ID/handle (mult iple ent ries may exist ) (optional)
Viewport group codes (continued )
Group codes Description
![Page 117: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/117.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 117/188
VIEWPORT | 111
90 Viewport status bit coded flags:1 (0x1) = Enables perspective mode2 (0x2) = Enables front clipping
4 (0x4) = Enables back clipping8 (0x8) = Enables UCS follow16 (0x10) = Enables front clip not at eye32 (0x20) = Enables UCS icon visibility64 (0x40) = Enables UCS icon at origin128 (0x80) = Enables fast zoom256 (0x100 ) = Enables snap mode512 (0x200) = Enables grid mode1024 (0x400) = Enables isometric snap style2048 (0x800) = Enables hide plot mode4096 (0x1000) = kIsoPairTop. If set and kIsoPairRight is not set, thenisopair top is enabled. If both kIsoPairTop and kIsoPairRight are set,then isopair left is enabled8192 (0x2000) = kIsoPairRight. If set and kIsoPairTop is not set, then
isopair right is enabled16384 (0x4000) = Enables viewport zoom locking32768 (0x8000) = Currently always enabled65536 (0x10000) = Enables non-rectangular clipping131072 (0x20000) = Turns the viewport off
340 Hard-pointer ID/handle to enti ty that serves as the viewport’s cl ippingboundary (only present if viewport is non-rectangular)
1 Plot style sheet name assigned to this viewport
281 Render mode:0 = 2D Optimized (classic 2D)
1 = Wireframe2 = Hidden line3 = Flat shaded4 = Gouraud shaded5 = Flat shaded with wireframe6 = Gouraud shaded with wireframe
All rendering modes other than 2D Optimized engage the new 3Dgraphics pipeline. These values directly correspond to the SHADEMODEcommand and the AcDbAbstractViewTableRecord::RenderMode enum
71 UCS per viewport flag:0 = The UCS will not change when this viewport becomes active.1 = This viewport stores its own UCS which wil l become the current
UCS whenever the viewport is activated
Viewport group codes (continued )
Group codes Description
![Page 118: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/118.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 118/188
112 | Chapter 6 ENTITIES Section
NOT E The ZOOM XP factor is calculated with the following formula:
group_41 / group_45 (or pspace_height / mspace_height).
74 Display UCS icon at UCS origin flag:
Controls whether UCS icon represents viewport UCS or current UCS
(these will be different if UCSVP is 1 and viewport is not active).However, this field is currently being ignored and the icon alwaysrepresents the viewport UCS
110 UCS originDXF: X value; APP: 3D point
120, 130 DXF: Y and Z values of UCS origin
111 UCS X -axisDXF: X value; APP: 3D vector
121, 131 DXF: Y and Z values of UCS X -axis
112 UCS Y -axisDXF: X value; APP: 3D vector
122, 132 DXF: Y and Z values of UCS Y -axis
345 ID/handle of AcDbUCSTableRecord i f UCS is a named UCS. I f notpresent, then UCS is unnamed
346 ID/handle of AcDbUCSTableRecord of base UCS i f UCS is orthographic(79 code is non-zero). If not p resent and 79 code is non-zero, then baseUCS is taken t o be WORLD
79 Orthographic type of UCS0 = UCS is not orthographic;1 = Top; 2 = Bottom;3 = Front; 4 = Back;5 = Left; 6 = Right
146 Elevat ion
Viewport group codes (continued )
Group codes Description
![Page 119: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/119.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 119/188
XLINE | 113
XLINE
The followin g grou p codes apply to xlin e entities. In add ition to th e group
codes described here, see “Com m on Group Cod es for En tities” on p age 60.
For inform ation about abbreviation s and form atting u sed in th is table, see
“Form atting Con ventio n s in This Reference” on page 6.
Xline group codes
Group codes Description
100 Subclass marker (AcDbXline)
10 First point (in WCS)DXF: X value; APP: 3D point
20, 30 DXF: Y and Z values of first point (in WCS)
11 Unit direction vector (in WCS)DXF: X value; APP: 3D vector
21, 31 DXF: Y and Z values of unit direction vector (in WCS)
![Page 120: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/120.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 120/188
114 | Chapter 6 ENTITIES Section
![Page 121: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/121.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 121/188
11
OBJECTS Section
Th is ch apter present s th e group codes that ap ply to n on -
graph ical ob ject s. Th ese cod es are foun d in t h e OBJECTS
sect ion of a DXF™ file an d are u sed by Auto LISP® an d
ObjectARX™ applications in entity definition lists.
In this chapter
s OBJECT Section Group Co
s Common Group Codes for
Objects
s ACAD_PROXY_OBJECT
s ACDBDICTIONARYWDFL
s ACDBPLACEHOLDER
s DICTIONARY
s DICTIONARYVAR
s DIMASSOC
s GROUP
s IDBUFFER
s IMAGEDEF
s IMAGEDEF_REACTOR
s LAYER_INDEX
s LAYER_FILTER
s LAYOUT
s MLINESTYLE
s OBJECT_PTR
s PLOTSETTINGS
s RASTERVARIABLES
s SPATIAL_INDEX
s SPATIAL_FILTER
s SORTENTSTABLE
s VLA_PROJECT
s XRECORD
7
![Page 122: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/122.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 122/188
116 | Chapter 7 OBJECTS Section
OBJECT Section Group Codes
Objects are similar to ent ities, except th at th ey h ave n o graph ical or geom et-
ric m ean ing. All objects th at are n ot en tities or sym bol table records or sym -
bol tables are sto red in t h is section . This section represen ts a ho m ogeneou s
h eap o f ob jects with t opological orderin g of objects by own ership, such t ha tthe owners always appear before the objects they own.
Object Ownership
Th e root own er of m ost objects app earin g in th e OBJECTS section is th e
n am ed object diction ary, which is, therefore, always th e first object th at
appears in th is section. O bjects th at are n ot owned by th e n amed object dic-
tiona ry are own ed by oth er ent ities, objects, or sym bol table en tries. Objects
in th is section m ay be defin ed by AutoCAD® or by app lication s with access
to ObjectARX™ API. The D XF nam es of application -defin ed o bject types
sh ou ld always be associated with a class n am e in t h e CLASS section of th e
DXF file, or else th e object record cann ot be bou n d to th e application th at
will in terpret it .
As with oth er diction aries, th e n am ed-ob ject diction ary record co nsists solely
of associated pairs of entr y n am es and h ard own ersh ip p oin ter referen ces to
th e associated ob ject.
To avoid n am e collision between objects, developers shou ld always use th eir
registered developer prefix for their entries.
Common Group Codes for Objects
Th e followin g table sh ows grou p codes th at app ly to virtually all non graph -
ical objects. Wh en you refer to a t able of group codes by object type, a list of
codes associated a specific object, keep in m ind t h at th e codes shown h ere can
also be present. Som e of th e grou p codes are in clud ed with an object on ly if
th e object ha s n on default values for tho se group code propert ies. For infor-
m ation about ab breviations and form atting used in t h is table, see “Format-
ting Con ven tion s in Th is Referen ce” on page 6.
![Page 123: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/123.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 123/188
![Page 124: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/124.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 124/188
118 | Chapter 7 OBJECTS Section
The 92 field is no t used for AcDbProxyOb ject. Objects of th is class never h ave
graphics.
ACDBDICTIONARYW DFLT
The followin g grou p cod es are used b y ACDBDICTIONARYWDFLT ob jects. In
addition to th e grou p codes described h ere, see “Comm on Group Codes for
Objects” on page 116. For information about a bbreviations and form atting
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
ACAD_PROXY_OBJECT group codes
Group codes Description
100 DXF™: Subclass marker (AcDbProxyObject)
90 DXF: Proxy object class ID (always 499)
91 DXF: Applicat ion object ’s class ID. Class IDs are based on the order ofthe class in the CLASSES section. The first class is given the ID of 500,the next is 501, and so on
93 DXF: Size of object data in bits
310 DXF: Binary ob ject data (mult ip le ent ries can appear) (optional)
330 or 340 or350 or 360
DXF: An object ID (multiple entries can appear) (optional)
94 DXF: 0 (indicates end of object ID section)
95 DXF: Object drawing format w hen it b eco mes a p ro xy (a 32-b itunsigned integer):Low word is AcDbDwgVersionHigh word is MaintenanceReleaseVersion
70 DXF: Original custom object data format:0 = DWG format1 = DXF format
![Page 125: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/125.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 125/188
ACDBPLACEHOLDER | 119
ACDBPLACEHOLDER
The followin g group codes a re used by th e ACDBPLACEHOLDER objects. In
addition to th e grou p codes described h ere, see “Comm on Group Codes for
Objects” on page 116. For information about a bbreviations and form atting
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
ACDBDICTIO NARYW DFLT group codes
Group codes Description
0 Object name (ACDBDICTIONARYWDFLT)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-owner ID/handle to owner object
100 Subclass marker (AcDbDictionary)
281 Duplicate record cloning flag (determ ines how to merge dup licateentries):0 = Not applicable1 = Keep existing2 = Use clone3 = <xref>$0$<name>4 = $0$<name>5 = Unmangle name
3 Entry name (one for each entry)
350 Soft-owner ID/handle to entry object (one for each entry)
100 Subclass m arker (AcDbDictionaryWit hDefault)
340 Hard poin ter to default ob ject ID/handle (current ly on ly used for plotstyle dictionary’s default entry, named “ Normal” )
![Page 126: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/126.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 126/188
120 | Chapter 7 OBJECTS Section
DICTIONARY
The followin g grou p cod es are used by DICTIONARY ob jects. In ad ditio n t o
th e group codes described h ere, see “Com m on Group Codes for Objects” on
page 116. For information about abbreviation s an d form atting used in th is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
ACDBPLACEHOLDER group codes
Group codes Description
0 Object name (ACDBPLACEHOLDER)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-pointer ID/ handle to owner object
DICT IO NARY group codes
Group codes Description
0 Object name (DICTIONARY)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-pointer ID/ handle to owner object
100 Subclass marker (AcDbDictionary)
280 Hard owner f lag. If set to 1, indicates that elements of the dict ionary areto be treated as hard owned
![Page 127: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/127.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 127/188
DICTIONARYVAR | 121
AutoCAD® m ain tains item s such as m lin e styles an d group definition s as
objects in diction aries. Th e following section s describe th e AutoCAD object
grou p codes main tained in diction aries; h owever, ot her app lication s are freeto create an d u se th eir own d iction aries as they see fit. The p refix " A C AD _ " is
reserved for use by AutoCAD applications.
DICTIONARYVAR
The followin g group codes are used by DICTIONARYVAR objects. In add ition
to t h e grou p codes described h ere, see “Com m on G roup Codes for Objects”
on p age 116. For information about abbreviations an d form atting used in
th is table, see “Form atting Con ventio ns in Th is Reference” on page 6.
281 Duplicate record cloning flag (determ ines how to merge dup licateentries):0 = Not applicable
1 = Keep existing2 = Use clone3 = <xref>$0$<name>4 = $0$<name>5 = Unmangle name
3 Entry name (one for each entry) (opt ional)
350 Soft-owner ID/handle to entry object (one for each entry) (option al)
DICT IO NARYVAR group codes
Group codes Description
0 Object name (DICTIONARYVAR)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary(ACDBVARIABLEDICTIONARY)
102 End of persist ent reactors group, always “ }”
DICTIONARY group codes (continued )
Group codes Description
![Page 128: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/128.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 128/188
122 | Chapter 7 OBJECTS Section
DICTIONARYVAR ob jects are used b y Aut oCAD as a m ean s to store n am ed
values in t h e database for s e t v a r / g e t v a r purposes with out th e n eed t o add
ent ries to th e DXF™ HEADER section. Currently, the system variables that
are stored as DICTIONARYVAR objects are: DIMADEC, DIMDSEP,
INDEXCTL, PROJECTNAME, an d XCLIPFRAME.
DIMASSOCTh e followin g group cod es are used by DIMASSOC o bjects. In addition to t h e
grou p codes described h ere, see “Comm on Group Cod es for Objects” on page
116 . For informat ion about ab breviations and forma ttin g used in th is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
100 Subclass m arker (DictionaryVariables)
280 Object schema number (currently set to 0)
1 Value of variable
DIMASSOC group codes
Group codes Description
0 Object name (DIMASSOC)
5 Handle
102 Persistent reactors group; always “ {ACAD_REACTORS}”
330 Soft-pointer ID
100 Subclass marker (AcDbDimAssoc)
330 ID of dimension object
DICTIONARYVAR group codes (continued )
Group codes Description
![Page 129: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/129.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 129/188
DIMASSOC | 123
DIMASSOC objects implement associative dimensions by specifying anassociation bet ween a dim en sion object an d drawin g geom etry ob jects. An
90 Associativity flag1 = First point reference2 = Second point reference
4 = Third point reference8 = Fourth point reference
70 Trans-space flag (t rue/false)
71 Rotat ed Dimension type (parallel, perpendicular)
1 Class name (AcDbOsnapPointRef)
72 Object Osnap type (Start, End, Mid, Cen, etc.)
331 ID of main object (geometry)
73 SubentType of main object (edge, face)
91 GsMarker of main object (index)
301 Handle (string) of Xref object
40 Geometry parameter for Near Osnap
10 Osnap point in WCS; X value
20 Osnap point in WCS; Y value
30 Osnap point in WCS; Z value
332 ID of intersect ion object (geometry)
74 Subent Type of intersction object (edge/ face)
92 GsMarker of intersection object (index)
302 Handle (st ring) of intersect ion Xref object
75 hasLastPointRef flag (true/false)
DIMASSOC group codes (continued )
Group codes Description
![Page 130: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/130.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 130/188
124 | Chapter 7 OBJECTS Section
associative dim en sion is a dim en sion th at will autom atically updat e when
th e associated geom etry is modified.
GROUPTh e followin g grou p codes are used by GROUP objects. In add ition to t h e
grou p codes described h ere, see “Comm on Group Cod es for Objects” on page
116 . For informat ion about ab breviations and forma ttin g used in th is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
GROUP group codes
Group codes Description
0 Object name (GROUP)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”(persistent reactors group appears in all d ictionaries except the maindictionary)
330 Soft-pointer ID/handle to owner dict ionary. For GROUP objects this isalways the ACAD_GROUP entry of the named object dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-pointer ID/ handle to owner object
100 Subclass marker (AcDbGroup)
300 Group descript ion
70 “ Unnamed” flag: 1 = Unnamed; 0 = Named
71 Selectabilit y flag: 1 = Select able; 0 = Not select able
340 Hard-pointer handle to en tity in group (one ent ry per ob ject )
![Page 131: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/131.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 131/188
![Page 132: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/132.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 132/188
126 | Chapter 7 OBJECTS Section
IMAGEDEF_REACTOR
The following grou p codes are u sed b y IMAGEDEF_REACTOR ob jects. In
addition to th e grou p codes described h ere, see “Comm on Group Codes for
Objects” on page 116. For information about a bbreviations and form atting
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
IMAGEDEF group codes
Group codes Description
0 Object name (IMAGEDEF)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-po in ter ID/hand le to the ACAD_IMAGE_DICT dictionary
330 Sof t-po in ter ID/handle to IMAGEDEF_REACTOR object (multipleentries; one for each instance)
102 End of persist ent reactors group, always “ }”
100 Subclass m arker (AcDbRast erImageDef)
90 Class version. 0 = R14 version
1 File name of image
10 Image size in pixelsDXF: U value; APP: 2D point (U and V values)
20 DXF: V value of image size in pixels
11 Default size of one pixel in AutoCAD unitsDXF: U value; APP: 2D point (U and V values)
12 DXF: V value of pixel size
280 Image-is-loaded flag. 0 = Unloaded; 1 = Loaded
281 Resolut io n u nits. 0 = N o u nits; 2 = Cen timet ers; 5 = Inch
![Page 133: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/133.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 133/188
LAYER_INDEX | 127
LAYER_INDEX
The followin g group codes are u sed by LAYER_INDEX objects. In addit ion to
th e group codes described h ere, see “Com m on Group Codes for Objects” on
page 116. For information about abbreviation s an d formattin g used in t h is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
IMAGEDEF_REACTO R group codes
Group codes Description
0 Object name (IMAGEDEF_REACTOR)
5 Handle
100 Subclass marker (AcDbRasterImageDefReactor)
90 Class version. 2 = R14 version
330 Object ID for associated image object
LAYER_IN DEX group codes
Group codes Description
0 Object name (LAYER_INDEX)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
100 Subclass marker (AcDbIndex)
40 Time stamp (Julian date)
100 Subclass marker (AcDbLayerIndex)
8 Layer name (multiple entries may exist)
360 Hard owner reference to IDBUFFER (mult ip le entr ies may exist)
90 Number o f ent ries in the IDBUFFER list (mult iple ent ries may exist )
![Page 134: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/134.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 134/188
128 | Chapter 7 OBJECTS Section
LAYER_FILTER
The followin g grou p cod es are used by LAYER_FILTER ob jects. In a dd itio n to
th e group codes described h ere, see “Com m on Group Codes for Objects” on
page 116. For information about abbreviation s an d form atting used in th is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
LAYOUTThe following group codes are used by LAYOUT objects. In addition to the
grou p codes described h ere, see “Comm on Group Cod es for Objects” on page
116 . For informat ion about ab breviations and forma ttin g used in th is table,
see “Form attin g Conven tion s in Th is Referen ce” on page 6.
LAYER_FILTER group codes
Group codes Description
0 Object name (LAYER_FILTER)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
100 Subclass marker (AcDbFilter)
100 Subclass marker (AcDbLayerFilter)
8 Layer name (multiple entries may exist)
LAYOUT group codes
Group codes Description
0 Object name (LAYOUT)
5 Handle
![Page 135: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/135.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 135/188
LAYOUT | 129
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-pointer ID/ handle to owner object
100 Subclass marker (AcDbPlotSett ings)
plotsettings object group codes
For group codes and descript ions following the AcDbPlotSettingsmarker, see “ PLOTSETTINGS” on page 133
100 Subclass marker (AcDbLayout)
1 Layout name
70 Flag (bit -coded) to control the following:1 = Indicates the PSLTSCALE value for this layout when this layout iscurrent2 = Indicates the LIMCHECK value for t his layout when th is layout iscurrent
71 Tab order. This number is an ordinal indicat ing this layout’s ordering inthe tab cont rol that is attached to the AutoCAD drawing framewindow. Note that the “Model” tab always appears as the first tabregardless of its tab order
10 Min imum lim its for th is layout (defined by LIMMIN wh ile this layout is
current)DXF: X value; APP: 2D point
20 DXF: Y value of minimum limits
11 Maximum lim it s for this layou t (defined by LIMMAX while this layou t iscurrent):DXF: X value; APP: 2D point
21 DXF: Y value of maximum limits
12 Insert ion base point for this layout (defined by INSBASE while thislayout is current):
DXF: X value; APP: 3D point
22, 32 DXF: Y and Z values of the insertion base poin t
LAYOUT group codes (continued )
Group codes Description
![Page 136: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/136.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 136/188
130 | Chapter 7 OBJECTS Section
14 Min imum extents for th is layout (defined by EXTMIN wh ile this layou tis current) :DXF: X value; APP: 3D point
24, 34 DXF: Y and Z values of the minimum extents
15 Maximum extents for this layout (defined by EXTMAX while this layoutis current) :DXF: X value; APP: 3D point
25, 35 DXF: Y and Z values of the maximum extents
146 Elevat ion
13 UCS originDXF: X value; APP: 3D point
23, 33 DXF: Y and Z values of UCS origin
16 UCS X -axisDXF: X value; APP: 3D vector
26, 36 DXF: Y and Z values of UCS X -axis
17 UCS Y -axisDXF: X value; APP: 3D vector
27, 37 DXF: Y and Z values of UCS Y -axis
76 Orthographic type of UCS0 = UCS is not orthographic;1 = Top; 2 = Bottom;3 = Front; 4 = Back;5 = Left; 6 = Right
330 ID/handle to this layout ’s associated paper space block table record
331 ID/handle to the viewpor t that was last act ive in th is layout when thelayout was current
345 ID/handle of AcDbUCSTableRecord i f UCS is a named UCS. I f notpresent, then UCS is unnamed
346 ID/handle of AcDbUCSTableRecord of base UCS i f UCS is orthographic(76 code is non-zero). If not p resent and 76 code is non-zero, then baseUCS is taken t o be WORLD
LAYOUT group codes (continued )
Group codes Description
![Page 137: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/137.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 137/188
MLINESTYLE | 131
MLINESTYLE
The followin g group codes ar e used b y MLINESTYLE objects. In add ition to
th e group codes described h ere, see “Com m on Group Codes for Objects” on
page 116. For information about abbreviation s an d formattin g used in t h is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
MLINESTYLE group codes
Group codes Description
0 Object name (MLINESTYLE)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”(persistent reactors group appears in all d ictionaries except the main
dictionary)
330 Soft-pointer ID/handle to owner dict ionary. For MLINESTYLE objectsthis is always the ACAD_MLINESTYLE entry of the named objectdictionary
102 End of persist ent reactors group; always “ }”
100 Subclass marker (AcDbMlineStyle)
2 Mline style name
70 Flags (bit-coded):
1 =Fill on2 = Display miters16 = Start square end (line) cap32 = Start inner arcs cap64 = Start round (out er arcs) cap256 = End square (line) cap512 = End inner arcs1024 = End round (outer arcs) cap
3 St yle descript ion (string, 255 charact ers maxim um)
62 Fill color (integer, default = 256)
51 Start angle (real, default is 90 degrees)
52 End angle (real, default is 90 degrees)
71 Number of elements
![Page 138: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/138.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 138/188
![Page 139: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/139.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 139/188
PLOTSETTINGS | 133
PLOTSETTINGS
The followin g group codes ar e used b y PLOTSETTINGS objects. In add ition
to t h e grou p codes described h ere, see “Com m on G roup Codes for Objects”
on p age 116. For information about abbreviations an d form atting used in
th is table, see “Form atting Con ventio ns in Th is Reference” on page 6.
1001 Begin ASE xdata (DC015)
PLOTSETTINGS group codes
Group codes Description
0 Object name (PLOTSETTINGS)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-pointer ID/ handle to owner object
100 Subclass marker (AcDbPlotSett ings)
1 Page Setup name
2 Name of system printer or plot configuration file
4 Paper size
6 Plot view name
40 Size, in millimeters, of unpr intab le marg in on the left side of the paper
41 Size, in millimeters, of unprintab le marg in on the bottom of the paper
42 Size, in millimeters, o f unpr intab le margin on the r ight side of the paper
43 Size, in millimeters, of unprintab le marg in on the top of the paper
OBJECT _PTR group codes (continued )
Group codes Description
![Page 140: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/140.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 140/188
134 | Chapter 7 OBJECTS Section
44 Plot paper size: physical paper widt h in millimet ers
45 Plot paper size: physical paper height in millimet ers
46 Plot origin: X value of origin offset in millimeters
47 Plot origin: Y value of origin offset in m illimeters
48 Plot window area: X value of lower left window corner
49 Plot window area: Y value of upper right window corner
140 Plot window area: X value of lower left window corner
141 Plot window area: Y value of upper right window corner
142 Num erat or of custom prin t scale: real world (pap er) u nits
143 Denominator of custom print scale: drawing unit s
70 Plot layout flag:1 = PlotViewportBorders2 = ShowPlotStyles4 = PlotCentered8 = PlotHidden16 = UseStandardScale32 = PlotPlotStyles64 = ScaleLineweights128 = PrintLineweights
512 = DrawViewportsFirst1024 = ModelType2048 = UpdatePaper4096 = ZoomToPaperOnUpdate8192 = Initializing16384 = PrevPlotInit
72 Plot paper units:0 = Plot in inches1 = Plot in millimeters2 = Plot in pixels
73 Plot rotation:
0 = No rotation1 = 90 d egrees counterclockwise2 = Upside down3 = 90 degrees clockwise
PLOTSETTIN GS group codes (continued )
Group codes Description
![Page 141: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/141.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 141/188
RASTERVARIABLES | 135
RASTERVARIABLESTh e follow ing grou p codes are used by RASTERVARIABLES ob ject s. In addi-
tion to th e grou p codes described h ere, see “Comm on Group Codes for
Objects” on page 116. For information about a bbreviations and form atting
used in t h is table, see “Form atting Con vention s in Th is Referen ce” on page 6.
74 Plot t ype (port ion of paperspace to out put to the media):0 = Last screen display1 = Drawing extents
2 = Drawing limit s3 = View specified by code 64 = Window specified by codes 48, 49, 140, and 1415 = Layout information
7 Current style sheet
75 Standard scale type:0 = Scaled to Fit1 = 1/ 128"=1'; 2 = 1/64"=1'; 3 = 1/32"=1'4 = 1/ 16"=1'; 5 = 3/ 32"=1'; 6 = 1/ 8"=1'7 = 3/ 16"=1'; 8 = 1/ 4"=1'; 9 = 3/ 8"=1'10 = 1/2"=1'; 11 = 3/ 4"=1'; 12 = 1"=1'13 = 3"=1'; 14 = 6"=1'; 15 = 1'=1'16= 1:1 ; 17= 1:2; 18 = 1:4; 19 = 1:8; 20 = 1:10; 21= 1:1622 = 1:20; 23 = 1:30; 24 = 1:40; 25 = 1:50; 26 = 1:10027 = 2:1; 28 = 4:1; 29 = 8:1; 30 = 10:1; 31 = 100:1; 3 2 = 1000:1
147 A f loat ing point scale factor that represents the standard scale valuespecified in code 75
148 Paper image origin: X value
149 Paper image origin: Y value
RASTERVARIABLES group codes
Group codes Description
0 Object name (RASTERVARIABLES)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
PLOTSETTIN GS group codes (continued )
Group codes Description
![Page 142: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/142.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 142/188
136 | Chapter 7 OBJECTS Section
SPATIAL_INDEX
The followin g grou p codes are used by SPATIAL_INDEX o bjects. In addit ion
to t h e grou p codes described h ere, see “Com m on G roup Codes for Objects”
on p age 116. For information about ab breviations an d form atting used in
th is table, see “Form atting Con ventio ns in This Reference” on page 6.
330 Soft-pointer ID/handle to owner dictionary. For a RASTERVARIABLESobject th is is always the ACAD_IMAGE_VARS entry of the named objectdictionary
102 End of persist ent reactors group, always “ }”
100 Sub class m arker (AcDbRast erVariables)
90 Class version. 0 = R14 version
70 Display-imag e-fram e flag. 0 = N o frame; 1 = Display frame
71 Image display qualit y (screen only). 0 = Draft ; 1 = High
72 AutoCAD units for insert ing images. This is what one Au toCAD un it isequal 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 = Mile
SPATIAL_IN DEX group codes
Group codes Description
0 Object name (SPATIAL_INDEX)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
100 Subclass marker (AcDbIndex)
RASTERVARIABLES group codes (continued )
Group codes Description
![Page 143: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/143.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 143/188
SPATIAL_FILTER | 137
The SPATIAL_INDEX is always wr itt en out em pty t o a DXF file. This ob ject
can be ign ored.
SPATIAL_FILTER
The followin g grou p codes are used b y SPATIAL_FILTER object s. In addit ion
to t h e grou p codes described h ere, see “Com m on G roup Codes for Objects”
on p age 116. For information about abbreviations an d form atting used in
th is table, see “Form atting Con ventio ns in Th is Reference” on page 6.
40 Timestamp (Julian date)
100 Subclass marker (AcDbSpat ialIndex)
SPATIAL_FILTER group codes
Group codes Description
0 Object name (SPATIAL_FILTER)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-po in ter ID/hand le to owner dictionary (SPATIAL)
102 End of persist ent reactors group, always “ }”
100 Subclass marker (AcDbFilter)
100 Subclass m arker (AcDbSpat ialFilter)
70 Number of points on the clip boundary2 = Rectangular clip boundary (lower-left and upper-right)greater than 2 = Polyline clip boundary
10 Clip boundary defin it ion point (in OCS) (always 2 or more) based on anxref scale of 1DXF: X value; APP: 2D point
20 DXF: Y value of boundary definition point (always 2 or more)
SPATIAL_INDEX group codes (continued )
Group codes Description
![Page 144: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/144.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 144/188
138 | Chapter 7 OBJECTS Section
SORTENTSTABLE
The followin g group cod es a re used b y SORTENTSTABLE ob jects. In add itio n
to t h e grou p codes described h ere, see “Com m on G roup Codes for Objects”
on p age 116. For information about ab breviations an d form atting used in
th is table, see “Form atting Con ventio ns in This Reference” on page 6.
210 Normal to the plane cont aining t he clip boundaryDXF: X value; APP: 3D vector
220, 230 DXF: Y and Z values of extrusion direction
11 Origin used to define the local coord inate system of the clip boundaryDXF: X value; APP: 3D point
21, 31 Origin used to define the local coordinate system of the cl ip boundaryDXF: Y and Z values
71 Clip boundary display enabled flag0 = Disabled; 1 = Enabled
72 Front clipping plane flag; 0 = No; 1 = Yes
40 Front clipping plane distance (if code 72 = 1)
73 Back clipping plane flag; 0 = No; 1 = Yes
41 Back clipping plane distance (if code 73 = 1)
40 4x3 t ransformat ion mat rix writt en out in column major o rd er. Th ismatrix is the inverse of the original block reference (insert entity)transformation. The original block reference transformation is the onethat is applied to all entities in the block when the block reference isregenerated (always 12 entries)
40 4x3 t ransformat ion mat rix writt en out in column major o rd er. Th is
matrix transforms points into the coordinate system of the clipboundary (12 entries)
SPATIAL_FILTER group codes (continued )
Group codes Description
![Page 145: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/145.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 145/188
![Page 146: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/146.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 146/188
140 | Chapter 7 OBJECTS Section
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 Objects” on
page 116. For information about abbreviation s an d form atting used in th is
table, see “Form att ing Con ven tion s in Th is Referen ce” on page 6.
VBA_PROJECT group codes
Group codes Description
0 Object name (VBA_PROJECT)
5 Handle
102 Start of persistent reactors group; always “{ACAD_REACTORS”
330 Soft-pointer ID/ handle to owner dictionary
102 End of persist ent reactors group, always “ }”
330 Soft-owner ID/handle to owner object
100 Subclass marker (AcDbVbaProject)
90 Num ber o f byt es of binary chun k dat a (cont ained in t he group code310 records that follow)
310 DXF™: Binary ob ject data (multiple entr ies containing VBA projectdata)
![Page 147: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/147.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 147/188
![Page 148: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/148.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 148/188
142 | Chapter 7 OBJECTS Section
![Page 149: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/149.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 149/188
![Page 150: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/150.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 150/188
144 | Chapter 8 THUMBNAILIMAGE Section
THUMBNAILIMAGE Section Group Codes
The followin g group codes are foun d in th e THUMBNAILIMAGE section . For
in form ation about abbreviations an d form atting used in t h is table, see “For-
m atting Con vention s in This Reference” on page 6.
THUMBNAILIMAGE group codes
Group codes Description
90 The numb er of byt es in t he imag e (and subsequen t binary ch unkrecords)
310 Preview image data (multiple l ines; 256 characters maximum per l ine)
![Page 151: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/151.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 151/188
14
Drawing Interchange File
Formats
Th is app en dix describes th e various file format s
AutoCAD® uses to interchan ge drawin g data with o th er
application s. Th e form ats p resen ted a re Drawin g
In terch an ge File (DXF™), bin ary DXF, Slide (SLD), an d
th e Slide Library (SLB) file form at s.
DXF files can be eith er ASCII or bin ary form ats. Because
ASCII DXF files are mo re com m on th an th e bin ary
form at, th e term DXF file is used to refer to ASCII DXF
files and th e term binary DX F file is used for th e binary
format.
In this chapter
s ASCII DXF Files
s Binary DXF Files
s Slide Files
s Slide Library Files
A
![Page 152: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/152.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 152/188
146 | Appendix A Drawing Interchange File Formats
ASCII DXF Files
This section describes th e form at o f ASCII DXF files. It con tain s inform ation
th at is need ed on ly if you write you r own program s to process DXF files or
work with en tity in format ion obt ained by Aut oLISP® an d Ob jectARX™
applications.
General DX F File Structure
Essentially a DXF file is compo sed of pa irs of cod es an d a ssociated values. The
codes, kno wn as group codes, indicate th e type of value th at follows. Usin g
th ese group code an d value pa irs, a DXF file is organized in to section s, com -
posed of records, wh ich are com po sed of a grou p code an d a dat a item . Each
grou p code an d value is on its own lin e in t he DXF file.
Each section starts with a grou p cod e 0 followed b y th e string, SECTION. Th is
is followed by a group code 2 an d a strin g indicating th e na m e of th e section(for exam ple, HEADER). Each section is com posed o f group codes an d va lues
th at defin e its element s. A section en ds with a 0 followed b y the strin g
ENDSEC.
It may b e h elpful to pro du ce a DXF file from a small drawin g, prin t it ou t,
and refer to it while readin g the in form ation presented in this section .
The overall organ ization of a DXF file is as follows:
s HEADER section. Con tains general information about th e drawing. It con -
sists of an AutoCAD data base version n um ber and a n um ber of system
variables. Each param eter con tains a variable nam e an d its associated
value.
s CLASSES section. Holds the in form ation for application -defined classes,
wh ose in stan ces appea r in t h e BLOCKS, ENTITIES, an d OBJECTS section s
of th e dat abase. A class defin ition is perman en tly fixed in class hierarchy.
s TABLES section. Con tains definition s for th e followin g sym bo l tab les.
APPID (application identification table)
BLOCK_RECORD (block referen ce tab le)
DIMSTYLE (dim ension style tab le)
LAYER (layer table)
LTYPE (linetype table)STYLE (text style table)
UCS (User Coordinate System table)
![Page 153: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/153.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 153/188
ASCII DXF Files | 147
VIEW (view table)
VPORT (viewport configuration table)
s BLOCKS section . Con tain s block definition an d drawing entities that m ake
up each block reference in th e drawing.
s ENTITIES section. Con tains th e graph ical objects (en tities) in th e drawing,
includin g block referen ces (insert en tities).s OBJECTS section. Con tain s the n ongraph ical objects in t he drawing. All
objects th at are n ot en tities or symbol table records or sym bol tables are
stored in th is section . Exam ples of en tries in t h e OBJECTS section are dic-
tionaries that contain m line styles and groups.
s THUMBNA ILIMAGE section. Con tain s the p review ima ge data for of the
drawing. This section is option al.
If you use th e Select O bjects opt ion of the SAVE and SAVEAS comm ands, the
resulting DXF file con tain s on ly th e ENTITIES section an d t he EOF m arker.
The ENTITIES section con tain s on ly th e objects you select for ou tpu t. If you
select an insert en tity, th e correspon ding block definition is n ot in clud ed in
the ou tput file.
Group Codes in DX F Files
Group codes an d t h e associated values defin e a specific aspect of an object or
ent ity. Th e lin e imm ediately followin g th e group code is th e associated value.
Th is value can be a a string, an in teger, or a floatin g-point value, such as the
X coordin ate of a poin t. Th e lin es followin g the secon d line of the grou p, if
any, are determined by th e group defin ition and the d ata associated with t h e
group.
Special group cod es are used as file separators, such as m arkers for t h e begin -n ing an d en d of section s, tables, and t h e end of the file itself.
En tities, objects, classes, tables and table en tries, an d file separat ors are in tro-
du ced with a 0 grou p code th at is followed by a nam e describing th e group .
The maximum DXF file string length is 256 characters. If your AutoCAD
drawing con tains strings th at exceed th is nu m ber, tho se strings are tru n cated
during SAVE, SAVEAS, an d WBLOCK. OPEN an d INSERT fail if your DXF file
con tain s strin gs th at exceed th is n um ber.
ASCII Control Characters in DX F Files
SAVEAS h an dles ASCII con trol ch aracters in text strings by expan ding t h e
character int o a caret (^ ) followed by th e app ropriate letter. For exam ple, an
ASCII Con trol-G (BEL, decim al code 7) is written a s ^G. If th e text itself
![Page 154: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/154.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 154/188
148 | Appendix A Drawing Interchange File Formats
con tain s a caret ch aracter, it is expand ed to caret, space (^ ). OPEN an d INSERT
perform th e com plemen tary con version .
Header Group Codes in DX F Files
Applications can retrieve the values of these variables with the AutoLISP
g e t v a r function.
The followin g is an exam ple of t he H EADER section of a DXF™ file:
Class Group Codes in DX F Files
The followin g is an exam ple of th e CLASSES section of a DXF file:
0SE C TI ON
2HE A DE R
Beginning of HEADER section
9$ < v a r i a b l e >< g r o u p c o d e >< v a l u e >
Repeats for each header variable
0E NDS E C End of HEADER section
0SE C TI ON
2C L A S S E S
Beginning of CLASSES section
0
C L A S S1
< c l a s s d x f r e c o r d >2
< c l a s s n a me >3
< a p p n a m e >9 0
< f l a g >2 8 0< f l a g >2 8 1< f l a g >
Repeats for each entry
0E NDS E C End of CLASSES section
![Page 155: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/155.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 155/188
ASCII DXF Files | 149
Symbol Table Group Codes in DX F Files
The followin g is an exam ple of the TABLES section o f a DXF file.
Symbol Table Example
This DXF sequence represents three full objects: the symbol table itself plus
two entries.
0SE C TI ON
2T A B L E S
Beginning of TABLES section
0T A B L E
2< t a b l e t y p e >
5< h a n d l e >1 0 0Ac D b S y mb o l T a b l e
7 0< ma x . e n t r i e s >
Common table group codes, repeats for each entry
0< t a b l e t y p e >
5< h a n d l e >1 0 0Ac D b S y mb o l T a b l e Re c o r d
.
. < d a t a >
.
Table entry data, repeats, for each tablerecord
0E N D T A B
End of tab le
0E NDS E C
End of TABLES section
0
T A B L E Indicates a symbol table entry
2
S T Y L E Text style symbol table entry. Exceptionto rule that code 0 fully defines type
![Page 156: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/156.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 156/188
150 | Appendix A Drawing Interchange File Formats
5
1 C STYLE table handle; sam e as for entities and other objects
7 0
3 Maximum num ber of STYLE table
records to follow (pre-Release 13 field) 1 0 0 1
A P P _ X APP_X has put xdata on a symboltable
1 0 4 0
4 2 . 0 Just a single floating-point number
0
S T Y L E Beginning of first element in the STYLE symbol table
5
3 A The first entry’s handle (DIMSTYLE entries will have 105 here)
2
E N T R Y _ 1 Th e first entry’s text nam e
7 0
6 4 Standard flag values
4 0
. 4 Text height
4 1
1 . 0 W idth scale factor 5 0
0 . 0 Oblique angle
7 1
0 Text generation flags
4 2
0 . 4 Last height used
3
B UF ON T S . T X T Primary font file name
![Page 157: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/157.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 157/188
![Page 158: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/158.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 158/188
152 | Appendix A Drawing Interchange File Formats
Blocks Group Codes in DX F Files
The followin g is an exam ple of t he BLOCKS section of a DXF file:
0SE C TI ON
2B L O C K S
Beginning of BLOCKS section
0B L OCK
5< h a n d l e >1 0 0Ac D b E n t i t y
8< l a y e r >1 0 0Ac D b B l o c k B e g i n
2< b l o c k n a me >
7 0< f l a g >
1 0< X v a l u e >
2 0< Y v a l u e >
3 0< Z v a l u e >
3< b l o c k n a me >
1< x r e f p a t h >
Begins each block entry (a block entitydefinition)
0
< e n t i t y t y p e >.. < d a t a >.
One entry for each entity definition
within the block
0E N D B L K
5< h a n d l e >1 0 0Ac D b Bl o c k E n d
End of each block entry (an endblk entity definition)
0E NDS E C
End of BLOCKS section
![Page 159: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/159.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 159/188
ASCII DXF Files | 153
Entity Group Codes in DXF Files
The followin g is an exam ple of th e ENTITIES section of a DXF file:
Object Group Codes in DX F Files
The followin g is an exam ple of t he O BJECTS section of a DXF file:
0SE C TI ON
2EN T I T I ES
Beginning of ENTITIES section
0< e n t i t y t y p e >
5< h a n d l e >3 3 0< p o i n t e r t o o w n e r >1 0 0Ac D b E n t i t y
8< l a y e r >1 0 0Ac D b < c l a s s n a me >
.
. < d a t a >
.
One entry for each entity definition
0E NDS E C
End of ENT ITIES section
0SE C TI ON
2OB J E C T S
Beginning of OBJECTS section
0DI C TI ONA RY
5< h a n d l e >1 0 0Ac D b D i c t i o n ar y
Beginning of named object dictionary(root d ictionary object)
3< d i c t i o n a r y n a me >3 5 0< h a n d l e o f c h i l d >
Repeats for each entry
![Page 160: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/160.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 160/188
154 | Appendix A Drawing Interchange File Formats
W riting a DX F Interface Program
Writing a program t h at com m un icates with AutoCAD by m eans of th e DXF
file app ears m ore difficult th an it actually is. Th e DXF format m akes it easy
to ign ore in form ation you don ’t n eed, wh ile readin g the information you do
need.
Reading a DX F File
The following ex am ple is a simp le Visual Basic program th at read s a DXF file
an d extracts specific codes and values from a given object in a given section .
0< o b j e c t t y p e >
.
. < d a t a >
.
Groups of object data
0E NDS E C
End of OBJECTS section
![Page 161: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/161.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 161/188
ASCII DXF Files | 155
' R e a d DX F e x t r a c t s s p e c i f i e d c o d e / v a l u e p a i r s f r o m a D XF f i l e .' T h i s f u n c t i o n r e q u i r e s f o u r s t r i n g p a r a me t e r s , a v a l i d DX F' f i l e n a me , a DXF s e c t i o n n a me , t h e n a me o f a n o b j e c t i n t h a t' s e c t i o n , a n d a c o mma d e l i mi t e d l i s t o f c o d e s .'F u n c t i o n Re a d DXF ( _
By V a l d x f F i l e As St r i n g , B y Va l s t r S e c t i o n A s S t r i n g , _ By V a l s t r O b j e c t As S t r i n g , By V a l s t r C o d e L i s t A s St r i n g )
D i m t mp Co d e , l a s t Ob j A s S t r i n gOp e n d x f F i l e F o r I n p u t As # 1' Ge t t h e f i r s t c o d e / v a l u e p a i rc o d e s = R e a d Co d e s' L o o p t h r o u g h t h e wh o l e f i l e u n t i l t h e " E OF " l i n eWh i l e c o d e s ( 1 ) < > " E OF "
' I f t h e g r o u p c o d e i s ' 0 ' a n d t h e v a l u e i s ' S EC T I ON' . .I f c o d es ( 0 ) = " 0 " A n d c o d e s ( 1 ) = " S ECT I O N" T h e n
' T h i s mu s t b e a n e w s e c t i o n , s o g e t t h e n e x t' c o d e / v a l u e p a i r .c o d e s = R e a d Co d e s ( )' I f t h i s s e c t i o n i s t h e r i g h t o n e . .I f c o d e s ( 1 ) = s t r S e c t i o n T h e n
' Ge t t h e n e x t c o d e / v a l u e p a i r a n d . .c o d e s = R e a d C o d e s' L o o p t h r o u g h t h i s s e c t i o n u n t i l t h e ' E ND S EC'Wh i l e c o d e s ( 1 ) < > " EN DSE C"
' Wh i l e i n a s e c t i o n , a l l ' 0 ' c o d e s i n d i c a t e' a n o b j e c t . I f y o u f i n d a ' 0 ' s t o r e t h e' o b j e c t n a me f o r f u t u r e u s e .I f c o d e s ( 0 ) = " 0 " T h e n l a s t Ob j = c o d e s ( 1 )' I f t h i s o b j e c t i s o n e y o u ' r e i n t e r e s t e d i nI f l a s t Ob j = s t r O b j e c t T h e n
' S u r r o u n d t h e c o d e w i t h c o mma st mp Co d e = " , " & c o d e s ( 0 ) & " , "' I f t h i s c o d e i s i n t h e l i s t o f c o d e s . .I f I n S t r ( s t r C o d e L i s t , t mp C o d e ) T h e n
' Ap p e n d t h e r e t u r n v a l u e .R e a d DX F = Re a d D XF & _
c o d es ( 0 ) & " = " & c o d e s ( 1 ) & v b Cr L fEn d I f
E n d I f' Re a d a n o t h e r c o d e / v a l u e p a i rc o d e s = R e a d Co d e s
We n dE n d I f
E l s ec o d e s = R e a d Co d e s
En d I fW e n dC l o s e # 1
En d F u n c t i o n
' Re a d Co d e s r e a d s t w o l i n e s f r o m a n o p e n f i l e a n d r e t u r n s a t wo i t e m' a r r a y , a g r o u p c o d e an d i t s v a l u e . A s l o n g a s a DX F f i l e i s r e a d' t wo l i n e s a t a t i me , a l l s h o u l d b e f i n e . Ho we v e r , t o ma k e y o u r' c o d e mo r e r e l i a b l e , y o u s h o u l d a d d s o me a d d i t i o n a l e r r o r a n d' s a n i t y c h e c k i n g .
![Page 162: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/162.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 162/188
156 | Appendix A Drawing Interchange File Formats
'F u n c t i o n Re a d Co d es ( ) A s Va r i a n t
D i m c o d e S t r , v a l S t r As S t r i n gL i n e I n p u t # 1 , c o d e S t rL i n e I n p u t # 1 , v a l S t r' T r i m t h e l e a d i n g a n d t r a i l i n g s p a c e f r o m t h e c o d eR e a d Co d es = Ar r a y ( T r i m( c o d e S t r ) , v a l S t r )
En d F u n c t i o n
W riting a DXF File
Writing a program th at creates a DXF file can be mo re difficult than on e th at
reads a DXF file, because you m ust m ain tain con sisten cy with in th e drawing
in ord er for Aut oCAD to fin d t h e file acceptable. Aut oCAD lets you om it
m an y item s in a DXF file an d still obtain a usable drawin g.
s Th e ent ire HEADER section can be om itted if you don ’t set h eader
variables.
s An y of th e t ables in t h e TABLES section can be om itted if you d on ’t n eed
to m ake en tries, an d th e entire TABLES section can be dro pp ed if no th in g
in it is required.s If you define any linetypes in the LTYPE table, this table must appear
befo re t h e LAYER tab le.
s If no block definitions are used in the drawing, the BLOCKS section can
be omitted.
s If presen t, t h e BLOCKS section m ust ap pear b efore th e ENTITIES section.
s Within th e ENTITIES section, you can reference layer nam es even th ou gh
you ha ven ’t d efined th em in th e LAYER table. Such layers are autom ati-
cally created with color 7 an d th e CONTINUOUS linetype.
s The EOF item m ust be present at th e en d of file.
![Page 163: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/163.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 163/188
ASCII DXF Files | 157
The followin g Visual Basic subro utin e con structs a DXF file represent ing a
polygon.
' Wr i t e DXF P o l y g o n c r e a t e s a mi n i ma l D X F f i l e t h a t o n l y c o n t a i n s' t h e ENT I T I E S s e c t i o n . T h i s s u b r o u t i n e r e q u i r e s f i v e p a r a me t e r s ,' t h e DX F f i l e n a me , t h e n u mb e r o f s i d e s f o r t h e p o l y g o n , t h e X' a n d Y c o o r d i n a t e s f o r t h e b o t t o m e n d o f t h e r i g h t - mo s t s i d e
' ( i t s t a r t s i n a v e r t i c a l d i r e c t i o n) , a n d t h e l e n g t h f o r e a c h' s i d e . No t e t h a t b e c a u s e t h i s o n l y r e q u e s t s 2 D p o i n t s , i t d o e s' n o t i n c l u d e t h e Z c o o r d i n a t e s ( c o d e s 3 0 a n d 3 1 ) . T h e l i n e s a r e' p l a c e d o n t h e l a y e r " P o l y g o n . "'Su b Wr i t e DX F P o l y g o n ( _
d x f F i l e As S t r i n g , i S i d e s A s I n t e g e r , _ d b l X A s Do u b l e , d b l Y A s Do u b l e , d b l L e n A s Do u b l e )
D i m i A s I n t e g e rD i m d b l A1 , d b l A , d b l P I , d b l N X, d b l NY A s Do u b l eOp e n d x f F i l e F o r Ou t p u t A s # 1P r i n t # 1 , 0P r i n t # 1 , " S EC T I ON"P r i n t # 1 , 2
P r i n t # 1 , " E NT I T I E S"d b l P I = A t n ( 1 ) * 4d b l A 1 = ( 2 * d b l P I ) / i S i d e sd b l A = d b l PI / 2F o r i = 1 To i S i d e s
Pr i n t # 1 , 0Pr i n t # 1 , " L I NE"Pr i n t # 1 , 8Pr i n t # 1 , " Po l y g o n "Pr i n t # 1 , 1 0Pr i n t # 1 , d b l XPr i n t # 1 , 2 0Pr i n t # 1 , d b l Yd b l NX = d b l L e n * Co s ( d b l A) + d b l X
d b l NY = d b l L e n * S i n ( d b l A) + d b l YPr i n t # 1 , 1 1Pr i n t # 1 , d b l NXPr i n t # 1 , 2 1Pr i n t # 1 , d b l NYd b l X = d b l N Xd b l Y = d b l N Yd b l A = d b l A + d b l A 1
N e x t iP r i n t # 1 , 0P r i n t # 1 , " E ND S EC "P r i n t # 1 , 0P r i n t # 1 , " E OF "C l o s e # 1
E n d S u bAs lon g as a properly form atted item appears on the line on which t h e data
is ex pected, DXFIN accepts it. (Of cou rse, string item s should n ot h ave leading
spaces un less th ese are in ten ded to be part of th e strin g.) This BASIC program
![Page 164: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/164.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 164/188
158 | Appendix A Drawing Interchange File Formats
takes advan tage of th is flexibility in in pu t forma t an d d oes not gen erate a file
exactly like on e generated by Auto CAD.
In th e case of an error in using DXFIN to load, AutoCAD repo rts th e error with
a m essage ind icatin g the n ature of the error an d th e last line processed in t h e
DXF file before th e error was detected. This ma y not be th e lin e on wh ich th e
error o ccurred, especially in t h e case of errors such as th e om ission of required group s.
Binary DXF Files
The ASCII DXF file form at is a com plete rep resenta tion of an Auto CAD draw -
in g in an ASCII text form , an d is easily processed by o th er program s. In add i-
tion, Aut oCAD can produ ce or read a b inary form of the full DXF file an d
accept limited in put in ano ther binary file form at.
Th e SAVE an d SAVEAS com m and s provide a Bin ary option that writes bin aryDXF files. Such a file con tain s all of th e in form ation presen t in an ASCII DXF
file bu t in a m ore com pact form th at t akes, typically, 25 percent less file
space. It can be read an d written m ore q uickly (typically, five tim es faster) by
Aut oCAD. Un like ASCII DXF files, wh ich ent ail a trad e-off between size an d
floating-point accuracy, binary DXF files preserve all of the accuracy in the
drawing database. (AutoCAD Release 10 was the first version to support this
form of DXF file; it cannot be read by older versions.)
A binary D XF file begins with a 22-byte sent inel con sistin g of th e following:
Au t o C AD B i n a r y D XF < C R> < L F > < SU B> < NU L L >
Followin g th e sent inel are p airs (group , value) as in an ASCII DXF file but rep -
resen ted in binary form . Th e group co de is a 2-byte binary value (1-byte in
DXF files prior to Aut oCAD Release 14), an d t h e value th at follows is on e of
th e followin g:
s A 2-byte in teger with th e least significant b yte first and th e m ost sign ifi-
cant b yte last
s An 8-byte IEEE do uble-precision floatin g-point n um ber stored with t h e
least sign ifican t byte first an d th e m ost sign ifican t byt e last
s An ASCII string term inated by a 0 (NULL) byte
![Page 165: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/165.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 165/188
Slide Files | 159
Th e type of data following a group is determ in ed from th e group code by th e
same ru les used in d ecodin g ASCII DXF files. Translation of an gles to degrees
an d dates to fraction al Julian dat e represen tation is perform ed for binary
files, as well as for ASCII DXF files. The com m en t grou p, 99 9, is n ot used in
binary DXF files.
Exten ded data grou p codes are represen ted in binary DXF as a single bytewith t he value 255, followed by a 2-byte int eger value con tain in g th e actual
grou p code, followed b y the actu al value.
Exten ded da ta lon g (group code 1071) values occupy 4 bytes of data.
Exten ded da ta bina ry chun ks (group co de 1004) are represen ted as a sin gle-
byte, un signed in teger len gth , followed by th e specified n um ber of bytes of
ch un k data. For example, to t ransfer an extend ed d ata long group, th e fol-
lowin g values would ap pear, occupyin g 1, 2, an d 4 b ytes respectively.
2 5 5 Escape group code 1 0 7 1 True group code 9 9 9 9 9 9 Value for the 1071 group code
SAVEAS writes bina ry DXF files with th e same file type (.dxf) as for ASCII DXF
files. The OPEN an d INSERT com m an ds autom atically recognizes a binary file
by m ean s of its sentin el string. You n eed n ot iden tify it as a binar y file.
If th e OPEN an d INSERT commands encou nt er an erro r in a bin ary DXF file,
Aut oCAD reports th e byte address within th e file where th e error was
detected.
Slide Files
NOT E This information is for experienced programmers, and is subject to
change without notice.
Aut oCAD slide files are screen im ages written by th e MSLIDE command and
read by th e VSLIDE com m an d. This section d escribes the form at of slide files
for th e ben efit of developers who wish to incorp orate suppo rt for slides into
their programs.
A slide file consists of a h eader portion (31 bytes) an d o ne o r m ore data
records of variable length. All coordinates and sizes written to the slide file
reflect th e drawin g area of th e display device from wh ich th e slide was cre-
ated with point (0,0) located at th e lower-left corn er of th e drawing area. For
![Page 166: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/166.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 166/188
160 | Appendix A Drawing Interchange File Formats
Aut oCAD Release 9 an d later, th e slide file h eader con sists of th e followin g
fields:
Data records follow th e h eader. Each dat a record begins with a 2-byte field
who se h igh-order byte is th e record type. The rem ain der of the record m ay
be com po sed of 1-byte or 2-byt e fields as described in t h e followin g table. Todeterm ine wh eth er the 2-byte fields are writt en 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 header th at
is described in t h e previous table.
Slide file header
Field Bytes Description
ID string 17 “ AutoCAD Slide” CR LF ̂ Z NUL
Type indicator 1 Current ly set to 56 (decimal)
Level indicator 1 Current ly set to 2
High X dot 2 Width of the graphics area: 1, in pixels
High Y dot 2 Height of the graphics area: 1, in pixels
Aspect ratio 4 Draw ing area aspect rat io (ho rizon tal size/vertical size ininches), scaled by 10,000,000. This value is always written
with the least significant byte first
Hardware fill 2 Either 0 or 2 (value is unimportant)
Test num ber 2 A number (1234 hex) used t o det erm ine w het her all2-byte values in the slide were written with the high-orderbyte first (Intel 8086-family CPUs) or the low-order bytefirst (Motorola 68000-family CPUs)
Slide file data records
Record type(hex) Bytes Meaning Description
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 lastpoint
80-FA — Undefined Reserved for future use
![Page 167: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/167.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 167/188
Slide Files | 161
If a slide con tains an y vectors at all, a New color record will be th e first dat a
record . Th e order of th e vectors in a slide, and th e order of th e en dp oint s of
th ose vectors, m ay vary.
For exam ple, the followin g is an an n otated h ex du m p of a sim ple slide file
created on an IBM PC/AT with an IBM En h an ced Graph ics Adap ter. The slide
con sists of a wh ite diagon al lin e from th e lower-left corn er to th e upper-righ t
corner of t he d rawing area, a green vertical lin e near th e lower-left corn er,
an d a sma ll red rectan gle at th e lower-left corn er.
FB 5 Offset vector The low-order byte and the following threebytes specify the endpoints (from-X, from-Y,
to-X, to-Y) of a vector, in terms of offsets (–128to +127) from the saved last point . The adjustedfrom point is saved as the last point for use bysubsequent vectors
FC 2 End of file The low-order byte is 00
FD 6 Solid fill The low-order byte is always zero. The followingtwo 2-byte values specify t he X and Y coordinates of one vertex of a polygon to besolid filled. Three to ten such records occur insequence. A Solid fill record with a negative Ycoordinate indicates the start or end of such aflood sequence. In the start record, the Xcoordinate indicates the number of vertexrecords to follow
FE 3 Commonendpointvector
This is a vector starting at the last point . Thelow-order byte and t he following byte specifyto-X and to-Y in terms of offsets (–128 to +127)from the saved last point. The adjusted to pointis saved as the last point for use by subsequentvectors
FF 2 New color Subsequent vectors are to be drawn using thecolor number indicated by the low-order byte
Slide file data records (continued )
Record type(hex) Bytes Meaning Description
![Page 168: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/168.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 168/188
![Page 169: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/169.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 169/188
Slide Library Files | 163
Note that the o ld-format h eader does not con tain a t est num ber field. Th e
floating-point aspect ratio value and all 2-byte in tegers are writt en in th e
n ative form at of th e CPU th at was used to create th e file (for 8086-family
CPUs, IEEE do uble-precision, an d low -order byt e first). Old-form at slide files
are not portable across m achine t ypes, but th ey can be read by an y version
of Auto CAD run n ing on the sam e CPU type as th e CPU with which t h e slide
was created.
Slide Library FilesThis section describes th e form at o f Aut oCAD slide libraries (Release 9 and
later) for th e ben efit of developers who wish to in corporat e supp ort for slide
libraries in to t h eir pro gram s.
The gen eral forma t of a slide library is as follows:
" A u t o C AD S l i d e L i b r a r y 1 . 0 " CR L F ^ Z NUL NU L NUL NUL Header (32 bytes) One or more slide directory entries (36 bytes each) One or more slides (variable length)
Slide d irectory en tries have th e followin g form at:
Slide name (NUL term inated) (32 bytes) Address of slide within library file (4 bytes)
The slide ad dress is always written with t h e low-ord er byte first. Each slide t o
wh ich th e directory point s is a com plete slide file as described in th e previous
section. The en d o f the slide d irectory is sign ified by an en try with a n ull slide
n am e (first byt e is NUL). A slide library can conta in a m ixture of old-form at
an d n ew-format slides.
Hardware fill 2 Either 0 or 2 (value is unimportant)
Filler byte 1 Unused
Old slide file header (continued )
Field Bytes Description
![Page 170: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/170.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 170/188
164 | Appendix A Drawing Interchange File Formats
![Page 171: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/171.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 171/188
16
Advanced DXF Issues
Th is app en dix discusses th e advan ced con cepts related
to DXF™ grou p codes.
In this chapter
s Database Objects
s Persistent Inter-Object
Reference Handles
s Subclass Markerss Extension Dictionary and
Persistent Reactors
s Extended Data
s Object Coordinate Systems
(OCS)
s Arbitrary Axis Algorithm
B
![Page 172: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/172.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 172/188
166 | Appendix B Advanced DXF Issues
Database Objects
AutoCAD® drawings con sist largely of structured con tainers for datab ase
objects. Database objects each h ave th e followin g:
s Han dle whose value is un iqu e to th e drawin g/DXF file, and is constan t forth e lifetime of t he d rawing. This form at h as existed since AutoCAD
Release 10, but a s of Aut oCAD Release 13, h an dles are always en abled.
s Option al xdata t able, just as ent ities have h ad since Auto CAD Release 11.
s Option al persistent reactor table.
s Optional own ership point er to an exten sion dictionary, wh ich in turn
own s subobjects placed in it by an a pplication .
Sym bol tables an d symb ol table records are dat abase ob jects and, t h us, have
a han dle. Th ey can also h ave xdat a and persisten t reactors in th eir DXF
records.
Persistent Inter-Object Reference Handles
A set of group code ran ges perm it ob jects to directly specify references to
oth er objects with in t he sam e drawing/DXF file. Fou r ranges are pro vided for
th e four types of reference ha nd les th at you can specify:
s Soft-pointer handle
s Hard-poin ter hand le
s Soft-owner handle
s Hard-own er han dle
These han dle types are man ifested as en tity n am es in Aut oLISP®, as
ads_nam e values in Ob jectARX™ and as like-n am ed classes derived from
ObjectARX. These values are always maintained in insert, xref, and wblock
operation s such t h at references between objects in a set being copied are
updated t o p oint to the co pied o bjects, while references to ot her ob jects
remain un chan ged.
Also, a group code ran ge for “arbitrary” han dles is defined t o allow con ve-
n ient storage of han dle values th at are not con verted to en tity nam es and
th en tran slated in insert, xref, or wblock.
![Page 173: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/173.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 173/188
Persistent Inter-Object Reference Handles | 167
NOT E If you use 1005 xdata group codes to store handles, they are treated as
soft -point er 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 inObjectARX.
Pointer and Ownership References
A po int er is a referen ce th at ind icates usage but n ot p ossession or respon si-
bility for another object. Pointer references mean that the object uses the
oth er object in som e way, and sh ares access to it.
An o wn ersh ip referen ce mean s th at an ow ner ob ject is respon sible for th e
objects for which it h as an ow ner h an dle. Ownersh ip referen ces direct the
writin g of th e en tire DWG an d DXF files in a gen eric m an n er, such as begin-n ing from a few key root objects.
An object can h ave any n um ber of po int er references associated with it , but
it can h ave only on e owner.
Hard and Soft References
Hard references, wheth er th ey are pointer or o wner, protect an object from
being pu rged. Soft references do n ot.
In Aut oCAD, block definition s an d com plex entities are ha rd own ers of th eir
elem en ts. A sym bo l tab le an d d iction aries are soft o wn ers of their elemen ts.
Polylin e ent ities are hard o wn ers of their vertex and seqen d ent ities. Insert
entities are hard owners of their attrib and seqend entities.
Wh en establish ing a reference to an oth er object, it is recom m end ed th at you
thin k about wheth er the reference shou ld protect an object from th e PURGE
command.
Arbitrary Handles
Arbitrary h an dles are distinct in th at th ey are no t tran slated t o session persis-
ten t iden tifiers in ternally, to en tity na m es in AutoLISP, an d so on . Th ey arestored as ha ndles. Wh en translation of h and le values are translated in draw-
in g-m erge op eration s, arbitrary h an dles are ign ored.
![Page 174: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/174.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 174/188
168 | Appendix B Advanced DXF Issues
In all environm ents, arbitrary h andles can be exchanged for entity n ames of
the current drawing by m eans of th e h a n d e n t fun ctions. A comm on usage of
arbitrary han dles is to refer to ob jects in external DXF an d DW G files.
1005 Group Codes
1005 xdata group cod es have th e sam e behavior an d sem ant ics as soft point-ers, which m eans th at th ey are tran slated wh enever the h ost o bject is m erged
in to a different d rawing. However, 1005 item s are no t tran slated to session-
persistent identifiers, internally entity names in AutoLISP and ObjectARX.
They are stored as h an dles.
Subclass Markers
Wh en filin g a stream of group d ata, a sin gle object m ay be com po sed of sev-
eral filer m em bers, on e for each level of inh eritance wh ere filin g is don e.Since d erived classes an d levels of inh eritan ce can evolve separat ely, th e data
of each class filer m em ber m ust be segregated from ot her m em bers. Th is is
achieved u sin g subclass ma rkers.
All class filer m em bers are expected t o preced e th eir class-specific po rtion of
in stan ce data with a “subclass” m arker—a 100 grou p co de followed b y a
string with t h e actual n am e of the class. This does n ot affect th e state needed
to d efin e th e ob ject’s state, b ut it p rovides a m ean s for t h e DXF file pa rsers to
direct the group codes to th e correspo n ding app lication software.
For exam ple, an ob ject th at h as data from differen t d erived classes would be
represented as follows:
![Page 175: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/175.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 175/188
Subclass Markers | 169
9 9 9F OOGR A NDCHI L D, d e f i n e d b y c l a s s Ac D b So n Of S o n Of F o o , wh i c h9 9 9
i s d e r i v e d f r o m A c Db S o n Of F o o0
F O OGR A N D CH I L D5
C21 0 0A c D b F o o9 9 9Us e s 1 0 / 2 0 / 3 0 g r o u p c o d e s
1 01 . 1
2 02 . 3
3 07 . 31 0 0Ac D bS o n Of F o o9 9 9Al s o u s e s 1 0 / 2 0 / 3 0 g r o u p c o d e s , f o r a d i f f e r e n t p u r p o s e
1 01 . 1
2 02 . 3
3 07 . 31 0 0Ac D bS o n Of S o n Of F o o9 9 9Al s o u s e s 1 0 / 2 0 / 3 0 g r o u p c o d e s , f o r y e t a n o t h e r p u r p o s e
1 01 3 . 2
2 02 3 . 1
3 03 1 . 29 9 9No w f o r t h e Xd a t a1 0 0 1A P P _ 11 0 7 04 51 0 0 1A P P _ 21 0 0 41 8 A 5 B 3 E F 2 C 1 9 9 A
![Page 176: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/176.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 176/188
170 | Appendix B Advanced DXF Issues
Extension Dictionary and Persistent Reactors
Th e exten sion d iction ary is an o ptional sequen ce th at stores the h and le of a
dictionary object th at belongs to the current object, wh ich in tu rn m ay con -
tain en tries. Th is facility allows attach m en t of arbitrary database ob jects to
an y database object. An y object or en tity m ay ha ve this section .
Persistent reactors are an o ption al sequ en ce that stores object h an dles of
objects registering th em selves as reactors on th e current ob ject. An y object or
entity m ay have this section.
Extended Data
Exten ded data (xd ata) is created by Auto LISP or ObjectARX app lication s. If
an en tity con tains extend ed data, it follows the en tity’s n orm al defin ition
data. The grou p codes 1000 th rough 1071 describe exten ded data. The fol-
lowing is an example of an entity containing exten ded data in DXF form at.
Normal entity definition data:
0I N S ER T
5F 1 11 0 0Ac D b E n t i t y
8T OP
1 0 0Ac D bB l o c k Re f e r e n c e2
B L O C K _ A1 0
0 . 02 0
0 . 03 0
0 . 0
Extended entity definition data:
![Page 177: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/177.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 177/188
Extended Data | 171
1 0 0 1A ME _ S OL1 0 0 2{1 0 7 0
01 0 7 1
1 . 9 5 0 5 9 E+ 0 61 0 7 0
5 1 91 0 1 02 . 5 4 7 1 71 0 2 02 . 1 2 2 6 4 21 0 3 02 . 0 4 9 2 0 11 0 0 5EC D1 0 0 5EE 91 0 0 501 0 4 00 . 01 0 4 01 . 01 0 0 0MI L D _ S T E EL
Th e group code 1001 indicates the beginn ing of extended data. In contrast
to n orm al ent ity data, with extended data th e same group code can appear
multiple times, an d order is imp ortant.
Exten ded data are group ed by registered application n am e. Each registered
app lication’s grou p begins with a 1001 group code with th e application
n am e as th e string value. Registered application n am es correspo n d to APPIDsym bol t able entries.
An app lication can use as man y APPID n am es as n eeded. APPID n am es are
perm anen t, alth ough they can b e purged if th ey aren’t currently used in th e
drawing. Each APPID nam e can h ave n o m ore th an o n e data group attached
to each en tity. Within an application ’s group, th e sequence of exten ded d ata
groups and th eir m eanin g is defined by the app lication .
The extend ed dat a grou p co des are listed in th e following table.
Extended data group codes and descriptions
Entity name Group code Description
String 1000 Strings in extended data can be up to 255 bytes long (with the256th byte reserved for the null character)
![Page 178: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/178.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 178/188
172 | Appendix B Advanced DXF Issues
App lication name 1001also a stringvalue
Application names can be up to 31 bytes long (the 32nd byte isreserved for the null character).
NOTE Do not add a 1001 group into your extended data because
AutoCAD assumes it is the beginning of a new applicat ionextended data group
Cont rol st ring 1002 An extended dat a cont rol st ring can be eit her “ {” or “ }” . Thesebraces enable appl icat ions to organize their data by subdividingthe data into lists. The left brace begins a list, and the right braceterminates the most recent list. Lists can be nested.When AutoCAD reads the extended data for a particularapplication, 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 maximum
length of each chunk is 127 bytes. In ASCII DXF files, binary data isrepresented as a str ing of hexadecimal digits, two per binary byte
Database hand le 1005 Hand les of en tities in th e d rawing d atab ase
NOTE When a drawing with handles and extended data handlesis imported into another drawing using INSERT, INSERT *, XREFBind, XBIND, or partial OPEN, the extended data handles aretranslated in the same manner as their corresponding entityhandles, thus maintaining their binding. This is also done in theEXPLODE block operation or for any other AutoCAD operation.When AUDIT detects an extended data handle that doesn’t matchthe handle of an entity in the drawing file, it is considered an error.If AUDIT is fixing entit ies, it sets the handle to 0
3 reals 1010, 1020,1030
Three real values, in the order X , Y , Z . They can be used as a pointor vector record. AutoCAD never alters their value
World space position 1011, 1021,1031
Unlike a simp le 3D point , the world space coordinates are moved,scaled, rotated, and mirrored along wit h the parent entity to whichthe extended data belongs. The world space position is alsostretched when the STRETCH command is applied to the parentent ity and t his point lies within th e select window
World spacedisplacement
1012, 1022,1032
Also a 3D point that is scaled, rot ated, and mirrored along with theparent (but is not moved or stretched)
World direct ion 1013, 1023,1033
Also a 3D point that is rotated and m irrored along with th e parent(but is not moved, scaled, or stretched)
Real 1040 A real value
Distance 1041 A real value that is scaled along with the parent ent ity
Extended data group codes and descriptions (continued )
Entity name Group code Description
![Page 179: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/179.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 179/188
Object Coordinate Systems (OCS) | 173
Object Coordinate Systems (OCS)
To save space in th e drawin g dat abase (and in th e DXF file), the p oint s
associated with each en tity are expressed in t erm s of th e ent ity’s own object
coord inat e system (OCS). The OCS was referred to as ECS in previous releases
of Auto CAD. With OCS, th e only addition al inform ation n eeded to describeth e ent ity’s position in 3D space is th e 3D vecto r describing th e Z axis of th e
OCS, and t he elevation value.
For a given Z axis (or extrusion ) direction , th ere are an infinite n um ber of
coordin ate system s, defin ed by tran slating th e origin in 3 D space an d by
rotatin g the X an d Y axes around t h e Z axis. However, for th e sam e Z axis
direction, th ere is on ly on e OCS. It h as the following prop erties:
s Its origin coincides with th e WCS origin.
s Th e orient ation of th e X an d Y axes within t h e XY plane a re calculated in
an arbitrary but consistent manner. AutoCAD performs this calculation
using th e arbitrary axis algorith m (see “Arbitrary Axis Algorith m ” on page175).
For som e en tities, the O CS is equ ivalen t t o th e WCS an d all poin ts (DXF
grou ps 10–37) are expressed in world coo rdinat es. See th e following ta ble.
Scale factor 1042 Also a real value t hat is scaled along wit h th e paren t. The differencebetween a distance and a scale factor is application-defined
Integer 1070 A 16-bit integer (signed or unsigned)
Long 1071 A 32-bit signed (long) integer
Coordinate systems associated with an entity type
Entities Notes
3D entit ies such as line, point,3dface, 3D polyline, 3D vertex,
3D mesh, 3D mesh vertex
These entities do not lie in a particular plane. All pointsare expressed in world coordinates. Of t hese ent it ies,
only lines and po ints can be extruded. Their extrusiondirect ion can differ from the world Z axis
Extended data group codes and descriptions (continued )
Entity name Group code Description
![Page 180: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/180.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 180/188
174 | Appendix B Advanced DXF Issues
On ce AutoCAD has establish ed t h e OCS for a given ent ity, th e OCS works as
follows: The elevation value stored with an en tity in dicates h ow far to shift
th e XY plane along th e Z axis (from th e WCS origin ) to m ake it coincide with
the p lane th at cont ains the en tity. How mu ch of th is is the u ser-defined ele-
vation is unimportant.An y 2D points entered th rough t h e UCS are transformed in to th e corre-
spo nd in g 2D point s in th e OCS, which is sh ifted an d rotated with respect to
th e UCS.
Th ese are a few ram ification s of th is process:
s You can n ot reliably fin d out wh at UCS was in effect wh en an en tity was
acquired.
s Wh en you en ter the XY coordinates of an ent ity in a given UCS and then
do a SAVEAS, you pro bably won’t recogn ize tho se X Y coordinates in t h e
DXF file. You m ust kn ow th e m eth od by wh ich Aut oCAD calculates th e X an d Y axes in order to wo rk with th ese values.
s The elevation value stored with an en tity an d outp ut in DXF files is a sum
of th e Z -coordin ate differen ce between t h e UCS XY plane and the OCS XY
plan e, and the elevation value th at th e user specified at th e time th e entity
was drawn .
2D entities such as circle, arc,solid, t race, text , attrib, attdef,shape, insert, 2D polyline, 2D
vertex, lwpolyline, hatch, image
These entities are planar in nature. All points areexpressed in object coordinates. All of these entities canbe extruded. Their extrusion direction can differ from
the world Z axis
Dimension Some of a dimension’s points are expressed in WCS andsome in OCS
Viewport Expressed in world coordinates
Coordinate systems associated with an entity type (continued )
Entities Notes
![Page 181: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/181.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 181/188
![Page 182: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/182.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 182/188
176
![Page 183: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/183.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 183/188
177
Index
*Mod el_Spa ce blo ck d efinit io n , 57*Paper_Space block definition , 572D en tities, coordin ate system s associated with ,
17 43D en tities, coordin ate system s associated with ,
17 33dface group cod es, 623dsolid grou p codes, 63
Aacad_proxy_entity grou p codes, 63ACAD_PROXY_OBJECT group codes, 117ACADMAINTVER DXF system variable, 16ACADVER DXF system varia ble, 16ACDBDICTION ARYWDFLT gro u p codes, 118ACDBPLACEHOLDER group codes, 11 9aligned dimension group codes, 71ANGBASE DXF system varia ble , 16ANGDIR DXF system variable, 16angular dimen sion group codes, 74anon ymo us blocks, 5 6APPID group codes , 38
xdata groupings an d , 17 1application -defin ed o bject types, 11 6arbitrary a xis algorith m , 1 75arbitrary handles, 1 66arc edge data for hat ch en tities, 81arc group codes, 6 4ASCII con tro l cha racters in DXF files, 147ASCII DXF files
about, 14 5vs. bin ar y DXF files, 158BLOC KS section (exam ple), 1 52CLASSES section (exam ple) , 14 8
control character handling, 14 7ENTITIES sectio n (exam ple), 15 3HEADER section (example), 148m aximum file string length , 147OBJECTS sect ion (example), 15 3reading (example), 15 4section s of , 146structu re of , 146TABLES section (example), 149writing (examp le), 15 6
attdef group codes, 65ATTMODE DXF system variable, 16attrib group codes, 66
AUNITS DXF system variab le, 16AUPREC DXF system variab le, 16AutoLISP
arbitrary h andles and , 16 7entnext funct ion output for ole2fram e entity
(example), 96grou p code 1005 xd ata items an d , 1 68handent function , 16 8reference h and les an d , 166 , 16 7
Bbin ary DXF files, 14 5 , 158block definitions
about , 56Model_Space an d Paper_Space , 57UCS/WCS and , 57
block group codes, 56block referen ce (inser t) group codes, 85block table han dles, 56BLOCK_RECORD group codes, 39BLOCKS section
![Page 184: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/184.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 184/188
178 | Index
about, 55 , 147examp le of , 15 2group codes in , 56and writin g a DXF file, 156
blocks, anon ymo us, 56body grou p codes, 68boun dary path data for hatch entities, 8 0
CC++ class n am es, default class valu es, 33CECOLOR DXF system variable, 16CELTSCALE DXF system varia ble , 16CELTYPE DXF syst em var iable , 16CELWEIGHT DXF system variable, 16CEPSNTYPE DXF system varia b le, 16CHAMFERA DXF syste m varia b le, 16CHAMFERB DXF system varia ble , 16CHAMFERC DXF system variable , 17CHAMFERD DXF system variable, 17circle grou p codes, 69
CLASSES sectionabout, 31 , 146default class values by DXF record n ame and
C++ class n ame, 3 3group codes in , 32
CLAYER DXF system varia b le, 17CMLJUST DXF system variable, 17CMLSCALE DXF system varia b le, 17CMLSTYLE DXF system var iable, 17comm on entity group codes, 60contr ol ch aracter han dlin g, 14 7conven tion s used in t h is reference, 6coordinate systems associated with entity typ es,
17 3
CPSNID DXF system variable, 16
Ddatabase objects, 16 6default class values by DXF record nam e an d C++
class nam e, 33deleted items in symbol tables, 36diameter dimen sion group codes, 73diction aries, nam ed object, 116DICTION ARY gro up cod es, 12 0DICTION ARYVAR gro up codes, 121 , 122DIMADEC DXF system variable, 17DIMALT DXF system varia b le, 1 7
DIMALTD DXF system variable, 17DIMALTF DXF system variable, 17DIMALTRND D XF system va riable, 17DIMALTTD D XF syste m var iable, 17DIMALTTZ DXF syst em var iable , 17DIMALTU D XF system variable, 17DIMALTZ DXF system variable, 17DIMAPOST DXF system variab le, 17
DIMASO DX F system variab le, 18DIMASZ DXF system var iable, 18DIMATFIT DXF syste m variable , 18DIMAUNIT DXF syste m var iable, 18DIMAZIN DXF system variable, 18DIMBLK DXF system variable, 18DIMBLK1 DXF system variab le, 18DIMBLK2 DXF system variab le, 18DIMCEN DXF system variable , 18DIMCLRD DXF system variable, 18DIMCLRE DXF syst em varia ble, 18DIMCLRT DXF system variab le, 18DIMDEC DXF system variable, 18DIMDLE DXF system variab le, 18DIMDLI DXF syst em v ariab le, 18DIMDSEP DXF system variab le, 19dimen sion entities, coord in ate system s associated
with , 17 4dimen sion group codes, 69
align ed , 71angular, 74common, 69diameter, 73linear , 72ordinate, 75radial, 7 3rotated, 72
dimen sion style overrides, 76DIMEXE DXF system va riable, 19DIMEXO DXF system variable, 19DIMFRAC DXF system variab le, 19DIMGAP DXF system variable , 19DIMJUST DXF system variable , 19DIMLDRBLK DXF system varia ble, 19DIMLFAC DXF system variab le, 19DIMLIM DXF system variab le, 1 9DIMLUN IT DXF system variable, 19DIMLWD DXF system variable , 19DIMLWE DXF system var iable, 19DIMPOST DXF system variab le, 19DIMRND DXF system variable, 19DIMSAH DXF system variable, 19DIMSCALE DXF system varia b le, 2 0DIMSD1 DXF system variable , 20DIMSD2 DXF system variable , 20DIMSE1 D XF system var iable, 20DIMSE2 D XF system var iable, 20DIMSHO DXF system variable , 20DIMSOXD DXF system variable , 20DIMSTYLE
table handle code, 3 6DIMSTYLE DXF system variable, 20DIMSTYLE group codes, 40DIMSTYLE tab le h an dle code , 36DIMTAD DXF syste m var iable, 20DIMTDEC DXF system variable, 20DIMTFAC D XF syst em var iable, 20
![Page 185: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/185.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 185/188
Index | 179
DIMTIH DXF system variable, 2 0DIMTIX DXF syste m v ariab le, 20DIMTM DXF system v ariab le, 20DIMTMOVE DXF system variable, 20DIMTOFL DXF system varia ble, 20DIMTOH DXF system variable, 20DIMTOL DXF system variable, 20DIMTOLJ DXF system variable, 20DIMTP DXF system variable, 21DIMTSZ DXF system varia ble, 2 1DIMTVP DXF system var iable, 21DIMTXSTY DXF system varia b le, 21DIMTXT DXF system variable, 21DIMTZIN DXF system variable, 21DIMUPT DXF system variable, 21DIMZIN DXF system variable , 21DISPSILH D XF syste m varia ble, 21drawing in terch ange f ile form ats
ASCII DXF, 14 5 , 146bin ary DXF, 1 45, 1 58Slide (SLD), 15 9Slide Library (SLB), 16 3
DWG CO DEPAGE DXF syst em var iable, 21DXF
conventionsgrou p code ranges, 7grou p codes in n um erical order, 9
file pa rsers, sub class mar kers an d , 16 8files. See ASCII DXF files; bin ary DXF filesformat
about, 5interface program s, writing (exam ple), 154record n ames, def ault class values, 33system variables, 16
DXFIN consid eration s for writin g DXF files, 15 7
EECS. See object coordinate systemELEVATION DXF system var iable , 21elevation value for entity po sitionin g, 173ellipse edge d ata for h atch en tities, 82ellipse group codes, 76elliptical arc defin itio n , 77end blk grou p codes, 58ENDCAPS DXF system variab le, 21entities
block , 56coordinate system s associat ed with , 173
endblk , 56entity group cod es vs. object codes, 6grou p codes listed in n um erical order, 9
ENTITIES sectio nabout, 59 , 147and writin g a DXF file, 156
extension diction ary, 170EXTMAX DXF system variab le, 21
EXTMIN DXF system variable, 21EXTNAMES DXF syste m variable , 22extrusion direction, OCS properties for, 17 3
FFASTZ revised VPORT h ead er variab le, 28
filing a stream of group data, subclass markersan d , 168FILLETRAD DXF system varia ble, 22FILLMOD E DXF system variab le, 22FINGERPRINTGU ID DXF syste m varia ble , 22
Ggetvar AutoLISP function , 148graph ical object group codes. See nam es of specific
objectsGRIDMO DE revised VPORT h ead er variable, 28GRIDUNIT revised VPORT hea d er variable , 28grou p codes
about , 14 6arbitrary han dle ran ge, 16 6ASCII DXF files an d , 1 47bin ary DXF files and , 158for ent ities (graphical objects), 60examples of , 148formattin g con vention s for, 6in numerical order, 9objects/entities an d , 6ranges of , 7referen ce h andle ranges, 166for xdata , 17 1
grou p dat a, subclass m arkers and , 16 8GROUP group codes, 12 4
Hhan den t fun ctions (AutoLISP), 168handles
about , 16 6arbitrary, 166of diction ary objects, 17 0referen ce, 16 6
HAND SEED D XF syst em var iable, 22har d references vs. sof t references, 1 67hard-owner hand les, 166hard-pointer han dles, 166hatch group codes, 78
hatch pattern data, 83HEADER sect io n
about , 15 , 146examp le of , 14 8grou p cod es for revised VPORT variables, 27group codes for saved DXF system
variables, 16
![Page 186: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/186.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 186/188
![Page 187: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/187.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 187/188
Index | 181
pointer references vs. own ership references, 16 7polyface mesh es in DXF, 98polyline boun dary data for hat ch en tities, 8 1polyline group cod es, 97
polyface m eshes and , 98PROXYGRAPHICS DXF syst em var iable, 23PSLTSCALE DXF system variab le, 23PSVPSCALE DXF syst em va riable , 24PUCSBASE DXF system varia b le, 24PUCSNAME DXF system variab le, 2 4PUCSORG DXF system variable , 24PUCSORGBACK DXF system variab le, 2 4PUCSORGBOTTOM DXF system variable, 24PUCSORGFRONT DXF system variable , 24PUCSORGLEFT DXF syste m v ar iable , 24PUCSORGRIGHT DXF system variable, 24PUCSORGTOP DXF system variable , 24PUCSORTHOREF DXF system variab le, 2 4PUCSORTHOVIEW DXF system variable , 24PUCSXDIR DXF system varia ble, 24PUCSYDIR DXF system va riable, 24
QQTEXTMODE DXF system variable, 25
Rradial dimension group codes, 73ranges of group codes, 7RASTERVARIABLES group codes, 13 5ray group codes, 99readin g a DXF file (exam ple), 154reference h and les
har d vs. soft, 167
pointer vs. ownership , 16 7types of , 16 6
REGENMO DE DXF system variable, 25region group codes, 99rotated dimension group codes, 72
SSAVE com m an d
Binary o ption , 158Select Objects op tion , 14 7
SAVEAS com m an dASCII con tro l charact er h andling and , 14 7bin ary DXF files an d , 15 9
Binary o ption , 158Select Objects op tion , 14 7
sequ end group cod es, 100SHADEDGE DXF syste m var iable, 25SHADEDIF DXF system variable, 25sh ape group codes, 100SKETCHINC DXF system variable , 25
SKPO LY DXF system varia ble , 25slide (SLD) files
about , 15 9data record types, 160header format, 15 9hex d ump of (exam ple), 16 1old-format h eader, 16 2vecto rs an d , 160
slid e libra ry (SLB) file form at , 16 3SNAPANG revised VPORT hea d er var iable, 28SNAPBASE revised VPORT h eader va riab le, 28SNAPISOPAIR revised VPORT header var iab le, 28SNAPMOD E revised VPORT he ader v ariab le, 2 8SNAPSTYLE revised VPORT header variable, 28SNAPUNIT revised VPORT h ead er variable, 28soft referen ces vs. h ard references, 1 67soft-owner handles, 166soft-pointer handles, 16 6, 167solid group codes, 10 1SORTENTSTABLE group codes, 13 8SPATIAL_FILTER grou p cod es, 13 7SPATIAL_IND EX gro u p cod es, 136SPLFRAME DXF system varia ble , 25spline edge data for hatch ent ities, 82spline group codes, 10 2SPLINESEGS DXF system variab le, 2 5SPLINETYPE DXF system variable, 25STYLE group codes, 46subclass m arkers, 168SURFTAB1 DXF system var iable , 25SURFTAB2 DXF system var iable , 25SURFTYPE DXF syste m variab le, 25SURFU DXF system variable , 25SURFV DXF system varia ble , 25sym bol table en tries
common grou p codes, 37structu re of , 36
sym bol t ablescomm on group codes , 36deleted items an d , 3 6DIMSTYLE h andle, 36han dles and , 16 6identifying, 36structu re of , 36
system variables, saved in DXF files, 1 6
TTABLES sec t ion
about , 35 , 146examp le of , 14 9symb ol table com mo n group codes, 36symb ol table structur e, 36and writin g a DXF file, 156
tagged d ata, 5TDCREATE DXF system variable, 25TDINDWG D XF system variable, 25
![Page 188: dxf2002](https://reader031.vdocuments.site/reader031/viewer/2022021116/577d35ea1a28ab3a6b91c60e/html5/thumbnails/188.jpg)
8/8/2019 dxf2002
http://slidepdf.com/reader/full/dxf2002 188/188
TDUCREATE DXF system variable , 25TDUPDATE DXF syst em varia ble, 25TDUSRTIMER DXF system var iable , 25TDUUPDATE DXF system variable , 26text group codes, 103TEXTSIZE DXF system varia ble, 26TEXTSTYLE DXF system variable , 26THICKNESS DXF syste m varia b le, 26THUMBNAIL section
about, 14 7THUMBNAILIMAGE
grou p codes, 144THUMBNAILIMAGE section
about, 14 3TILEMO DE DXF syste m var iable, 26time/ date variables, h an dlin g of , 28toleran ce group co des, 1 05TRACE DXF system variable, 26trace group codes, 10 6TREEDEPTH DXF system varia b le, 2 6
UUCS group codes, 47
vertex group codes, 107VIEW grou p cod es, 49VIEWC TR revised VPORT hea der v ariab le, 28VIEWD IR revised VPORT h ead er variab le, 28viewport en tities
coordinate system s associated with , 174viewport group codes, 1 09VIEWSIZE revised VPORT header variable, 28VISRETAIN DXF system varia b le, 27Visual Basic programs (exam ples)
for readin g a DXF file, 1 54for writing a DXF file, 1 57
VPORT group codes , 51VPORT header variables, revised , 27VSLIDE/MSLIDE co m m an ds, 15 9
Wworld coordinate system (W CS), 173WO RLDVIEW D XF syste m var iable, 27writing a DXF file (exam ple), 1 56
X