# Tagging Linked Elements

**URL:** <https://forum.dynamobim.com/t/tagging-linked-elements/24120>\
**Category:** Revit\
**Created:** [July 25, 2018, 10:49am UTC](https://forum.dynamobim.com/t/tagging-linked-elements/24120 "2018-07-25T10:49:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [July 25, 2018, 10:49am UTC](https://forum.dynamobim.com/t/tagging-linked-elements/24120/1 "2018-07-25T10:49:58Z")

</div>

Hi,

I would like to reassociate dropped tags, to begin I am trying to grab tags in the active view.

I am using the clockwork node ‘All View-Dependent Family Instances Of Category’.

It works for everything when the tagged elements are in the current file.

But I get nulls when tagging an element in a linked file that isn’t a Room

There aren’t many nodes for selecting annotation categories and I’ve not found a python solution.

I’m getting nulls both in 1.3 and 2.01

Would anyone be able to help?

Cheers,

Mark

 ![clip](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87e34f856c18db3bf2b62dc048fe7366380298cb.jpg)[TagDropTest-host.rvt](https://forum.dynamobim.com/uploads/short-url/uS6zOTmvHfGglyY7SYKpzeZuwLZ.rvt) (1.8 MB) [TagDropTest-for linking.rvt](https://forum.dynamobim.com/uploads/short-url/vudlqXff6UhQaAlm0jRtuFdOHQM.rvt) (1.8 MB)[TagDropped.dyn](https://forum.dynamobim.com/uploads/short-url/ifQmBTR84z5suN953AYmvxIDRcv.dyn) (9.1 KB)

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [July 25, 2018, 10:56am UTC](https://forum.dynamobim.com/t/tagging-linked-elements/24120/2 "2018-07-25T10:56:12Z")

</div>

Have a look in the code behind the node my guess is that the document is chosen inside a python script in there, this need to be e.g. the linked document instead 🙂

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [July 25, 2018, 11:03am UTC](https://forum.dynamobim.com/t/tagging-linked-elements/24120/3 "2018-07-25T11:03:07Z")

</div>

Hey,

Thanks,

The odd thing is that the tags themselves are in the current file, so the code doesn’t (/shouldn’t need to) look at the link at all.

Room Tags are collected whether or not the room are in a linked file (I believe Rooms have special properties compared to other elements).

Presumably the collector is filtering the other types of tags so perhaps there is a solution in a different collector, but I can’t see it in the API docs…

Here is the code…

 ![clip](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/5/05840160812e2dbf509c1518e725500e86b70a3c.jpg)
