How to Simulate Join Geometry Between Host and Linked File Using Revit API?

How to Simulate Join Geometry Between Host and Linked File Using Revit API?

127_mariz_amgad_habib
Community Visitor Community Visitor
242 Views
1 Reply
Message 1 of 2

How to Simulate Join Geometry Between Host and Linked File Using Revit API?

127_mariz_amgad_habib
Community Visitor
Community Visitor

Hi everyone,

 

I'm working on a Revit project where the architecture model is the host, and it contains a linked structural model. In the architectural model, I have brick walls that are attached to levels and intersect with Double T slabs in the linked structural file.

 

My Goal:

 

I want the architectural walls to be cut by the slab shapes in the linked model — similar to what would happen if I used Join Geometry between the walls and slabs. However, Revit doesn't allow Join Geometry between host elements and elements in a linked file.

What is the best approach using the Revit API to simulate a Join Geometry operation between elements in the host model and geometry from a linked file?

0 Likes
243 Views
1 Reply
Reply (1)
Message 2 of 2

TripleM-Dev.net
Advisor
Advisor

Hi @127_mariz_amgad_habib ,

 

How would you do it in the UI =>

A. edit the host model by lowering the walls so they don;t intersect the structural components.

 OR

B. Cut the walls with a void family that matches the intersecion with the structural components.

 

In the API: (in short)

A; detect the intersections (ElementIntersectsSolidFilter) and report back to user what should be edited.

B: as A, detect the intersections and place the void family (could be a simple rectangle Void cut family) and cut the wall.

 

Doing this in the API will be no simple task, I have created a VoidCut intersection tool, but don't let it cut all, I use it to make opening in walls where beams go thruw the wall.

If a wall clashes with structural components over almost the full length of a wall, I just reduce the height of the wall.

 

Note: ElementIntersectsSolidFilter is only the end part of finding the intersection a lot code is needed to get to that point.

 

I hope this points you a bit in the right direction.

 

- Michel

0 Likes