What is a DWG file?
A DWG file is an AutoCAD drawing. Most DWGs are 2D plans and technical drawings rather than 3D models, so they cannot be "opened in 3D" – you either export 3D solids from AutoCAD or rebuild the shape from the 2D outline in CAD.
| File extension | .dwg |
|---|---|
| Type | AutoCAD drawing (mostly 2D, proprietary) |
| Developed by | Autodesk AutoCAD |
| First released | 1982 |
| Encoding | Binary, closed |
| Colour / materials | Layers and colours |
| Units | Stored in the drawing |
| Exact CAD geometry | Yes (2D geometry, 3D solids) |
| MIME type | — |
| Opens in 3dfiles | No (closed format) – export it as described below |
About the DWG format
DWG is the native format of AutoCAD and many compatible programs (BricsCAD, DraftSight, ZWCAD). It is closed, but the Open Design Alliance libraries let other programs read it. DXF is its open, text-based exchange cousin.
How to open or convert a DWG file
- To view: Autodesk DWG TrueView (free, Windows) or Autodesk Viewer in the browser.
- If the drawing contains 3D solids: in AutoCAD use STLOUT (or 3DPRINT) for an STL.
- For a 2D outline: open it in FreeCAD (with the free ODA File Converter installed) or Fusion, then extrude the profile and export STEP/STL.
Common problems
"It is flat" after import
The DWG only contains 2D lines. Someone has to extrude or model it in 3D – there is no automatic conversion from a plan to a solid.
Questions about DWG files
DWG or DXF?
DXF is the open exchange version of the same data and is accepted by more programs, including laser and CNC software.