# Python equivalent to Family.Types node?

**URL:** <https://forum.dynamobim.com/t/python-equivalent-to-family-types-node/20536>\
**Category:** Uncategorized\
**Created:** [March 28, 2018, 8:53pm UTC](https://forum.dynamobim.com/t/python-equivalent-to-family-types-node/20536 "2018-03-28T20:53:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Perkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_perkov/32/25176_2.png) [@Thomas\_Perkov](https://forum.dynamobim.com/u/Thomas_Perkov)\
**Post date:** [March 28, 2018, 8:53pm UTC](https://forum.dynamobim.com/t/python-equivalent-to-family-types-node/20536/1 "2018-03-28T20:53:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 28, 2018, 9:19pm UTC](https://forum.dynamobim.com/t/python-equivalent-to-family-types-node/20536/2 "2018-03-28T21:19:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Thomas\_Perkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_perkov/32/25176_2.png) [@Thomas\_Perkov](https://forum.dynamobim.com/u/Thomas_Perkov)\
**Post date:** [April 5, 2018, 10:01am UTC](https://forum.dynamobim.com/t/python-equivalent-to-family-types-node/20536/3 "2018-04-05T10:01:32Z")

</div>

Thanks! 🙂

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