Hi Everyone, very confused here.
This topic is better named, Family Instances, Families, Family Types, Elements, Element Types and Whats Whats??
Basically I have some ducting in a Revit Model which I would like to select and bring into Dynamo and determine what elements are a Rectangular Duct or Round Duct. There are many ways to do this, but I would like to get an understanding of the hierarchy the Revit API works with or better yet the naming convention as I can’t seem to understand how it it corresponds to Revit itself.
The image below sums up the problem. Looking at the project browser I can see under “Ducts” we have “Oval Duct”, “Rectangular Duct” and “Round Duct”. These are the names I am trying to bring through into Dynamo. To my understanding these are Families. The category is “Ducts” and the Family Types are “Default”.
Now from the node description Element.ElementType this returns the Family Type but I can’t seem connect up any corresponding nodes that take Family Type as an Input. (They all flag yellow). Using the get parameter node and calling for the Family seems to return the Family Type and I have attempted to use FamilyInstance.GetFamily nodes connecting right off the Select Elements block with no luck. I have used the FamilyInstance.GetType block before with the node of All Elements of Category so I assumed it could be used here.
I’m starting to realise I do not have good grasp on the naming convention/hierarchy Dynamo works in. Any help would be greatly appreciated.