Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I`m trying to get the names of all railings used in a revit model but the filter keeps giving me nonetypes. Can anyone see what I`m doning wrong?
I`m using the following code:
railing_symb_list = FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_StairsRailing).WhereElementIsElementType().ToElements()
railingtypes=[]
for railing in railing_symb_list:
T=doc.GetElement(railing.GetTypeId())
railingtypes.append([T,T.Name])
Wouter Hilhorst
Solved! Go to Solution.