Message 1 of 4
Get the possible values for a family instance parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a parameter of family instance called DoorEnd.
The values of this parameter are a list of family types (OST_DuctTerminal).
I know the following way to get all possible values:
Element element = document.GetElement(doorParameter.AsElementId());
IEnumerable<FamilySymbol> possibleValues = new FilteredElementCollector(document)
.WhereElementIsElementType()
.OfCategory(element.Category.BuiltInCategory)
.OfClass(typeof(FamilySymbol))
.Cast<FamilySymbol>();
But the value of this parameter is represented as NestedFamilyTypeReference:
As far as I understand, it is impossible to collect the list because it is nested.
If you have any ideas on how to collect possible values, please share them.
Thank you.