Join Priority (Switch Join)

Join Priority (Switch Join)

Anonymous
Not applicable
1,527 Views
2 Replies
Message 1 of 3

Join Priority (Switch Join)

Anonymous
Not applicable

Hi All,

 

I've been working for a while with the order in which Revit joins geometry. For instance, in the following example, there is a "table" composed of 4 columns, 4 beams, and 1 slab.

 

Automatically, when I joined the elements, all the intersected volume (from beams and columns) was assigned to the slab. If I click the switch button, it turns the other way: the intersected volume is assigned to the beams and columns, respectively.

 

image.png

 

I'm wondering if there is a way to query which element has the priority in the "join"? I'm using the following method:

 

JoinGeometryUtils.AreElementsJoined(doc, e1, e2); <<<< Query if the elements are Joined.

JoinGeometryUtils.SwitchJoinOrder(doc, e1, e2); <<<< Change the order of the join between the elements.

for example:

Situation A: The slab has the priority above the beam.

 

image.png

Situation B: The beam has the priority above the slab.

image.png

I already checked all the parameters using Revit Lookup and didn't find anything that flags the priority of the join.

 

Any tips of advice will be very well received!

 

Thanks in advance!

0 Likes
1,528 Views
2 Replies
Replies (2)
Message 2 of 3

bhprest
Advocate
Advocate

Can a series of checks using the JoinGeometryUtils.IsCuttingElementInJoin() method achieve what you are looking for?

 

https://www.revitapidocs.com/2019/917ea88b-27cb-e3b1-391f-ecd061975595.htm

 

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

@bhprest Thanks!. Yes, it is a pretty approach. I'll give it a try and I'll come back here later!

 

Regards

0 Likes