Python equivalent to Family.Types node?

Hi,

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:
http://www.revitapidocs.com/2018/8989a269-c516-0ace-5365-864a61df1103.htm

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