is family instance joined?

is family instance joined?

russ.green
Advocate Advocate
1,111 Views
5 Replies
Message 1 of 6

is family instance joined?

russ.green
Advocate
Advocate

I can't see anything using RevitLookup but is there a way to tell if a family instance has been joined to something?

 

 

When tranforming an edge I'm getting different results after joining the family to another family or a wall, etc.

Russ Green
0 Likes
Accepted solutions (1)
1,112 Views
5 Replies
Replies (5)
Message 2 of 6

rosalesduquej
Alumni
Alumni
Accepted solution

Dear Russ,

 

Hi, I raised the question to our engineering team, and here is the response from one of them.

 

I think there are a couple of things to try:

 

1.) JoinGeometryUtils.GetJoinedElements()

 

For this one you could check out the post on Jeremy Tammik blog: http://thebuildingcoder.typepad.com/blog/2014/02/getting-two-different-kinds-of-joined-elements.html

 

2.) For concrete framing family instances and walls, you can get the Element’s Location, cast to LocationCurve, and look at ElementsAtJoin.

 

And for this 2nd suggestion you can look at this link. http://thebuildingcoder.typepad.com/blog/transaction/page/2/ Look for the post with title Wall Joins and Geometry.

 

There is also Element.GetGeneratingElementIds() which tells you for a given piece of geometry from an element what element causes this geometry to form.

 

Let us know how it goes, enjoy.

 

Cheers,



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 3 of 6

russ.green
Advocate
Advocate

The first method worked for me.

 

Thanks

Russ Green
0 Likes
Message 4 of 6

Anonymous
Not applicable

can you show me JoinGeometryUtils.JoinGeometry method?

0 Likes
Message 5 of 6

russ.green
Advocate
Advocate

You get the joined elements something like this

 

Dim the_list_of_the_joined As ICollection(Of ElementId) = JoinGeometryUtils.GetJoinedElements(document, familyinstance)

 

You can then check the size of the ICollection or projecess the elements stored in it.

Russ Green
Message 6 of 6

Anonymous
Not applicable
thank you so much, i'm beginer in revit api should I'll need your help any
more.
0 Likes