I am working with the Elements, Element Types and Families. I was wondering if someone could help clear up how things are selected in dynamo and make sure I have the Revit Hierarchy correct. (Image copied form the Primer.
Using Element Types with Family Instances and All Elements of Type I get 6,072 elements. What are these elements? Using code from Einar_Raknes in post Collect all categories in a project I get 113,172 Element ID’s. Thats a huge difference in Element counts.
FamilyInstance.Type then return 525 elements while Family Symbol returns 1,636. FamilyInstance.Type also will not take Mullions and Curtain Panels while Element.GetParameterValueByName will.
Finally FamilyType.Family return 303 and Family returns 616.
I know the end numbers are effected by how I first collected the elements but its a big difference at the end.
What is Element Types set to FamilyInstance collecting?
What is Element Types set to Family Symbol collecting?
What is Element Types set to Family Collecting?
Though it has been two years, I still decide to share my understandings, might help others who find this post.
There are 4 kinds of elements.
First one is family instance, such as sofa, sink, table. All family instance have full “category-family-type” hierarchy.
Second one includes some selectable-in-Revit elements, such as walls, floors, mullions, dimensions. These elements only have an incomplete hierarchy of “category-type”.
Third one includes abstract elements, such as family, element type. These elements have neither category nor type.
Fourth one is hard to describe. It includes tags, but also could be family-instance-format things like bricks, elevation mark pointers, handrails…(I haven’t get the reason why these are not the first kind, any help?). These elements have full “category-family-type” hierarchy but are not family instances.
Now for your questions: Element Types set to FamilyInstance is collecting all family instance in the project, only the first one from above. Element Types set to Family Symbol is collecting all types in the project. including first, second and fourth one from above. Element Types set to Family is collecting all families in the project, including first and fourth one from above.
For your pictures:
The difference between ID result and family instance result are second, third and fourth kind of elements.
The difference between mullion&panel free family instance result and family symbol result are second and fourth kind of elements, mullion and curtain panels.
The difference between mullion&panel free family instance result and family result are the fourth kind of elements, mullion and curtain panels.
I know this is an old thread but I’m just recording some tutorials for our staff and just thought I’d give my tuppence worth for anyone else coming across this thread…
Family: Returns all Families in the project. I’m not 100% clear how this relates to the actual families in Revit though but you can then pull the required family types using the Family.Types node…but you will get the same result if you elements Family Symbol.
Family Symbol: Returns all Family Types (placed or not) - use this to access type Parameters for all family types.
Family Instance: All instances of families placed in the model (use this to access Instance Parameters)