4.13 Family Acrobatics
Family -> FamilyType -> FamilyInstance -> FamilyType -> Family
Moving Upstream from FamilyInstance -> FamilyType -> Family
#Boilerplate Code
family_instance = UnwrapElement(IN[0])
family_type_id = family_instance.GetTypeId()
family_type = doc.GetElement(family_type_id)
family = family_type.Family
OUT = family_instance, family_type, familyMoving Downstream from Family -> FamilyTypes -> FamilyInstances
#Boilerplate Code
family = UnwrapElement(IN[0])
family_type_ids = family.GetFamilySymbolIds()
family_types = [doc.GetElement(id) for id in family_type_ids]
OUT = family_typesLast updated
Was this helpful?