Structural Column Family Type Name with Python

Hi All,

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

import clr

import RevitServices
from RevitServices.Persistence import DocumentManager

# Import 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]


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

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

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

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


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.