Python equivalent to Family.Types node?


I’m sure the answer is obvious when I’ll see it, but I can’t figure out how to get the family types from a family in python. In other words, what is the python equivalent to the Family.Types node :slight_smile: ???

1 Like

You need to get the family type Ids first, then the elements. Try working from here:

Thanks! :slight_smile:

family_type_ids = family.GetFamilySymbolIds()
family_types = [doc.GetElement(fam_type_id) for fam_type_id in family_type_ids]
1 Like