Skip to main content

I’ve read this article : https://support.safe.com/s/article/autocad-to-ifc-conversion-example that converts a DWG plan consisting of a 3 storey layer , and all the object have a HEIGHT attribute that is used to extrude the 3D geometry from the 2D input , then the ifc file is created with all the infos in a single ifcSpace . 

But my need is different ,in the input , my autocad file has attributes of HEIGHT , as well as TYPE ,which would contain the type of each object (WALL , DOOR , WINDOW , Stairs , etc ).and so i want the output ifc file to be a rich file with multiple types of objects : ifcDoor , ifcWindow , ifcWall ,.. . instead of just a 3D model in an ifcSpace .

You can add an AttributeFilter to separate the features by TYPE, then create a copy of the Space process for each of the different types. If you are starting with an Extruded 2D polygon, the resulting geometry will be fairly simplistic for IFC.

The Doors and Windows add a complication, since they are normally children of Openings, which are in turn children of Walls, while Spaces were children of BuildingStoreys. So you will need to copy the Doors and Windows to Openings, then create GlobalId and ifc_parent_id attributes to link them all together.

The Door and Window features ifc_parent_id should point to the appropriate Opening GlobalId, while the Opening ifc_parent_id should point to the containing Wall GlobalId. The Wall ifc_parent_id should point to the BuildingStorey GlobalId.


You can add an AttributeFilter to separate the features by TYPE, then create a copy of the Space process for each of the different types. If you are starting with an Extruded 2D polygon, the resulting geometry will be fairly simplistic for IFC.

The Doors and Windows add a complication, since they are normally children of Openings, which are in turn children of Walls, while Spaces were children of BuildingStoreys. So you will need to copy the Doors and Windows to Openings, then create GlobalId and ifc_parent_id attributes to link them all together.

The Door and Window features ifc_parent_id should point to the appropriate Opening GlobalId, while the Opening ifc_parent_id should point to the containing Wall GlobalId. The Wall ifc_parent_id should point to the BuildingStorey GlobalId.

Thanks a lot , that is very helpful ! 

I have another question please , is there a way to customize the doors and windows in the end of the process, so that instead of having a door with a geometry extruded from the 2D file , i want to have in the resulting ifc file doors and windows looking normal (using an existing ifc file containing a 3D door for exemple) : 

here is the standard door in AutoCAD
here is how my doors look after i create the ifc file using the extruder transformer!

 

i want the doors to look like this.

 


Reply