viewhack

Check an AutoCAD DWG file without AutoCAD

An architect, a contractor or a tender sent you a .dwg and nothing on your computer or phone opens it. Drop it here to see what it is before you install anything: the DWG version and which AutoCAD releases write it, the oldest AutoCAD or free DWG TrueView that opens it, the preview picture AutoCAD stored inside, and the title, author, “last saved by”, dates and fonts recorded in the file.

The file is read by this tab on your device and is not uploaded, so a client’s plans or a tender drawing go nowhere.

What it shows

DWG versions and AutoCAD releases

Each DWG format is written by several AutoCAD releases. Every AutoCAD opens its own format and all older ones, so the oldest program that opens a file is the first release of its format. DWG TrueView is Autodesk’s free viewer for Windows and carries the same year numbers.

Version stringFormatWritten by
AC1032AutoCAD 2018AutoCAD 2018 and every release since
AC1027AutoCAD 2013AutoCAD 2013, 2014, 2015, 2016, 2017
AC1024AutoCAD 2010AutoCAD 2010, 2011, 2012
AC1021AutoCAD 2007AutoCAD 2007, 2008, 2009
AC1018AutoCAD 2004AutoCAD 2004, 2005, 2006
AC1015AutoCAD 2000AutoCAD 2000, 2000i, 2002
AC1014R14AutoCAD Release 14
AC1012R13AutoCAD Release 13
AC1009R11/R12AutoCAD Release 11 and 12
AC1006, AC1004R10, R9AutoCAD Release 10 and 9
AC1003, AC1002, AC10012.6, 2.5, 2.2AutoCAD 2.6, 2.5 and 2.2 (1986–87)

How the file is read

The fixed header
From R13 on, byte 0x0B holds the maintenance release, the four bytes at 0x0D the address of the preview, and the two at 0x13 the code page. The preview block starts with a fixed 16-byte marker (1F 25 6D 07 …) that is checked before anything is read, then lists each stored picture with its type: 2 for a bitmap, 3 for a WMF, 6 for a PNG.
The 2004 format and later
From AC1018 on, the file’s directory is a 108-byte header at 0x80 scrambled with a fixed pseudo-random sequence. It is unscrambled, then the page map and section map it points to are read, and the SummaryInfo, AppInfo and FileDepList sections are unpacked (they are compressed with an LZ77 scheme). All of this follows the Open Design Alliance’s published Open Design Specification for .dwg files; no other DWG program’s code is used.
Tested on
The FAA’s airport construction standard detail F-163-3 (a wildlife deterrent fence skirt, a US government work): 117,765 bytes, AC1027, saved by AutoCAD 2017, with a 256 × 76 PNG preview, “last saved by” filled in, the other properties empty, and Arial as its one font. The bitmap, WMF and 2004-format paths are tested on files generated from the specification.

What this cannot do

How to see the drawing

On this site, through DXF
The free ODA File Converter from the Open Design Alliance (Windows, macOS and Linux) converts a folder of DWG files to DXF. Set the output to DXF and a version such as 2018, convert, then open the .dxf in the DXF viewer, which draws it with its layers, measures it and saves it as SVG or PNG, on your device.
On Windows
Autodesk’s free DWG TrueView opens, measures and prints DWG files. Its DWG Convert tool saves a copy in an older DWG version for someone whose AutoCAD is older than the file.
Ask the sender
A PDF plot is often what you need. The “last saved by” name and the dates here tell them exactly which file you mean.