DXF Reference - Autodesk

[Pages:270]AutoCAD 2012

DXF Reference

February 2011

? 2011 Autodesk, Inc. All Rights Reserved. Except as otherwise permitted by Autodesk, Inc., this publication, or parts thereof, may not be reproduced in any form, by any method, for any purpose.

Certain materials included in this publication are reprinted with the permission of the copyright holder.

Trademarks The following are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and other countries: 3DEC (design/logo), 3December, , 3ds Max, Algor, Alias, Alias (swirl design/logo), AliasStudio, Alias|Wavefront (design/logo), ATC, AUGI, AutoCAD, AutoCAD Learning Assistance, AutoCAD LT, AutoCAD Simulator, AutoCAD SQL Extension, AutoCAD SQL Interface, Autodesk, Autodesk Intent, Autodesk Inventor, Autodesk MapGuide, Autodesk Streamline, AutoLISP, AutoSnap, AutoSketch, AutoTrack, Backburner, Backdraft, Beast, Built with ObjectARX (logo), Burn, Buzzsaw, CAiCE, Civil 3D, Cleaner, Cleaner Central, ClearScale, Colour Warper, Combustion, Communication Specification, Constructware, Content Explorer, Dancing Baby (image), DesignCenter, Design Doctor, Designer's Toolkit, DesignKids, DesignProf, DesignServer, DesignStudio, Design Web Format, Discreet, DWF, DWG, DWG (logo), DWG Extreme, DWG TrueConvert, DWG TrueView, DXF, Ecotect, Exposure, Extending the Design Team, Face Robot, FBX, Fempro, Fire, Flame, Flare, Flint, FMDesktop, Freewheel, GDX Driver, Green Building Studio, Heads-up Design, Heidi, HumanIK, IDEA Server, i-drop, Illuminate Labs AB (design/logo), ImageModeler, iMOUT, Incinerator, Inferno, Inventor, Inventor LT, Kynapse, Kynogon, LandXplorer, LiquidLight, LiquidLight (design/logo), Lustre, MatchMover, Maya, Mechanical Desktop, Moldflow, Moldflow Plastics Advisers, MPI, Moldflow Plastics Insight, Moldflow Plastics Xpert, Moondust, MotionBuilder, Movimento, MPA, MPA (design/logo), MPX, MPX (design/logo), Mudbox, Multi-Master Editing, Navisworks, ObjectARX, ObjectDBX, Opticore, Pipeplus, PolarSnap, PortfolioWall, Powered with Autodesk Technology, Productstream, ProMaterials, RasterDWG, RealDWG, Real-time Roto, Recognize, Render Queue, Retimer, Reveal, Revit, RiverCAD, Robot, Showcase, Show Me, ShowMotion, SketchBook, Smoke, Softimage, Softimage|XSI (design/logo), Sparks, SteeringWheels, Stitcher, Stone, StormNET, StudioTools, ToolClip, Topobase, Toxik, TrustedDWG, U-Vis, ViewCube, Visual, Visual LISP, Volo, Vtour, WaterNetworks, Wire, Wiretap, WiretapCentral, XSI.

All other brand names, product names or trademarks belong to their respective holders.

Disclaimer THIS PUBLICATION AND THE INFORMATION CONTAINED HEREIN IS MADE AVAILABLE BY AUTODESK, INC. "AS IS." AUTODESK, INC. DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE REGARDING THESE MATERIALS.

Published by: Autodesk, Inc. 111 McInnis Parkway San Rafael, CA 94903, USA

Contents

Chapter 1

DXF Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Organization of This Reference . . . . . . . . . . . . . . . . . . . . . . . 1 Revisions to the DXF Reference . . . . . . . . . . . . . . . . . . . . . . 1 Formatting Conventions in This Reference . . . . . . . . . . . . . . . . 2 Object and Entity Codes . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Group Code Value Types . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Group Codes in Numerical Order . . . . . . . . . . . . . . . . . . . . . 5

Chapter 2

HEADER Section . . . . . . . . . . . . . . . . . . . . . . . . . . 11

