Python equivalent to Family.Types node?


#1

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: ???


#2

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


#3

Thanks! :slight_smile:

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