# Tag.ByElement issue on multiple views

**URL:** <https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695>\
**Category:** Revit\
**Tags:** revit, mep, clockwork, dynamo, mepover\
**Created:** [August 8, 2023, 11:34am UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695 "2023-08-08T11:34:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrizio612](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fabrizio612](https://forum.dynamobim.com/u/fabrizio612)\
**Post date:** [August 8, 2023, 11:34am UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695/1 "2023-08-08T11:34:34Z")

</div>

Hi all,  
I am trying to create a script for tagging my pipe system only when I have a difference in pipe dimension. Everything seems to work properly, except from the fact that once the script is used on another view, the tags in the first view disappear. So I can either have tags on one view or the other, but not on both.  
Is there a method to preserve the existing tags?

 ![Tag script test 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/66b4261424e772e88582ad365f2fd8173c8c7dc3.png)

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [August 8, 2023, 7:18pm UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695/2 "2023-08-08T19:18:31Z")

</div>

Sounds like element binding.

You can run the graph and sync and run again to test this. From there continue to run the graph in the dynamo player

Post from Jacob on the subject here

> [@Element Binding in Revit](https://forum.dynamobim.com/t/element-binding-in-revit/31612):
>
> Element binding is the name given to the process which Dynamo manage to ‘track’ the items created in non-Dynamo files. In this case, I’m going to focus entirely on element binding as it refers to Dynamo for Revit, but the mechanism exists to allow for this behavior in other applications (advanced steel, fusion, alias, etc.) as well. In the context of Revit, ‘elements’ refers to anything with an Element ID in the Revit database. When utilized correctly, element binding will expand how you leverag…

---

<div class="post-metadata">

**Author:** ![fabrizio612](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fabrizio612](https://forum.dynamobim.com/u/fabrizio612)\
**Post date:** [August 10, 2023, 12:33pm UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695/3 "2023-08-10T12:33:27Z")

</div>

Thank you very much for the answer pyXam!

I tried the run-sync-run procedure, but it doesn´t help unfortunately.

Although I think element binding is what causes the issue as you suggest… I tried to run → sync → close the model → open the model → run the script on another floor and… the tags didn´t disappear from the previously tagged floor!!

PS: if I would have to run the script from the Dynamo Player, how could I change the view where I want to tag?

---

<div class="post-metadata">

**Author:** ![pyXam](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pyxam/32/163009_2.png) [@pyXam](https://forum.dynamobim.com/u/pyXam)\
**Post date:** [August 10, 2023, 2:02pm UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695/4 "2023-08-10T14:02:54Z")

</div>

I dont ever use the player but try it, it might give you a dropdown box like you currently have.

If not a quick google will solve that im sure 🙂

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [August 10, 2023, 3:05pm UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695/5 "2023-08-10T15:05:42Z")

</div>

hello, To make it appear in the player

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b0d13178427c2e96aa3f06e40897e1633f9c6e4.png)  
[Good video](https://dynamobim.org/dynamo-player-introduction-converting-an-existing-graph-for-use-in-dynamo-player/) also from Mr. Pierson on the structuring of Inputs  
cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![fabrizio612](https://avatars.discourse-cdn.com/v4/letter/f/ecd19e/32.png) [@fabrizio612](https://forum.dynamobim.com/u/fabrizio612)\
**Post date:** [August 11, 2023, 9:34am UTC](https://forum.dynamobim.com/t/tag-byelement-issue-on-multiple-views/92695/6 "2023-08-11T09:34:48Z")

</div>

Hey Christian

That´s it! That was exactly what I needed 😃

Just to recap for future use… as pyXam said, this issue is related to the “element binding” and the solution is to run the script from the Dynamo Player. The “view” variable can be chosen through the Dynamo player, following Christian´s instructions, by right-clicking on the “view” node and marking it as “is input”.

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

Thanks @pyXam and @christian.stan !