HEADER Section Group Codes . . . . . . . . . . . . . . . . . . . . . . 11 Revised VPORT Header Variables . . . . . . . . . . . . . . . . . . 28 Special Handling of Date/Time Variables . . . . . . . . . . . . . . 29

Chapter 3

CLASSES Section . . . . . . . . . . . . . . . . . . . . . . . . . . 31

CLASSES Section Group Codes . . . . . . . . . . . . . . . . . . . . . . 31 Default Class Values . . . . . . . . . . . . . . . . . . . . . . . . . 32

Chapter 4

TABLES Section . . . . . . . . . . . . . . . . . . . . . . . . . . 35

Symbol Table Group Codes . . . . . . . . . . . . . . . . . . . . . . . . 35 Common Symbol Table Group Codes . . . . . . . . . . . . . . . . . . 36

Common Group Codes for Symbol Table Entries . . . . . . . . . 37 APPID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

iii

BLOCK_RECORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 DIMSTYLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 LAYER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 LTYPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 STYLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 UCS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 VIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 VPORT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

Chapter 5

BLOCKS Section . . . . . . . . . . . . . . . . . . . . . . . . . . 57

BLOCKS Section Group Codes . . . . . . . . . . . . . . . . . . . . . . 57 BLOCK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 ENDBLK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Chapter 6

ENTITIES Section . . . . . . . . . . . . . . . . . . . . . . . . . 61

Common Group Codes for Entities . . . . . . . . . . . . . . . . . . . . 61 3DFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 3DSOLID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 ACAD_PROXY_ENTITY . . . . . . . . . . . . . . . . . . . . . . . . . . 65 ARC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 ATTDEF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 ATTRIB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 BODY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 CIRCLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 DIMENSION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

Common Dimension Group Codes . . . . . . . . . . . . . . . . . 78 Aligned Dimension Group Codes . . . . . . . . . . . . . . . . . . 80 Linear and Rotated Dimension Group Codes . . . . . . . . . . . . 81 Radial and Diameter Dimension Group Codes . . . . . . . . . . . 82 Angular Dimension Group Codes . . . . . . . . . . . . . . . . . . 83 Ordinate Dimension Group Codes . . . . . . . . . . . . . . . . . 85 Dimension Style Overrides . . . . . . . . . . . . . . . . . . . . . 86 ELLIPSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 HATCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Boundary Path Data . . . . . . . . . . . . . . . . . . . . . . . . . 90 Pattern Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 HELIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 IMAGE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 INSERT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 LEADER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 LIGHT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 LINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 LWPOLYLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 MESH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 MLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104

iv | Contents

MLEADERSTYLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 MLEADER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

Common MLeader Group Codes . . . . . . . . . . . . . . . . . 110 MLeader Context Data Group Codes . . . . . . . . . . . . . . . 112 MLeader Leader Node Group Codes . . . . . . . . . . . . . . . . 116 MLeader Leader Line Group Codes . . . . . . . . . . . . . . . . 117 MTEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 OLEFRAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 OLE2FRAME . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 POINT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 POLYLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 Polyface Meshes . . . . . . . . . . . . . . . . . . . . . . . . . . 125 RAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 REGION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 SECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 SEQEND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 SHAPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 SOLID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 SPLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 SUN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132 SURFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Extruded Surface . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Lofted Surface . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Revolved Surface . . . . . . . . . . . . . . . . . . . . . . . . . . 136 Swept Surface . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 TABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138 TEXT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 TOLERANCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 TRACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 UNDERLAY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 VERTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 VIEWPORT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 WIPEOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 XLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

Chapter 7

OBJECTS Section . . . . . . . . . . . . . . . . . . . . . . . . . 159

OBJECT Section Group Codes . . . . . . . . . . . . . . . . . . . . . . 159 Object Ownership . . . . . . . . . . . . . . . . . . . . . . . . . 159

