# Get all Annotations elements in project

**URL:** <https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [October 25, 2017, 7:15pm UTC](https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932 "2017-10-25T19:15:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![slepagetrudeau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/slepagetrudeau/32/29983_2.png) [@slepagetrudeau](https://forum.dynamobim.com/u/slepagetrudeau)\
**Post date:** [October 25, 2017, 7:15pm UTC](https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932/1 "2017-10-25T19:15:54Z")

</div>

Hi!

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](https://forum.dynamobim.com/t/select-annotations-by-associated-revit-id-of-modelled-element/13440/3)
- 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 1.2.1.3083

I this point I am more worried about whether I can, than whether I should write that script.

[Clash\_of\_Annotations\_by\_Location.dyn](https://forum.dynamobim.com/uploads/short-url/jcOeBxy5j3rDtZfsuTxFM5SGlUK.dyn) (61.6 KB)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [October 25, 2017, 7:52pm UTC](https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932/2 "2017-10-25T19:52:29Z")

</div>

> [@slepagetrudeau](#):
>
> Collect All Tags in Project in Bakery, doesnt do anything for me

Can you copy all of the contents from the custom node to your graph and see if you’re getting any errors?

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [October 25, 2017, 8:44pm UTC](https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932/3 "2017-10-25T20:44:36Z")

</div>

I tried creating a node for this, it’s not perfect, but it might suit your needs. It will at least include every Tag category, maybe you could do some filtering by string to only get the Tag categories.

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/7/07e1e29657047d33e40ca9dd32f79b16683ddf5b.png)

It’s in the MEPover package.

---

<div class="post-metadata">

**Author:** ![slepagetrudeau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/slepagetrudeau/32/29983_2.png) [@slepagetrudeau](https://forum.dynamobim.com/u/slepagetrudeau)\
**Post date:** [October 26, 2017, 1:40pm UTC](https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932/4 "2017-10-26T13:40:18Z")

</div>

Thank you both for your answers,

Nick\_Boyts:  
I did, they mostly failed when it came to actually getting the elements from the revit file in their python scripts at the: \<\< (FilteredElementCollector(doc).WhereElementIsNotElementType().OfCategory(builtInName[0]).ToElements()) \>\> part.

T\_Pover:  
Your node makes things easier but i’m not quite there yet. Great package btw, can’t wait to go thought it.

My problem remains my inability to collect some important elements from their categories ( Door tags, Wall tags, etc ) See gray group in graph.

 ![Clash_of_Annotations_by_Location](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87d2998662f7b264936d1318315f34a9f704c716.png)

Linked is my graph as it stand now. Dependencies: ClockWork, MEPover

[Clash\_of\_Annotations\_by\_Location.dyn](https://forum.dynamobim.com/uploads/short-url/a5iNRrevkMqGtgTIwHMT0k7ryx3.dyn) (43.9 KB)

EDIT: I upgraded to 1.3.2.2480 this morning, before writing this post

---

<div class="post-metadata">

**Author:** ![slepagetrudeau](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/slepagetrudeau/32/29983_2.png) [@slepagetrudeau](https://forum.dynamobim.com/u/slepagetrudeau)\
**Post date:** [November 2, 2017, 6:57pm UTC](https://forum.dynamobim.com/t/get-all-annotations-elements-in-project/15932/5 "2017-11-02T18:57:40Z")

</div>

see [Selecting Tags elements](https://forum.dynamobim.com/t/selecting-tags-elements/16175/5)  
see [Selecting Tags Associated to a Linked Model](https://forum.dynamobim.com/t/selecting-tags-associated-to-a-linked-model/16118/7)

Seems a bug is doing it
