I’m trying to place several instances in a model, using the “doc.Create.NewFamilyInstance()” method.
Hence, I want to narrow my list of family types down to a single type, to be passed as a FamilySymbol parameter.
I do get the Revit family I want, however, the Revit family contains several types and I just can’t boil it down to one of them.
Just another little question:
“x.Family.Name” and “Element.Name.GetValue” - are those pure API methods?
I mean, would they work outside of Dynamo environment (Python shell, C# addins and such)?
Thanks again!
filter_typ = next((x for x in fam_symb_lst if x.Family.Name == "SP_2D Chair" and Element.Name.GetValue(x) == "40/40"), None)
What is the purpose to digging up this 3-year-old subject without context ? Please Start a new topic in this case. here is one of the valid reasons why old topics could be automatically closed