DWG, DXF, LandXML and IFC: A Civil Engineer's Guide to File Interoperability
DWG is AutoCAD's native drawing format, DXF is the open text-based exchange version of the same drawing data, LandXML is an open standard for civil engineering data such as alignments, profiles and surfaces, and IFC is the open standard for building information models (BIM). Use DWG/DXF for drawings, LandXML to move road and surface design intelligence between civil tools, and IFC to move building models between BIM tools.
What each format actually contains
| Format | Owner / standard | Contains | Keeps engineering intelligence? | Typical use |
|---|---|---|---|---|
| DWG | Autodesk (proprietary, binary) | Lines, polylines, text, blocks, layers, 3D faces | Only as geometry (custom objects may be proxies) | Native AutoCAD and Civil 3D drawings |
| DXF | Autodesk (published, text) | Same drawing entities as DWG | Only as geometry | Exchange between any CAD programs |
| LandXML | Open industry schema | Alignments, profiles, cross-sections, TIN surfaces, points, pipe networks | Yes, for civil objects | Civil 3D, OpenRoads, 12d, and other civil software |
| IFC (2x3 / 4) | buildingSMART (ISO 16739) | Walls, slabs, columns, openings, properties | Yes, for building elements | Revit, ArchiCAD and other BIM tools |
| CSV / TXT (PNEZD) | Plain text | Survey points: number, northing, easting, elevation, description | Points only | Total stations, GNSS, survey software |
DWG vs DXF: what is the difference?
Both store the same kind of drawing data. DWG is compact and binary; DXF is readable text and documented, which is why almost every CAD and engineering program can read it. Converting DWG to DXF does not lose ordinary geometry, but specialised objects (for example Civil 3D corridors and surfaces) are often stored as proxy objects that other programs see only as flat geometry or not at all.
Keeping elevations (Z) when converting
Many "DWG to PDF" or "DWG viewer" workflows flatten the drawing. For civil work, elevation is the data. Check that:
- polylines keep their vertex elevations (3D polylines, or an elevation property on 2D polylines);
- contour lines keep their elevation so they can rebuild a surface;
- survey points come across as 3D points or blocks with elevation attributes;
- 3DFACE entities are preserved for surfaces.
If a drawing has lost its Z values, rebuild the surface from the original survey file instead.
LandXML: the bridge between civil tools
LandXML is the best way to move design intelligence rather than lines. An alignment exported as LandXML arrives in Civil 3D, OpenRoads or 12d as a real alignment with stations and curves, not as a polyline. The same applies to vertical profiles and TIN surfaces. For roads, a sensible workflow is:
- Design and compare options quickly in a fast, automated tool.
- Export alignments, profiles and surfaces to LandXML.
- Continue detailed design and documentation in the office's standard software if required.
IFC: moving buildings between BIM tools
IFC carries walls, slabs, columns, beams, openings and their properties. Use IFC4 where possible. Import from Revit or ArchiCAD to coordinate site and building, and export building models for review, clash detection or further development in BIM tools.
How Rawax handles files
- Open DWG directly: the "Open DWG" button reads the drawing on the server and converts it into editable platform elements with their elevations, without a separate conversion step for the user.
- DXF import and export: drawing sheets, 3DFACE surfaces, and CUT/FILL layers.
- LandXML import and export: alignments, profiles and surfaces with Z. Importing LandXML is also the recommended way to bring Civil 3D surfaces in 3D.
- IFC 2x3 / IFC4 import and export for buildings.
- Survey formats: CSV, TXT and XLSX points in PNEZD and other orders, plus JobXML, SDR and GSI from Trimble, Sokkia and Leica instruments.
- Civil 3D bridge: a Dynamo script that builds native assemblies, corridors and surfaces inside Civil 3D from a Rawax design.
- PDF sheets and reports with the office title block.
Note: Civil 3D custom objects inside a DWG (such as corridors) are read as 2D geometry. To get them in 3D, export LandXML from Civil 3D and import that.
Related reading: AI road design and civil engineering automation.
FAQ
What is the difference between DWG and DXF?
DWG is AutoCAD's native binary format; DXF is a documented text format with the same drawing entities, designed for exchange between programs. Ordinary geometry converts between them without loss.
What is LandXML used for?
LandXML is an open format for civil engineering data such as alignments, profiles, cross-sections, TIN surfaces, survey points and pipe networks. It lets civil design software exchange real design objects instead of plain lines.
Can I open a DWG file without AutoCAD?
Yes. Several tools can read DWG files. Rawax opens DWG files in the browser through its server and turns them into editable elements with elevations.
Do Civil 3D corridors and surfaces survive in DWG?
Other programs usually see Civil 3D custom objects as flat proxy geometry. To transfer alignments and surfaces in 3D, export LandXML from Civil 3D.
What is IFC in civil engineering?
IFC (Industry Foundation Classes, ISO 16739) is the open BIM standard for building elements and their properties. In civil projects it is used to exchange buildings and structures between BIM tools such as Revit and ArchiCAD.
Rawax is a browser-based civil engineering platform that combines survey, roads, architecture, structure, MEP, quantities and project management in one model, with an AI assistant that works in English and Arabic.
Open the Rawax platform