Recent from talks
Nothing was collected or created yet.
| DWG | |
|---|---|
| Filename extension | .dwg (plain).dws (standards).dwt (template) |
| Internet media type | image/vnd.dwg[1] |
| Developed by | Autodesk, Open Design Alliance and others |
| Initial release | 1982[2] |
| Type of format | Computer-aided design |
| Open format? | Open but Proprietary[3] |
DWG (from drawing) is a proprietary[3] binary file format used for storing two- and three- dimensional design data and metadata. It is the native format for several CAD packages including DraftSight, AutoCAD, ZWCAD, IntelliCAD (and its variants), Caddie and Open Design Alliance compliant applications. In addition, DWG is supported non-natively by many other CAD applications. The .bak (drawing backup), .dws (drawing standards), .dwt (drawing template) and .sv$ (temporary automatic save) files are also DWG files.
Version history
[edit]| Version | Internal version | AutoCAD versions |
|---|---|---|
| DWG R1.0 | MC0.0 | AutoCAD Release 1.0 |
| DWG R1.2 | AC1.2 | AutoCAD Release 1.2 |
| DWG R1.40 | AC1.40 | AutoCAD Release 1.40 |
| DWG R2.05 | AC1.50 | AutoCAD Release 2.05 |
| DWG R2.10 | AC2.10 | AutoCAD Release 2.10 |
| DWG R2.21 | AC2.21 | AutoCAD Release 2.21 |
| DWG R2.22 | AC1001, AC2.22 | AutoCAD Release 2.22 |
| DWG R2.50 | AC1002 | AutoCAD Release 2.50 |
| DWG R2.60 | AC1003 | AutoCAD Release 2.60 |
| DWG R9 | AC1004 | AutoCAD Release 9 |
| DWG R10 | AC1006 | AutoCAD Release 10 |
| DWG R11/12 | AC1009 | AutoCAD Release 11, AutoCAD Release 12 |
| DWG R13 | AC1012 | AutoCAD Release 13 |
| DWG R14 | AC1014 | AutoCAD Release 14 |
| DWG 2000 | AC1015 | AutoCAD 2000, AutoCAD 2000i, AutoCAD 2002 |
| DWG 2004 | AC1018 | AutoCAD 2004, AutoCAD 2005, AutoCAD 2006 |
| DWG 2007 | AC1021 | AutoCAD 2007, AutoCAD 2008, AutoCAD 2009 |
| DWG 2010 | AC1024 | AutoCAD 2010, AutoCAD 2011, AutoCAD 2012 |
| DWG 2013 | AC1027 | AutoCAD 2013, AutoCAD 2014, AutoCAD 2015, AutoCAD 2016, AutoCAD 2017 |
| DWG 2018 | AC1032 | AutoCAD 2018, AutoCAD 2019, AutoCAD 2020, AutoCAD 2021, AutoCAD 2022, AutoCAD 2023, AutoCAD 2024, AutoCAD 2025 |
History
[edit]DWG (denoted by the .dwg filename extension) was the native file format for the Interact CAD package, developed by Mike Riddle in the late 1970s,[4] and subsequently licensed by Autodesk in 1982 as the basis for AutoCAD.[5][6][7] From 1982 to 2009, Autodesk created versions of AutoCAD which wrote no fewer than 18 major variants of the DWG file format,[8] none of which is publicly documented.
The DWG format is probably the most widely used format for CAD drawings. Autodesk estimates that in 1998 there were in excess of two billion DWG files in existence.[9]
There are several claims to control of the DWG format.[10] As the biggest and most influential creator of DWG files it is Autodesk who designs, defines, and iterates the DWG format as the native format for their CAD applications. Autodesk sells a read/write library, called RealDWG,[11] under selective licensing terms for use in non-competitive applications. Several companies have attempted to reverse engineer Autodesk's DWG format, and offer software libraries to read and write Autodesk DWG files. The most successful is Open Design Alliance,[12] a non-profit consortium created in 1998 by a number of software developers (including competitors to Autodesk); it released a read/write/view library called the OpenDWG Toolkit, which was based on the MarComp AUTODIRECT libraries.[13] (ODA has since rewritten and updated that code.)
In 1998, Autodesk added file verification to AutoCAD R14.01, through a function called DWGCHECK. This function was supported by an encrypted checksum and product code (called a "watermark" by Autodesk), written into DWG files created by the program.[14][15] In 2006 Autodesk modified AutoCAD 2007, to include "TrustedDWG technology", a function which would embed a text string within DWG files written by the program: "Autodesk DWG. This file is a Trusted DWG last saved by an Autodesk application or Autodesk licensed application."[16] This helped Autodesk software users ensure that the files they were opening were created by an Autodesk, or RealDWG application, reducing risk of incompatibilities.[17] AutoCAD would pop up a message, warning of potential stability problems, if a user opened a 2007 version DWG file which did not include this text string.
In 2008 the Free Software Foundation asserted the need for an open replacement for the DWG format, as neither RealDWG[11] nor DWGdirect are licensed on terms that are compatible with free software license like the GNU GPL. Therefore, the FSF placed the goal 'Replacement for OpenDWG libraries' in 10th place on their High Priority Free Software Projects list.[18] Created in late 2009, GNU LibreDWG[19] is a free software library released under the terms of the GNU GPLv3 license. It can read DWG files from version R13 up to 2021, and write R2000 DWG files.
Also in 2008 Autodesk and Bentley Systems agreed on exchange of software libraries, including Autodesk RealDWG, to improve the ability to read and write the companies' respective DWG and DGN formats in mixed environments with greater fidelity. In addition, the two companies will facilitate work process interoperability between their AEC applications through supporting the reciprocal use of available Application Programming Interfaces (APIs).[20]
Autodesk trademark
[edit]On November 13, 2006, Autodesk sued the Open Design Alliance alleging that its DWGdirect libraries infringed Autodesk's trademark for the word "Autodesk", by writing the TrustedDWG watermark (including the word "AutoCAD") into DWG files it created.[21] Nine days later, Autodesk's attorneys won a broad and deep temporary restraining order against the Open Design Alliance.[22] In April 2007, the suit was settled, essentially on Autodesk's terms, with Autodesk modifying the warning message in AutoCAD 2008 (to make it somewhat less alarming), and the Open Design Alliance removing support for writing the TrustedDWG watermark from its DWGdirect libraries. The effect of the temporary restraining order and subsequent consent decree was to render the Open Design Alliance's DWGdirect libraries, from one point of view, incapable of creating DWG files that are 100% compatible with AutoCAD.[citation needed] Others point out that the failure of "100% compatibility" means only that loading such a drawing triggers an essentially irrelevant warning message when the file is opened in AutoCAD.[23]
In 2006, Autodesk applied for registration of US trademarks on "DWG",[24][25] "DWG EXTREME",[26] "DWG TRUECONVERT",[27] "REALDWG",[28] "DWGX",[29] "DWG TRUEVIEW".[30][31] As early as 1996, Autodesk has disclaimed exclusive use of the DWG mark in US trademark filings.[32] Out of these applications, only TRUSTEDDWG has been registered as a trademark by the USPTO. The REALDWG and DWGX registrations were opposed by SolidWorks. The DWG EXTREME, DWG TRUECONVERT, and DWG TRUEVIEW trademark registration applications all received substantial resistance, with the USPTO examining attorney requiring Autodesk to disclaim exclusive use of DWG as a condition for their registration.
In a non-final action in May 2007, the USPTO examining attorney refused to register the two DWG marks, as they are "merely descriptive" of the use of DWG as a file format name. In September 2007, Autodesk responded, claiming that DWG has gained a "secondary meaning," separate from its use as a generic file format name.[33]
As of June 22, 2008, all of Autodesk's DWG-related trademark registration proceedings were suspended by the USPTO, pending disposition of trademark opposition and cancellation petitions Autodesk had filed against the Open Design Alliance and Dassault Systèmes SolidWorks Corporation. The USPTO office actions notifying Autodesk of this noted that Autodesk was not the exclusive source of files with the format name DWG, and Autodesk does not control the use of DWG by others, either as a trademark or as a file format name, among other points.
In 2006, Autodesk filed an opposition with the USPTO to the trademark registration of DWGGATEWAY by SolidWorks.[34] Autodesk subsequently filed a petition for cancellation of SolidWorks' trademark registration for DWGEDITOR.[35] In both cases, Autodesk's basis was that they had "been using the DWG name with its CAD software products since at least as early as 1983." The opposition and cancellation actions were consolidated, and suspended pending disposition of Autodesk's US District Court suit against SolidWorks.[36]
In early 2007, Autodesk petitioned the USPTO to cancel the Open Design Alliance's "OpenDWG" trademarks, claiming that they had been abandoned.[37] This cancellation action was suspended pending disposition of Autodesk's US District Court suit against SolidWorks.[38]
In 2008, Autodesk sued SolidWorks in US District Court, arguing that through its marketing efforts, the term "DWG" has lost its original generic meaning and taken on a secondary meaning referring specifically to Autodesk's proprietary drawing file format, and therefore any use of "DWG" in competitive products amounted to trademark infringement.[39] In January 2010, on the morning that trial was scheduled to begin, Autodesk and SolidWorks settled the suit, with SolidWorks acknowledging Autodesk's trademark rights for DWG, surrendering its trademark registrations for its DWG related projects, and withdrawing its opposition to Autodesk's DWG-related trademark registrations.[40]
In April 2010, Autodesk and the Open Design Alliance settled their suit, with the Open Design Alliance agreeing to cancel its DWG-based trademark registrations and cease use of DWG and DWG-based trademarks in its product marketing and branding.[41] Because there was no adjudication in either case, the agreements between the parties are not binding upon the USPTO. In March 2010, the Office of the Deputy Commissioner for Trademark Examination Policy at the USPTO determined that evidence submitted by the Open Design Alliance two years earlier was relevant and supported a reasonable ground for refusal to register DWG as a trademark.[42]
In June 2011 the USPTO issued a final refusal[43] to register DWG as a trademark owned by Autodesk. They were quoted as saying:[44]
DWG is merely descriptive of applicant's goods under Section 2(e)(1) of the Trademark Act for two reasons: (1) DWG is a recognized abbreviation for "drawing," and (2) .dwg is a file format used for computer-aided design (CAD) drawings made both with applicant's CAD software and others' CAD software.
Autodesk appealed the decision. The USPTO affirmed in 2013 their refusal to recognise DWG as a trademark.[45] Despite this, Autodesk websites still claimed DWG as a trademark after the decision.[46]
In late 2014 Autodesk again lost, this time at the United States District Court for the Eastern District of Virginia. The judge dismissed all their arguments.[47]
In 2015 Autodesk's website has a section title About DWG[48] in which they try to make a distinction between .dwg as a file format and the DWG technology environment.
DWG support in freemium and free software
[edit]As neither RealDWG[11] nor DWGdirect are licensed on terms that are compatible with free software licenses like the GNU GPL, in 2008 the Free Software Foundation asserted the need for an open replacement for the DWG format. Therefore, the FSF placed the goal 'Replacement for OpenDWG libraries'[18] in 10th place on their High Priority Free Software Projects list.[49] Forked in late 2009 from libDWG, GNU LibreDWG[19] can read all DWG files from version R1.2 on.[50] But the LibreDWG library, offered under the GNU GPLv3, could initially not be used by most targeted FOSS graphic software, such as FreeCAD, LibreCAD and Blender, because of a GPLv2/GPLv3 license incompatibility.[51][52][53] A GPLv2 licensed alternative is the libdxfrw project, which can read simple DWGs.[54] Some of these CAD licenses were only fixed recently to be able to use LibreDWG's GPLv3.
FreeCAD is a free and open-source application that can work with the DWG files by using the proprietary ODA File Converter for .dwg and .dxf files from the Open Design Alliance (ODA).[55] The ODA also provides a freeware stand-alone viewer for .dwg and .dgn files, ODA Drawings Explorer, which runs on Windows, Linux, and Mac OS X.
LibreCAD is a free and open-source 2D CAD application that can open DWG and DXF files using its own library.
The quality of DWG format compatibility in these non-Autodesk CAD applications can be assessed using the Budweiser.dwg benchmark drawing.[56]
Autodesk DWG TrueView is a freeware, closed source, stand-alone DWG viewer with DWG TrueConvert software included, built on the same viewing engine as AutoCAD software. The freeware Autodesk Design Review software adds a possibility to open DWG files in Design Review to take advantage of measure and markup capabilities, sheet set organization, and status tracking.
See also
[edit]- ISO 10303-21 – Widely used CAD 3D data exchange file format
- CAD data exchange – Method of CAD drawing file translation
- AutoCAD DXF – CAD software interoperability file format
- BricsCAD – Computer-aided design software
- CAD – Constructing product by means of computer
- Comparison of CAD software
- Comparison of CAD, CAM and CAE file viewers
- Design Web Format – Type of file format
- FreeCAD – Free and open-source 3D CAD software
- GstarCAD – Computer aided design software
- IntelliCAD – CAD editor and development platform
- LibreDWG – Software library for handling DWG files
- LibreCAD – Free and open-source 2D CAD software
- OpenDWG – Nonprofit organization creating SDKs for engineering applications
- Open Design Alliance – Nonprofit organization creating SDKs for engineering applications
References
[edit]- ^ "Media Types". www.iana.org. Archived from the original on October 18, 2017. Retrieved May 6, 2022.
- ^ "What's up with DWG adoption in free software?". Libre Arts. January 26, 2012. Retrieved February 4, 2025.
- ^ a b "Guides to Good Practice: Cad_3-2". Archaeology Data Service. Archived from the original on December 14, 2011. Retrieved April 15, 2015.
- ^ "Mike Riddle's Prehistoric AutoCAD - Retro Thing". Archived from the original on June 29, 2009. Retrieved June 11, 2009.
- ^ "Existing products". Archived from the original on December 27, 2008. Retrieved June 11, 2009.
- ^ "The Autodesk File: Footnote". Archived from the original on June 6, 2011. Retrieved September 22, 2007.
- ^ "DigiBarn Stories: Mike Riddle & the Story of AutoCAD, EasyCAD, FastCAD & more". Archived from the original on May 25, 2009. Retrieved June 11, 2009.
- ^ "Autodesk blog". Archived from the original on March 23, 2010. Retrieved March 30, 2010.
- ^ Autodesk, Inc. "DWG Unplugged". Archived from the original on January 19, 1998.
With over two billion AutoCAD DWG files worldwide...
- ^ "DWG: The Registration Attempts & Successes from WorldCAD Access". Archived from the original on July 17, 2011. Retrieved July 1, 2008.
- ^ a b c "Autodesk - Developer Network - RealDWG". Archived from the original on January 16, 2021. Retrieved March 4, 2021.
- ^ Originally, OpenDWG Alliance. "Open Design Alliance". Archived from the original on May 28, 2007. Retrieved June 21, 2007.
- ^ [1] Archived December 27, 2008, at the Wayback Machine
- ^ "Between the Lines: How to identify some problem DWG files". Archived from the original on July 20, 2011. Retrieved September 22, 2007.
- ^ [2] Archived April 17, 2007, at the Wayback Machine
- ^ This "TrustedDWG code" is encoded into DWG files in a fashion that is not humanly readable. This may be validated by using a binary editor to search a DWG file.
- ^ Autodesk originally used the term "Trusted DWG", with an embedded space. They modified it removing the space, prior to filing a US trademark application in September 2006, tarr.uspto.gov Archived February 23, 2012, at the Wayback Machine
- ^ a b "FSF promotes need for open DWG packages". Archived from the original on August 10, 2007. Retrieved October 13, 2008.
- ^ a b "GNU LibreDWG". Archived from the original on July 14, 2016. Retrieved July 22, 2016.
- ^ "Autodesk and Bentley to Advance AEC Software Interoperability". July 8, 2008. Archived from the original on February 27, 2009. Retrieved January 1, 2009.
- ^ "Autodesk v. ODA". Archived from the original on October 26, 2008. Retrieved October 16, 2008.
- ^ "Autodesk v. ODA See line 35, Transcript". Archived from the original on October 26, 2008. Retrieved October 16, 2008.
- ^ "Autodesk v. ODA See line 50, Consent Judgment". Archived from the original on October 26, 2008. Retrieved October 16, 2008.
- ^ "Latest Status Info". Archived from the original on June 11, 2008. Retrieved September 10, 2009.
- ^ "Trademark Status & Document Retrieval". tsdr.uspto.gov. Archived from the original on February 18, 2020. Retrieved July 31, 2025.
- ^ "Latest Status Info". Archived from the original on February 23, 2012. Retrieved September 10, 2009.
- ^ "Latest Status Info". Archived from the original on February 23, 2012. Retrieved September 10, 2009.
- ^ "Latest Status Info". Archived from the original on February 23, 2012. Retrieved September 10, 2009.
- ^ "Latest Status Info". Archived from the original on February 23, 2012. Retrieved September 10, 2009.
- ^ "Latest Status Info". Archived from the original on February 23, 2012. Retrieved September 10, 2009.
- ^ DWG TrueConverter USA.autodesk.com
- ^ "Latest Status Info". Archived from the original on June 8, 2011. Retrieved September 22, 2007.
- ^ United States Patent & Trademark Office
- ^ "dwg#page1.tif" (PDF). Archived (PDF) from the original on February 8, 2017. Retrieved September 10, 2009.
- ^ "Ttabvue.uspto.gov" (PDF). Archived (PDF) from the original on February 27, 2017. Retrieved September 10, 2009.
- ^ "Ttabvue.uspto.gov" (PDF). Archived (PDF) from the original on February 11, 2017. Retrieved September 10, 2009.
- ^ "Ttabvue.uspto.gov" (PDF). Archived (PDF) from the original on February 10, 2017. Retrieved September 10, 2009.
- ^ "Ttabvue.uspto.gov" (PDF). Archived (PDF) from the original on February 15, 2017. Retrieved September 10, 2009.
- ^ "Docket -> 3:08-cv-04397 (Autodesk v. SolidWorks)". Archived from the original on September 23, 2009. Retrieved September 10, 2009.
- ^ "Complete text of Autodesk's press release - WorldCAD Access". Archived from the original on December 27, 2010. Retrieved April 15, 2010.
- ^ "ODA Members | Open Design Alliance". Archived from the original on August 23, 2011. Retrieved April 15, 2010.
- ^ United States Patent & Trademark Office
- ^ "Latest Status Info". USPTO. Archived from the original on June 26, 2009. Retrieved September 24, 2011.
- ^ Grabowski, Ralph. "WorldCAD Access". Archived from the original on October 11, 2011. Retrieved September 24, 2011.
- ^ "Summary of Final Decisions Issued by the Trademark Trial and Appeal Board". Official Gazette of the United States Patent and Trademark Office. 1396: 47. November 5, 2013. Archived from the original on February 1, 2014. Retrieved January 31, 2014.
- ^ "Service & Support : Viewers". Autodesk, Inc. Archived from the original on January 31, 2014. Retrieved January 31, 2014.
- ^ Grabowski, Ralph. "upFront.eZine Issue #836". upfrontezine.com. Archived from the original on November 29, 2014. Retrieved November 16, 2014.
- ^ "About DWG". Autodesk.com. Autodesk Inc. Retrieved February 3, 2015.
- ^ Larabel, Michael (January 24, 2013). "FSF Wastes Away Another "High Priority" Project". Phoronix. Archived from the original on November 9, 2016. Retrieved August 31, 2019.
- ^ "GNU LibreDWG Manual". Retrieved January 1, 2026.
- ^ "Is GPLv3 compatible with GPLv2?". Free Software Foundation. Archived from the original on March 30, 2020. Retrieved August 31, 2019.
- ^ Prokoudine, Alexandre (January 26, 2012). "What's up with DWG adoption in free software?". Libre Arts. Retrieved February 4, 2025.
- ^ Prokoudine, Alexandre (December 27, 2012). "LibreDWG drama: the end or the new beginning?". Libre Arts. Archived from the original on March 12, 2025. Retrieved February 4, 2025.
- ^ "libdxfrw/Home". Sourceforge. Archived from the original on August 31, 2019. Retrieved August 31, 2019.
- ^ "FreeCAD and DWG Import on freecadweb.org". FreeCAD Web. November 11, 2014. Archived from the original on August 31, 2019. Retrieved August 31, 2019.
- ^ "Budweiser.dwg benchmark on cadstudio.cz". CAD Studio/ARKANCE. October 11, 2018. Archived from the original on August 23, 2025. Retrieved August 23, 2025.
External links
[edit]- LibreDWG is a work in progress developing Free Software libraries to support DWG files.
- Teigha is a software development platform used to create engineering applications including CAD with native support of .dwg and .dgn files.
- Specification of the .dwg file format provided by Open Design Alliance.
- cad-blocks Example .dwg architecture files.
Overview
Definition and Core Characteristics
The .dwg file format is a proprietary binary vector format developed by Autodesk for storing two-dimensional (2D) and three-dimensional (3D) design data and metadata in computer-aided design (CAD) applications, primarily AutoCAD. Introduced in 1982 with the release of AutoCAD version 1.0, it serves as the native file type for encoding geometric entities, such as lines, arcs, circles, polylines, solids, and surfaces, alongside supporting elements like layers, blocks, dimensions, and textual annotations.[10][1][3] Core characteristics of the .dwg format include its compact binary structure, which enables efficient representation and manipulation of precise, scalable vector graphics without pixelation or loss of detail upon zooming or resizing, in contrast to raster formats. The format incorporates internal compression to reduce file sizes and cyclic redundancy checks (CRC) for verifying data integrity during storage and transfer. While Autodesk maintains control over the format's evolution, it has not published a complete official specification, resulting in partial reverse-engineered documentation by organizations such as the Open Design Alliance to facilitate third-party compatibility across DWG versions from 1982 onward.[11][4][1] This proprietary nature ensures tight integration with Autodesk products but poses challenges for interoperability, as format details evolve with each AutoCAD release, often requiring specific version handling for accurate rendering of entities and metadata. DWG files thus prioritize fidelity to CAD workflows, supporting hierarchical data organization and extensible metadata for attributes like material properties and rendering information, making it a cornerstone for industries reliant on exact technical documentation.[12][13]Primary Applications and Industry Role
The .dwg format serves as the native file type for AutoCAD software, enabling the storage and manipulation of two-dimensional (2D) and three-dimensional (3D) vector-based drawings, including lines, circles, polygons, curves, and associated metadata such as layers and dimensions.[12] Its primary applications center on computer-aided design (CAD) workflows in the architecture, engineering, and construction (AEC) sector, where it facilitates the creation of precise floor plans, elevations, sections, and structural models essential for building design and documentation.[14] In civil engineering, .dwg files support detailed site plans, infrastructure layouts, and construction documentation, allowing engineers to integrate geometric data with annotations for project bidding and execution.[15] Beyond AEC, .dwg finds use in mechanical engineering for part assemblies and manufacturing blueprints, as well as in product design for prototyping and visualization, owing to its capacity to handle complex entities like solids and surfaces.[16] In niche areas such as game design and graphic arts, it enables export of scalable vector graphics for asset creation, though these represent secondary applications compared to core engineering uses.[14] Within the CAD industry, .dwg holds a dominant role as the de facto standard for technical drawings, with approximately nine out of ten AEC professionals relying on AutoCAD-compatible tools that natively process it, ensuring seamless data exchange among architects, engineers, and contractors.[17] This prevalence stems from its interoperability features, which minimize data loss during file sharing, thereby reducing errors in collaborative projects and supporting regulatory compliance in construction workflows.[18] Despite the rise of open formats like .dxf, .dwg's proprietary structure maintains its centrality in proprietary CAD ecosystems, particularly for high-precision tasks where full feature fidelity is required.[17]Historical Development
Origins with Autodesk and AutoCAD
The .dwg file format originated as the native format for Interact CAD, a software package developed by programmer Mike Riddle in the late 1970s.[6][19] Riddle's Interact CAD, first released in 1979, utilized .dwg for storing 2D vector-based drawings on early microcomputers.[3] This format provided a compact binary structure for geometric data, predating widespread personal computing CAD applications.[1] Autodesk, founded in early 1982 by John Walker and a group of four partners initially focused on software development tools, licensed Riddle's .dwg format as the foundation for its flagship product, AutoCAD.[20][21] The company aimed to create affordable CAD software for personal computers, targeting engineers and architects underserved by expensive minicomputer-based systems from competitors like Intergraph and Computervision. AutoCAD version 1.0, released in December 1982, introduced .dwg as its proprietary drawing interchange format, enabling precise 2D drafting with commands for lines, arcs, and text annotations.[22][21] Early AutoCAD implementations ran on platforms like the IBM PC with MS-DOS, supporting up to 512 KB of memory and outputting to plotters or printers.[23] The .dwg format's binary encoding ensured efficiency in file size and processing speed, critical for hardware limitations of the era, while Autodesk's decision to retain its closed structure facilitated control over software evolution.[3] By 1983, AutoCAD's sales exceeded expectations, with Autodesk shipping over 20,000 copies in its first full year, cementing .dwg's role in democratizing CAD access.[21]Version Evolution and Key Updates
The DWG format originated in the early 1980s with AutoCAD's initial releases, using rudimentary version codes like MC0.0 for Release 1.1 and AC1.2 for Release 1.2, which supported basic 2D vector entities stored in a binary structure.[24] Incremental updates through the 1980s and early 1990s, such as AC1006 for Release 10 (1990) and AC1014 for Release 14 (1997), expanded entity types, improved precision for coordinates, and introduced preliminary 3D primitives, reflecting AutoCAD's shift toward more versatile CAD workflows.[24] These early evolutions prioritized file compactness and interoperability within Autodesk's ecosystem, with formats remaining proprietary to prevent reverse engineering.[25] A pivotal update arrived with the AC1015 format in AutoCAD 2000 (1999), which overhauled the internal object model to better accommodate custom and proxy entities from add-on applications, enhancing extensibility while maintaining core backward readability.[24] Subsequent formats followed a pattern of multi-year stability, with AC1021 (AutoCAD 2007–2009) adding robust support for dynamic blocks and annotation scaling, and AC1024 (2010–2012) optimizing for parametric design elements.[24] The AC1027 format, debuting in AutoCAD 2013 and spanning through 2017, integrated advanced 3D subdivision surfaces and cloud collaboration metadata, aligning with broader industry demands for integrated BIM workflows.[24] The current AC1032 format, introduced with AutoCAD 2018 and current through 2025, emphasizes performance gains, including faster save, move, and copy operations for large assemblies, alongside integrity checks via TrustedDWG validation to detect tampering or corruption.[24][26] Updates occur approximately every three to five years to incorporate hardware advancements and new geometric primitives without disrupting established compatibility, though files saved in newer formats require updated software for full editing.[25][2]| Version Code | Associated AutoCAD Releases | Approximate Introduction Year |
|---|---|---|
| AC1006 | Release 10 | 1990 |
| AC1014 | Release 14 | 1997 |
| AC1015 | 2000/2000i/2002 | 1999 |
| AC1021 | 2007/2008/2009 | 2006 |
| AC1024 | 2010/2011/2012 | 2009 |
| AC1027 | 2013–2017 | 2012 |
| AC1032 | 2018–2025 | 2017 |
Milestones in Format Refinements
The .dwg format has seen targeted refinements to its binary structure over decades, primarily to accommodate expanded geometric capabilities, optimize data storage, and enhance file handling efficiency, with updates typically aligned to major AutoCAD releases. These changes have addressed limitations in earlier versions, such as inefficient encoding of complex entities and lack of built-in compression, while maintaining backward compatibility where feasible through version codes embedded in the file header.[24][4] A pivotal refinement occurred with the R11/R12 versions (AC1009 code, released 1990–1992), which expanded the entity database to support basic 3D solid modeling via the Advanced Modeling Extension (AME), introducing new primitive types like polytriangles and 3D faces alongside refined wireframe data encoding for improved volumetric representation. This marked a shift from predominantly 2D vector storage to hybrid 2D/3D capabilities, necessitating updates to the variable-length entity records and header variables for spatial metadata.[27] Further structural enhancements came in the 2000 series (AC1015 code, 1999 release), which reorganized the file's object-oriented layer to integrate ObjectARX runtime support, refining proxy entity handles and extended data (XDATA) sections for better extensibility with third-party objects while optimizing the sentinel-based sectioning of the binary stream.[27][4] In 2004 (AC1018 code), the format introduced native compression using a variant of the LZ77 algorithm applied to entity and object data sections, significantly reducing file sizes for dense drawings without loss of fidelity, alongside refinements to the thumbnail preview and preview image encoding for faster rendering.[4][27] The 2018 update (AC1032 code) focused on performance optimizations in the binary parsing and serialization logic, streamlining open and save operations for files with high numbers of external references and proxy graphics, which reduced processing overhead in large-scale projects.[28]Technical Specifications
Binary File Structure and Data Encoding
The .dwg file format utilizes a proprietary binary structure optimized for compactness, storing vector-based 2D and 3D design data alongside metadata such as layers, styles, and object properties.[1] The format lacks an official public specification from Autodesk, with technical details primarily derived from reverse-engineering efforts by organizations like the Open Design Alliance (ODA), which maintains compatibility libraries for non-Autodesk software.[4] This structure evolved across versions, from early releases like AutoCAD R10 (1987, version code AC1006) to modern ones like AutoCAD 2018 (AC1032), with backward compatibility ensured for reading older files in newer software.[1] Files employ little-endian byte order and incorporate error-detection mechanisms, including Cyclic Redundancy Checks (CRC), to verify integrity across sections.[1] The file commences with a file header of fixed initial bytes, where the first six bytes encode the version identifier as an ASCII string (e.g., "AC1012" for R13, released in 1994; "AC1027" for 2007).[1] This is followed by header variables—a variable-length array of key-value pairs storing drawing metadata, such as insertion units (e.g., millimeters or inches), plot styles, viewports, coordinate system origins, drawing extents (minimum and maximum X/Y/Z limits), creation and last-saved timestamps (in DOS date format until later versions adopted Unix epochs), and flags for encryption or compression.[1] A CRC value concludes the primary header, with a duplicate header often appended near the file's end for redundancy and recovery purposes.[13] Section locations, lengths, and checksums are also tabulated in the header to facilitate parsing.[1] Subsequent sections delineate the drawing's content hierarchically. The classes section defines object types (e.g., AcDbLine for lines, AcDbCircle for circles), including class names, C++-derived parent classes, and instance counts, enabling polymorphic handling of entities.[1] The core object data section (often labeled AcDb:AcDbObjects) houses both graphical entities—such as points (2D/3D coordinates as IEEE 754 doubles), polylines (vertex arrays with bulge factors for arcs), and solids (faceted meshes or NURBS surfaces)—and non-graphical elements like layer dictionaries, block definitions, and viewport configurations.[1] An object map follows, comprising a table of handles: 64-bit (or shorter in older versions) unique identifiers that pair 4-bit type codes with offsets into the object data, allowing efficient reference resolution without sequential scanning.[1] Optional sections may include raster image data, free space maps for incremental updates, and padding for alignment.[13] Data encoding prioritizes efficiency through variable-length constructs rather than fixed records. Primitive types include bit flags (1 bit for booleans), raw bits (1-3 bits for small enums), bitshorts (16 bits, little-endian), and bitlongs (24 or 32 bits) for integers, with doubles (64 bits) for coordinates and handles.[13] Strings are encoded with a prefix length (UInt16 or variable), followed by UCS-2 (UTF-16 little-endian) characters in versions post-2000, or earlier code pages like ANSI.[4] Geometric parameters, such as line endpoints or arc radii, are serialized directly with type-specific fields (e.g., a CIRCLE entity includes center point, radius double, and thickness).[4] Later versions (e.g., R2004 onward) integrate compression via algorithms like deflate for sections, Reed-Solomon error correction in some headers, and optional proxy encryption (e.g., AES-based for password protection), though core entity data remains unencrypted unless flagged.[4] CRC checksums are computed per section using a polynomial like 0xEDB88320, ensuring detection of corruption during file transfer or storage.[1] These mechanisms render .dwg files smaller than ASCII alternatives like DXF while complicating direct human readability.[13]Supported Geometric Entities and Metadata
The DWG format supports a variety of 2D and 3D geometric entities representing vector-based primitives and composite objects used in CAD drawings. These entities encode position, shape, and connectivity data in binary form, enabling precise representation of lines, curves, surfaces, and solids. Basic 2D entities include lines (straight segments defined by start and end points), arcs (circular segments with radius, start/end angles), circles (complete circular outlines), polylines (connected sequences of line or arc segments), ellipses (oval curves), and splines (smooth parametric curves approximated by control points and knots).[29] More advanced 2D elements encompass hatches (filled boundary regions with patterns) and multipolygons (closed polyline loops with associative fills).[29] For 3D geometry, DWG accommodates faces (triangular or quadrilateral polygonal surfaces), solids (bounded 3D volumes from extruded or revolved profiles), traces (four-sided planar polygons), and surfaces (meshed or ruled areas, including non-planar meshes). Complex 3D objects such as 3D solids (closed polyhedral boundaries) and rays/xlines (infinite half-lines or bidirectional lines) extend modeling capabilities for architectural and mechanical designs. Support for these entities has evolved across DWG versions, with later iterations (e.g., post-2000) adding parametric surfaces, NURBS, and meshes, though compatibility requires version-specific handling to avoid data loss.[29][30] Metadata in DWG files is stored separately from geometric data via symbol tables, which define non-graphic properties applied to entities. Key tables include the layer table (grouping entities by visibility, color, and linetype), linetype table (patterns like dashed or dotted lines), block table (reusable symbol definitions for inserts), text style table (font and formatting specs), and dimension style table (annotation standards). Additional metadata encompasses attribute definitions (named data tags within blocks), dimension entities (aggregated lines, arrows, and text for measurements), viewports (display regions), and system variables (drawing-wide settings like units and limits). These elements ensure organizational integrity and interoperability, with blocks allowing hierarchical reuse of geometry and metadata.[31][29]| Category | Examples of Supported Elements |
|---|---|
| 2D Geometric Primitives | LINE, ARC, CIRCLE, POLYLINE, ELLIPSE, SPLINE, HATCH[29] |
| 3D Geometric Primitives | 3DFACE, SOLID, SURFACE, 3DSOLID, TRACE[29] |
| Metadata Symbol Tables | LAYER (properties like color, lineweight), LINETYPE (dash patterns), BLOCK (symbol definitions), DIMSTYLE (measurement formats)[31] |
