Guides

DWG to IFC: Convert a 2D AutoCAD Plan into an IFC Model

•By ScanToBIM-CAD Team•1400 words
DWG to IFC: Convert a 2D AutoCAD Plan into an IFC Model

Short answer: converting a DWG to IFC is easy when the DWG holds 3D objects and hard when it is a 2D floor plan, which is what most people have. For a plan, something has to read the lines as walls, doors and windows before there is anything to write into the IFC. Below are the three ways that work, and what the result should contain.

Why DWG to IFC converters return empty or flat files

IFC is the open BIM format maintained by buildingSMART (ISO 16739). An IFC file does not store lines; it stores objects: a building with storeys, walls with a thickness and a height, doors and windows placed in openings of those walls, slabs.

Most DWG to IFC converters translate geometry one to one. A 3D solid in the DWG becomes a shape in the IFC, which is fine for a steel part or a 3D model from AutoCAD. A floor plan is different: it is lines on a flat plane. Users on the FME community and the Autodesk forums describe the result well: an IFC with one block in it, or a file of a few kilobytes with no geometry at all.

A 2D DWG floor plan of a two-storey house in a CAD program
The 2D DWG used below: two plans, every wall drawn as two lines with a hatch.

Three ways to get an IFC model from a DWG

1. Model it in a BIM program, then export IFC

Link the DWG in Revit, ArchiCAD or BricsCAD BIM, model the walls, doors and windows over it, and export IFC. You get a complete IFC with every property you add, at the price of modeling each floor by hand. Our DWG to Revit guide shows the Revit steps.

2. Use a geometry converter (for 3D DWG)

Tools such as Aspose's online converter, FME, Datakit CrossManager and the ODA SDK translate a DWG to IFC directly. They fit best when your DWG already holds 3D solids or AEC objects, and you mainly need the geometry in IFC for coordination.

3. Read the floor plans automatically

ScanToBIM-CAD (thescantobim.com) is built for the 2D case. It reads the plans in your DWG or DXF: the scale from the drawing units, the walls from their two faces, the doors from their swings, the windows from the lines across the wall, one storey per plan. Then it writes the building as an IFC4 model, with a native Revit file and a DXF drawing set beside it.

IFC structure of the converted model: IfcProject, IfcSite, IfcBuilding, three IfcBuildingStorey with IfcWall, IfcDoor, IfcWindow and IfcSlab
What is inside the IFC made from the sample DWG: storeys, walls with their thickness, doors and windows in openings, and slabs.
Ground floor of the IFC model cut open, showing walls, doors and windows
The ground floor of the IFC, cut open in a viewer.

What a good IFC from a DWG floor plan contains

  • An IfcBuildingStorey for each floor plan, at its height, so plans and sections work in any BIM program.
  • IfcWall objects with the thickness drawn in the plan and the height of their storey, not flat lines.
  • IfcDoor and IfcWindow placed in IfcOpeningElement voids, so the walls are really cut.
  • IfcSlab floors from the outline of the walls, and a roof slab on the top storey.
  • Metres as units and the building near the origin, so it lines up when you link it.

Open the file in a free IFC viewer before you send it on: select a wall and look at its class and storey. If you see IfcBuildingElementProxy or a single object for the whole plan, the converter translated geometry but did not read the plan.

Exterior of the two-storey IFC model made from the DWG
The whole model from outside.

Comparison

Model in a BIM programGeometry converterPlan reading (ScanToBIM-CAD)
Best inputAny DWG3D DWG, AEC objects2D floor plans (DWG, DXF, PDF)
IFC classesFull, as you modelShapes as drawnStoreys, walls, doors, windows, slabs
Your timeHours per floorMinutesMinutes
Also givesYour native modelThe IFCRevit .rvt and a DXF drawing set

Convert your DWG to IFC

Your first project is free, IFC, Revit and DXF included. Upload a DWG or DXF floor plan; it usually takes about a minute.

Ready to Convert Your Point Cloud?

Upload your scan free and view it in your browser within minutes. We measure your building and show your price before you order, and it is charged only if we deliver the model. No card needed to upload.

Upload a Scan - Free

Related Posts