Jump to content

AutoCAD DXF: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Add paragraph back, correcting its terminology
added a section for criticism and alternatives
Line 27: Line 27:
'''AutoCAD DXF''' (Drawing Interchange Format, or Drawing Exchange Format) is a [[Computer-aided design|CAD]] data [[file format]] developed by [[Autodesk]]<ref>{{cite web| url = http://www.faqs.org/faqs/graphics/fileformats-faq/part3/section-45.html| title = FAQS.org}}</ref> for enabling [[CAD data exchange|data interoperability]] between [[AutoCAD]] and other programs.
'''AutoCAD DXF''' (Drawing Interchange Format, or Drawing Exchange Format) is a [[Computer-aided design|CAD]] data [[file format]] developed by [[Autodesk]]<ref>{{cite web| url = http://www.faqs.org/faqs/graphics/fileformats-faq/part3/section-45.html| title = FAQS.org}}</ref> for enabling [[CAD data exchange|data interoperability]] between [[AutoCAD]] and other programs.


DXF was introduced in December 1982 as part of AutoCAD 1.0, and was intended to provide an exact representation of the data in the AutoCAD native file format, [[.dwg|DWG]] (Drawing). For many years, Autodesk did not publish specifications, making correct imports of DXF files difficult. Autodesk now publishes the [http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3 DXF specifications online].
DXF was introduced in December 1982 as part of AutoCAD 1.0, and was intended to provide an exact representation of the data in the AutoCAD native file format, [[.dwg|DWG]] (Drawing). For many years, Autodesk did not publish specifications, making correct creation of DXF files difficult. Autodesk now publishes the incomplete<ref>{{cite web |last1=Moitzi |first1=Manfred |title=What is DXF? |url=https://ezdxf.readthedocs.io/en/stable/concepts/dxf.html |website=/ezdxf.readthedocs.io |publisher=Manfred Moitzi |access-date=27 October 2023}}</ref> [http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-235B22E0-A567-4CF6-92D3-38A2306D73F3 DXF specifications online].


Versions of AutoCAD from Release 10 (October 1988) and up support both [[ASCII]] and [[Binary file|binary]] forms of DXF.<ref>{{Cite book|last=Schoonmaker|first=Stephen J.|url=https://www.worldcat.org/oclc/54090798|title=The CAD guidebook : a basic manual for understanding and improving computer-aided design|date=2003|publisher=Marcel Dekker|isbn=0-8247-4569-8|location=New York|oclc=54090798}}</ref>{{Rp|page=59}} Earlier versions support only ASCII.
Versions of AutoCAD from Release 10 (October 1988) and up support both [[ASCII]] and [[Binary file|binary]] forms of DXF.<ref>{{Cite book|last=Schoonmaker|first=Stephen J.|url=https://www.worldcat.org/oclc/54090798|title=The CAD guidebook : a basic manual for understanding and improving computer-aided design|date=2003|publisher=Marcel Dekker|isbn=0-8247-4569-8|location=New York|oclc=54090798}}</ref>{{Rp|page=59}} Earlier versions support only ASCII.


As AutoCAD has become more powerful, supporting more complex object types, DXF has become less useful. Certain object types, including [[ACIS]] solids and regions, are not documented. Other object types, including AutoCAD 2006's dynamic blocks, and all of the objects specific to the [[vertical market]] versions of AutoCAD, are partially documented, but not well enough to allow other developers to support them. For these reasons many CAD applications use the DWG format which can be licensed from Autodesk or non-natively from the [[Open Design Alliance]].
As AutoCAD has become more powerful, supporting more complex object types, DXF has become less useful. Certain object types, including [[ACIS]] solids and regions, are not documented. Other object types, including AutoCAD 2006's dynamic blocks, and all of the objects specific to the [[vertical market]] versions of AutoCAD, are partially documented, but not well enough to allow other developers to support them. For these reasons many CAD applications use the DWG format which can be licensed from Autodesk or non-natively from the [[Open Design Alliance]]. DXF files do not specify the units of measurement used for its coordinates and dimensions.


Most CAD systems and many vector graphics packages support the import and export of DXF files, notably [[Adobe_Inc.|Adobe products]], [[Inkscape]] & [[Blender_(software)|Blender]]. Some CAD systems use DXF as their native format, notably [[QCAD]] and [[LibreCAD]].
DXF files do not specify the units of measurement used for its coordinates and dimensions.


== File structure ==
== File structure ==
Line 64: Line 64:


The data format of a DXF is called a "tagged data" format, which "means that each data element in the file is preceded by an integer number that is called a group code. A group code's value indicates what type of data element follows. This value also indicates the meaning of a data element for a given object (or record) type. Virtually all user-specified information in a drawing file can be represented in DXF format."<ref>"Chapter 1 -- DXF Format" [http://www.autodesk.com/techpubs/autocad/acad2000/dxf/dxf_format.htm Autodesk.com]</ref>
The data format of a DXF is called a "tagged data" format, which "means that each data element in the file is preceded by an integer number that is called a group code. A group code's value indicates what type of data element follows. This value also indicates the meaning of a data element for a given object (or record) type. Virtually all user-specified information in a drawing file can be represented in DXF format."<ref>"Chapter 1 -- DXF Format" [http://www.autodesk.com/techpubs/autocad/acad2000/dxf/dxf_format.htm Autodesk.com]</ref>

== Criticism ==
Because DXF is only partially and poorly documented<ref>{{cite web |last1=Moitzi |first1=Manfred |title=What is DXF? |url=https://ezdxf.readthedocs.io/en/stable/concepts/dxf.html |website=/ezdxf.readthedocs.io |publisher=Manfred Moitzi |access-date=27 October 2023}}</ref>, missing documentation of key functionality like blocks & layouts, consideration is often given to alternative [[Open_file_format|open formats]] like [[SVG]] (an open format defined by the [[World_Wide_Web_Consortium|W3C]]), [[Design_Web_Format|DWF]] (an open format defined by Autodesk<ref>{{cite web |title=DWF files |url=https://www.adobe.com/creativecloud/file-types/image/raster/dwf-file.html |website=adobe.com |publisher=Adobe 2023 |access-date=27 October 2023}}</ref>) or even [[Encapsulated_PostScript|EPS]] ([[International_Organization_for_Standardization|ISO]]/IEC standard 29112:2018). DXF (as well as [[DWG]]) is however still a prefered format for CAD files for use by the ISO<ref>{{cite web |title=ISO Central Secretariat requirements - FAQ for graphics (formats and files) |url=https://www.iso.org/files/live/sites/isoorg/files/archive/pdf/en/grph_faq.pdf |website=iso.org |publisher=ISO 2002 |access-date=27 October 2023}}</ref>.


== See also ==
== See also ==

Revision as of 08:57, 27 October 2023

Drawing Interchange Format
Filename extension
.dxf
Internet media type
image/vnd.dxf
Developed byAutodesk
Initial releaseDecember 1982; 41 years ago (1982-12)
Latest release
u19.1.01.
January 2007; 17 years ago (2007-01)[1]
Type of formatCAD data exchange

AutoCAD DXF (Drawing Interchange Format, or Drawing Exchange Format) is a CAD data file format developed by Autodesk[2] for enabling data interoperability between AutoCAD and other programs.

DXF was introduced in December 1982 as part of AutoCAD 1.0, and was intended to provide an exact representation of the data in the AutoCAD native file format, DWG (Drawing). For many years, Autodesk did not publish specifications, making correct creation of DXF files difficult. Autodesk now publishes the incomplete[3] DXF specifications online.

Versions of AutoCAD from Release 10 (October 1988) and up support both ASCII and binary forms of DXF.[4]: 59  Earlier versions support only ASCII.

As AutoCAD has become more powerful, supporting more complex object types, DXF has become less useful. Certain object types, including ACIS solids and regions, are not documented. Other object types, including AutoCAD 2006's dynamic blocks, and all of the objects specific to the vertical market versions of AutoCAD, are partially documented, but not well enough to allow other developers to support them. For these reasons many CAD applications use the DWG format which can be licensed from Autodesk or non-natively from the Open Design Alliance. DXF files do not specify the units of measurement used for its coordinates and dimensions.

Most CAD systems and many vector graphics packages support the import and export of DXF files, notably Adobe products, Inkscape & Blender. Some CAD systems use DXF as their native format, notably QCAD and LibreCAD.

File structure

ASCII versions of DXF can be read with any text editor. The basic organization of a DXF file is as follows:[5]

HEADER section
General information about the drawing. Each parameter has a variable name and an associated value.
CLASSES section
Holds the information for application-defined classes whose instances appear in the BLOCKS, ENTITIES, and OBJECTS sections of the database. Generally does not provide sufficient information to allow interoperability with other programs.
TABLES section
This section contains definitions of named items.
  1. Application ID (APPID) table
  2. Block Record (BLOCK_RECORD) table
  3. Dimension Style (DIMSTYLE) table
  4. Layer (LAYER) table
  5. Linetype (LTYPE) table
  6. Text style (STYLE) table
  7. User Coordinate System (UCS) table
  8. View (VIEW) table
  9. Viewport configuration (VPORT) table
BLOCKS section
This section contains Block Definition entities describing the entities comprising each Block in the drawing.
ENTITIES section
This section contains the drawing entities, including any Block References.
OBJECTS section
Contains the data that apply to nongraphical objects, used by AutoLISP, and ObjectARX applications.
THUMBNAILIMAGE section
Contains the preview image for the DXF file.
END OF FILE

The data format of a DXF is called a "tagged data" format, which "means that each data element in the file is preceded by an integer number that is called a group code. A group code's value indicates what type of data element follows. This value also indicates the meaning of a data element for a given object (or record) type. Virtually all user-specified information in a drawing file can be represented in DXF format."[6]

Criticism

Because DXF is only partially and poorly documented[7], missing documentation of key functionality like blocks & layouts, consideration is often given to alternative open formats like SVG (an open format defined by the W3C), DWF (an open format defined by Autodesk[8]) or even EPS (ISO/IEC standard 29112:2018). DXF (as well as DWG) is however still a prefered format for CAD files for use by the ISO[9].

See also

References

  1. ^ "DXF specifications" (PDF).
  2. ^ "FAQS.org".
  3. ^ Moitzi, Manfred. "What is DXF?". /ezdxf.readthedocs.io. Manfred Moitzi. Retrieved 27 October 2023.
  4. ^ Schoonmaker, Stephen J. (2003). The CAD guidebook : a basic manual for understanding and improving computer-aided design. New York: Marcel Dekker. ISBN 0-8247-4569-8. OCLC 54090798.
  5. ^ "DXF File Structure".
  6. ^ "Chapter 1 -- DXF Format" Autodesk.com
  7. ^ Moitzi, Manfred. "What is DXF?". /ezdxf.readthedocs.io. Manfred Moitzi. Retrieved 27 October 2023.
  8. ^ "DWF files". adobe.com. Adobe 2023. Retrieved 27 October 2023.
  9. ^ "ISO Central Secretariat requirements - FAQ for graphics (formats and files)" (PDF). iso.org. ISO 2002. Retrieved 27 October 2023.