Skip to main content

Hi ,

Is there any way to use an ifc file containing ifc objects, extract a specific object , then put it in precise locations in another ifc file that I am creating in the workflow?

for exemple if I am interested in using this ifcDoor object that is inside a file1.ifc file : 

and the positions where i want to put this ifcDoor are where the 2d doors (the red lines) of my input file are located (my input is a dwg file containg 2D doors):

All I can do now is just extrude those 2d doors , add ifc attributes to them , and them write them to ifcDoor writer .  

but they don't even look like doors :

i want the doors to look like the ones in my file1.ifc file (their color , geometry , texture )

I'm searching for a way to do it , but I am afraid that it is impossible .

Hi @yagami9 

This should be possible.

Extract the rotation of the 2d doors.
Use a FeatureJoiner to join the geometry from the IfcDoor

Rotate the IfcDoor with the rotation angle derived from the 2d door

Send this to an Ifc Writer.

Can you share a sample dataset?

Jasper


Hello @jasperwis 

Thanks a lot for the help !

I attached a dwg file with a simple floor plan and a an ifc file that I want to use one of its doors geometry (for exemple the door with the name = Haustuer) .

 

Yagami


Hi @yagami9 

 

Attached is a workspace to align the IfcDoors with de DWG blocks.

 

 

Result:

 

 

 

 

May be you will need to add a Scaler, if you want the width of the door to match the dwg.

I have also added a SolidBuilder and SolidDissolver to get rid of some disturbing parts.

And I manually selected a good origin point to match the pivoting point of the door.

 

I haven’t added the ifc writing part yet.
Jasper

 


@jasperwis thanks a lot !!! it works 

I really appreciate your time and help


Reply