You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am writing a script to list all types exist in the project for specific categories, but whenever I try to get access to the property Name of ElementType Object, an AttributeError will be raised.
Code is as follow:
fc = BuiltInCategory.OST_StructuralFoundation types = FilteredElementCollector(doc).OfCategory(fc).WhereElementIsElementType().ToElements() type_names = [] for _type in types: t_name = _type.Name type_names.append(t_name)
Error information:
Desktop (please complete the following information):
Hello,
I am writing a script to list all types exist in the project for specific categories, but whenever I try to get access to the property Name of ElementType Object, an AttributeError will be raised.
Code is as follow:
fc = BuiltInCategory.OST_StructuralFoundation
types = FilteredElementCollector(doc).OfCategory(fc).WhereElementIsElementType().ToElements()
type_names = []
for _type in types:
t_name = _type.Name
type_names.append(t_name)
Error information:
Desktop (please complete the following information):
C:\Users\alvis>
The text was updated successfully, but these errors were encountered: