Family instance joined ? and Guatemala Independence day!

By Jaime Rosales

As some of you might know I’m originally from Guatemala, and today we are celebrating 193 years of being Independent from the Spanish colonization. I will share you an aerial picture that I took at the beginning of August of one of the famous volcanoes that can be seen from the city of Guatemala and Antigua Guatemala.

Volcan de Agua – “Water Volcano”

DCIM\101GOPRO

Back to Revit. This time I will talk to you about a question that came from our Autodesk Forum, regarding the check for joined family instances.

http://forums.autodesk.com/t5/revit-api/is-family-instance-joined/m-p/5272857#M7228

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

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

Answer: 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:

Getting Two Different Kinds of Joined Elements

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.

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.

User Response: The first method worked for me.Thanks.

Thank you for reading, until next time.


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading