Hi all,
FamilySymbolId of System Family throws an exception in this case. Loadable family types work fine.
What could cause the problem?
Exception: The familySymbolId does not represent a valid FamilySymbol record in the document.
lvl = UnwrapElement(IN[0])
lvlFilter = ElementLevelFilter(lvl.Id)
famType = UnwrapElement(IN[1])
famFilter = FamilyInstanceFilter(doc,famType.Id)
op = FilteredElementCollector(doc).OfClass(Wall).WherePasses(lvlFilter).WherePasses(famFilter).ToElements()
OUT = op
SeanP
2
I would just use the FEC like this to get what you want:
op = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType().WherePasses(lvlFilter).ToElements()
There are also several nodes out there that collect elements by levels as well if you want to go that route.
So, I guess it’s not possible to create a FamilyInstanceFilter with a System Family?
SeanP
4
Family Symbols don’t really exist for system families.