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:
I’ve tried a few more things but none of them worked.
This is what I’d like to get in python:
Ideas?