Common Group Codes for Objects . . . . . . . . . . . . . . . . . . . 160 ACAD_PROXY_OBJECT . . . . . . . . . . . . . . . . . . . . . . . . . 161 ACDBDICTIONARYWDFLT . . . . . . . . . . . . . . . . . . . . . . . 161 ACDBPLACEHOLDER . . . . . . . . . . . . . . . . . . . . . . . . . . 162 DATATABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 DICTIONARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 DICTIONARYVAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 DIMASSOC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

Contents | v

FIELD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168 GEODATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170 GROUP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 IDBUFFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 IMAGEDEF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 IMAGEDEF_REACTOR . . . . . . . . . . . . . . . . . . . . . . . . . . 174 LAYER_INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 LAYER_FILTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175 LAYOUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 LIGHTLIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 MATERIAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179 MLINESTYLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 OBJECT_PTR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 PLOTSETTINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 RASTERVARIABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 RENDER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

RENDERENVIRONMENT . . . . . . . . . . . . . . . . . . . . . 193 MENTALRAYRENDERSETTINGS . . . . . . . . . . . . . . . . . . 194 RENDERGLOBAL . . . . . . . . . . . . . . . . . . . . . . . . . . 197 SECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198 Section Manager . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Section Settings . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Section Type Settings . . . . . . . . . . . . . . . . . . . . . . . 200 Section Geometry Settings . . . . . . . . . . . . . . . . . . . . . 201 SPATIAL_INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202 SPATIAL_FILTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 SORTENTSTABLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204 TABLESTYLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 UNDERLAYDEFINITION . . . . . . . . . . . . . . . . . . . . . . . . . 207 VISUALSTYLE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 VBA_PROJECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211 WIPEOUTVARIABLES . . . . . . . . . . . . . . . . . . . . . . . . . . 211 XRECORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212

Chapter 8 THUMBNAILIMAGE Section . . . . . . . . . . . . . . . . . . . 215 THUMBNAILIMAGE Section Group Codes . . . . . . . . . . . . . . . 215

Chapter 9

Drawing Interchange File Formats . . . . . . . . . . . . . . . 217

ASCII DXF Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217 General DXF File Structure . . . . . . . . . . . . . . . . . . . . 217 Group Codes in DXF Files . . . . . . . . . . . . . . . . . . . . . 219 ASCII Control Characters in DXF Files . . . . . . . . . . . 219 Header Group Codes in DXF Files . . . . . . . . . . . . . . . . . 219 Class Group Codes in DXF Files . . . . . . . . . . . . . . . . . . 220 Symbol Table Group Codes in DXF Files . . . . . . . . . . . . . 220

vi | Contents

Symbol Table Example . . . . . . . . . . . . . . . . . . . 221 Blocks Group Codes in DXF Files . . . . . . . . . . . . . . . . . 224 Entity Group Codes in DXF Files . . . . . . . . . . . . . . . . . 226 Object Group Codes in DXF Files . . . . . . . . . . . . . . . . . 226 Writing a DXF Interface Program . . . . . . . . . . . . . . . . . 227

Reading a DXF File . . . . . . . . . . . . . . . . . . . . . . 228 Writing a DXF File . . . . . . . . . . . . . . . . . . . . . . 230 Binary DXF Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234 Slide Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235 Old Slide Header . . . . . . . . . . . . . . . . . . . . . . . . . . 238 Slide Library Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239

Chapter 10

Advanced DXF Issues . . . . . . . . . . . . . . . . . . . . . . 241

Database Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 Persistent Inter-Object Reference Handles . . . . . . . . . . . . . . . . 241

Pointer and Ownership References . . . . . . . . . . . . . . . . 242 Hard and Soft References . . . . . . . . . . . . . . . . . . . . . 242 Arbitrary Handles . . . . . . . . . . . . . . . . . . . . . . . . . 243 1005 Group Codes . . . . . . . . . . . . . . . . . . . . . . . . . 243 Subclass Markers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 Extension Dictionary and Persistent Reactors . . . . . . . . . . . . . . 246 Extended Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246 Object Coordinate Systems (OCS) . . . . . . . . . . . . . . . . . . . . 250 Arbitrary Axis Algorithm . . . . . . . . . . . . . . . . . . . . . . . . . 252

Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

Contents | vii

viii

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download