Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get ElementIds of non shared nested families ?

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
338 Views, 0 Replies

How to get ElementIds of non shared nested families ?

Hello,

 

I am unable to get the ElementId of non shared nested family. I will put my case with the help of 3 screenshots (named as 1, 2 and 3).

 

Suppose I have one family (consider as 'Main') and several families are nested in it as non shared type. Those non shared families acts as values of a parameter for Main family.

 

When I select Main family instance using Revit Loopup add-in, I get following things,

 

11

After this, I click on its Parameters, I get following thing

22

Now for the Parameter(Lower Left, strikethrough), its storage type is ElementId, and when I click on its 'AsElementId' property, I get following image.

 

33

For different nested families, it has different ElementId, as shown in fig (3). 

 

Now my question is, how do I get all the ElementId of those nested families of Main family instance (non shared nested families). Is there any way to get those using API?

 

I tried to edit the main Family and collected all its nested families using FilteredElementCollector, but these wont match with the earlier ones (which we got using Revit Lookup).

 

Thanks in advance.

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community