# Family Name Value not Family Type

**URL:** <https://forum.dynamobim.com/t/family-name-value-not-family-type/30383>\
**Category:** Uncategorized\
**Created:** [January 7, 2019, 7:53pm UTC](https://forum.dynamobim.com/t/family-name-value-not-family-type/30383 "2019-01-07T19:53:04Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [January 8, 2019, 2:49pm UTC](https://forum.dynamobim.com/t/family-name-value-not-family-type/30383/6 "2019-01-08T14:49:34Z")

</div>

This is a way to get a family Name in Python from a Family Type via an Element Collector.

```
import System
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference(&quot;RevitServices&quot;)
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument

cats = IN[0]
fam = []

fec = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_StructuralFraming).WhereElementIsElementType().ToElements()

for i in fec:
    fam.append(i.FamilyName)

OUT = fec, fam

```

> [@Python get Name of the Family from Elements](https://forum.dynamobim.com/t/python-get-name-of-the-family-from-elements/27046):
>
> Hi all, I am trying to execute some code withe the python script node, I am a HUGE newbie at the moment, but I’m working on it wink At the moment I am stuck at finding the name of the family from a list of elements. If you can help me with that, it would be much appreciated. This is the code so far: #Collecting instances from the model with the Communication Device category allCommDev = [] cl = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST\_CommunicationDevices).WhereElement…

---

_[View the full topic](https://forum.dynamobim.com/t/family-name-value-not-family-type/30383)._
