# Structural Column Family Type Name with Python

**URL:** <https://forum.dynamobim.com/t/structural-column-family-type-name-with-python/7076>\
**Category:** Developers\
**Created:** [October 26, 2016, 3:52am UTC](https://forum.dynamobim.com/t/structural-column-family-type-name-with-python/7076 "2016-10-26T03:52:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [October 26, 2016, 3:52am UTC](https://forum.dynamobim.com/t/structural-column-family-type-name-with-python/7076/1 "2016-10-26T03:52:37Z")

</div>

Hi All,

I’m trying to get the Family Type Name of structural columns but with python.

```
import clr

```

clr.AddReference(‘RevitServices’)  
import RevitServices  
from RevitServices.Persistence import DocumentManager

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

doc = DocumentManager.Instance.CurrentDBDocument

StructuralColumns= FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_StructuralColumns).ToElements()

FamilyName=[i.Family.Name for i in StructuralColumns]
TypeName=[i.Name for i in StructuralColumns]

OUT=FamilyName,TypeName

```

I can get the family name with i.Family.Name

this is the error if I use i.Name to get the type name:

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/5/581682fc23f9337c1c86068a62ee4c6a9270e7ef.png)

I’ve tried a few more things but none of them worked.

This is what I’d like to get in python:

![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/f/f05a564ecbb30d4971200c935fec5ad21eb1b415.png)

Ideas?😕

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [October 26, 2016, 8:19am UTC](https://forum.dynamobim.com/t/structural-column-family-type-name-with-python/7076/2 "2016-10-26T08:19:00Z")

</div>

This is actually an iron python problem  
try the following line instead:

```
FamilyName = [Element.Name. __get__ (i) for i in StructuralColumns]

```

This is because Family is a sub-class of the Element Class and the Name property resides in it.
