Skip to main content
Solved

Extract an IFC object from one file and put it in a precise location of another IFC


yagami9
Contributor
Forum|alt.badge.img+6

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 .

Best answer by jasperwis

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

 

View original
Did this help you find an answer to your question?

4 replies

jasperwis
Enthusiast
Forum|alt.badge.img+15
  • Enthusiast
  • March 12, 2024

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


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 13, 2024

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


jasperwis
Enthusiast
Forum|alt.badge.img+15
  • Enthusiast
  • Best Answer
  • March 13, 2024

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

 


yagami9
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • March 13, 2024

@jasperwis thanks a lot !!! it works 

I really appreciate your time and help


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings