DWG is a binary file format used by AutoDesk AutoCAD. It can contain 2D or 3D objects and offers compression and a CRC check for internal data.
LEADTOOLS supports DWG 12, 13, 14, 15 (DWG2000), and 18 (DWG2004) files.
This file format supports loading with different units and viewing multi-degree spline.
This file format is not supported in the non-vector toolkits. Read support for this format is provided in the LEADTOOLS Vector Imaging Pro toolkit and is unlocked when the Vector features are unlocked.
The default extension used by this format is: DWG.
LEADTOOLS supports loading this format as raster image, vector or SVG (Scalable Vector Graphics) document.
LEAD supports the object types listed above, as well as, layers and the grouping of objects. Embedded raster objects are not supported.
File constants associated with this file format are:
Constant | Read Support | Write Support | Description |
---|---|---|---|
FILE_DWG | Yes | No | [124] AutoDesk AutoCAD binary format. |
When DWG files are rasterized, they are 24 BPP.
The following table indicates which objects LEAD can load and which objects it can save:
Object | Load | Save |
---|---|---|
Arc | Supported | Not Supported |
Attdef | Supported | Not Supported |
Attrib | Supported | Not Supported |
BoundaryPolydraw | Supported | Not Supported |
Circle | Supported | Not Supported |
Dimension | Supported | Not Supported |
Directional (2D) Extrusion | Supported | Not Supported |
Ellipse | Supported | Not Supported |
Hatch | Supported | Not Supported |
Insert | Supported | Not Supported |
Leader | Supported | Not Supported |
Lines | Supported | Not Supported |
LWPolyline | Supported | Not Supported |
Mline | Supported | Not Supported |
Mtext | Supported | Not Supported |
Point | Supported | Not Supported |
Polygons | Supported | Not Supported |
Polyline | Supported | Not Supported |
PureLine | Supported | Not Supported |
PurePolygon | Supported | Not Supported |
PurePolyline | Supported | Not Supported |
Ray Object | Supported | Not Supported |
Segment | Supported | Not Supported |
Simple Construction Line | Supported | Not Supported |
Solid | Supported | Not Supported |
Spline | Supported | Not Supported |
Text | Supported | Not Supported |
Tolerance | Not Supported | Not Supported |
Vertex | Supported | Not Supported |
Wpolyline | Supported | Not Supported |
3DFace | Supported | Not Supported |
3DSolid | Supported | Not Supported |
Required DLLs and Libraries
Related Formats
Win32, x64.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document