Skip to content
For software developers · 3D InterOp SDK

Convert DWG to 3DXML in your application

3D InterOp is a CAD interoperability SDK that lets your software read DWG files and write 3DXML, generating the 3DXML mesh from the geometry it reads, with tessellation settings your application controls.

Spatial does not offer an online converter or a desktop conversion app. 3D InterOp is a component that software vendors embed in their own products.

  • Reads DWG · Writes 3D XML
  • Mixed geometry → triangle mesh
  • C++ / C# APIs
plan.dwgDWG · drawing sheets
Your application
3D InterOp SDK
DXF/DWG readerTessellation3D XML writer
assembly.3dxml3D XML · tessellated · product structure

DWG to 3DXML at a glance

DWG can mix exact solids and facets; 3D XML stores triangles only, so the whole model is tessellated when it is written.

DWG (source)3D XML (target)
Full nameAutoCAD Drawing3D XML
Standard / ownerAutodeskDassault Systèmes
File extensions.dwg.3dxml
Geometry2D drawings and 3D dataTessellated geometry
Assemblies / structureBlocks and layersYes
PMINoneGraphical PMI
3D InterOp supportRead; write drawings onlyRead and write

What's preserved, what changes

Here is what your application can expect to carry across from DWG to 3D XML.

  • Changes
    Geometry is tessellated
    The exact DWG B-Rep is replaced by a triangle mesh, generated by 3D InterOp from the exact geometry it reads. Accuracy depends on the tessellation settings your application uses.

Why software vendors add DWG to 3DXML conversion

Lightweight review

3D XML carries tessellated geometry that opens much faster than the full CAD model, so design reviews and digital mockups stay responsive.

Sharing outside engineering

Marketing, training and sales teams rarely have CAD software. A 3D XML file gives them the shape in a format their tools can open.

Easier handling of large assemblies

Without exact surfaces and feature data, 3D XML files are easier to transfer and display, even for large assemblies.

Things to check before you ship

  • Written 3DXML versions: 3D XML 4.3, as static tessellation.
  • Only static tessellation is written, not XML tessellation.
  • Supported DWG input: DXF/DWG 2.5 to 2027.
  • A DWG file that only contains 2D drawings has no 3D geometry to write.
  • Test tessellation settings on your heaviest parts: finer meshes mean larger files.
  • Validate a sample of translated files in the target system your users actually work with.

Working with Spatial was a real milestone for us: Thanks to the powerful 3DInterOp library, we were able to successfully bring our complex CAD-based solutions to the cloud while remaining flexible to meet individual customer requirements. For us, Spatial is not just a technology partner, but a true enabler of our product strategy.

Dr. Arno Michelis, Founder, Simus Systems

Read the Case Study

About the formats

  • Source format

    What is a DWG (.dwg) file?

    DWG is the native file format of Autodesk AutoCAD, used for 2D drawings and 3D models. It is one of the most widespread formats for technical drawings.

  • Target format

    What is a 3D XML (.3dxml) file?

    3D XML is Dassault Systèmes’ lightweight XML-based format for sharing 3D product data. 3D InterOp reads and writes its tessellated representation, with product structure and graphical PMI.

Frequently asked questions

3D InterOp tessellates the geometry it reads from DWG when it writes 3DXML. Your application sets the tolerances, so it controls the trade-off between accuracy and file size.

3D InterOp writes 3D XML 4.3 with static tessellation. XML tessellation isn’t written.

Then there is no 3D geometry to write to 3DXML: 3D InterOp needs 3D content in the DWG file for this conversion.

Both the 2D content (drawing sheets) and the 3D data stored in the file.

No. 3D InterOp writes drawing sheets to DXF and DWG, but 3D export to these formats isn’t supported. To send 3D data back to AutoCAD users, write a neutral 3D format such as STEP.

3D InterOp reads DXF/DWG 2.5 to 2027.

3D InterOp writes 3D XML 4.3, as static tessellation.

  • Building software that needs to convert DWG to 3DXML?

    3D InterOp is an SDK that lets your application read DWG and write 3D XML alongside 30+ CAD and BIM formats.