Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am trying to collect a certain dimension style by name.
dTypes = FilteredElementCollector(doc).OfClass(DimensionType) dimensionTypes = [] for i in dTypes: dimensionTypes.append(i.Name)
But I am getting an error "AttributeError: Name"
According to the Revit API Docs:
https://www.revitapidocs.com/2019/a6f6655d-3383-a0ea-670d-0bbe6d2bb964.htm
Name is a property of the Dimension Style Class.
Using PyRevit.
Thanks!
Solved! Go to Solution.