A co-worker asked me if I could write a scipt that look throught all the view in a project and find places where any annotation tags might overlap and reduce readability. So I set out to find all annotations elements, get their host views, filter it all by view, create some geometry on their insertion points and clash them. Maybe drawing big red circle on the views or something. The latter part, I get, the first, I don’t.
My problem is that i’am unable to collect all the annotations in any way.
- The Category > All element of category doesnt work for half of them ( namely, door and wall tags ) even if it seem to work for this guy: Select annotations by associated revit id of modelled element
- Collect All Tags in Project in Bakery, doesnt do anything for me.
- Collector.TagTypes only has four outputs, two of them don’t work.
- List the views workset of all tags in prject, return nothing
- Multiple python scripts using Revit.DB.Category and tries to fetch elements from them with FilteredElementCollector don’t do much eighter.
What am I doing wrong?
There is about 98 OST_"Categories"Tags in revit, I know it’s overkill, but I want all their elements.
I link my fumblings of a graph as reference
I’m on Revit 2017.1, running dynamo 126.96.36.19983
I this point I am more worried about whether I can, than whether I should write that script.
Clash_of_Annotations_by_Location.dyn (61.6 KB)