# Tag.ByElement works, but I need more help on how it works

**URL:** <https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [February 20, 2021, 3:54pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720 "2021-02-20T15:54:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitelined](https://avatars.discourse-cdn.com/v4/letter/w/bbce88/32.png) [@whitelined](https://forum.dynamobim.com/u/whitelined)\
**Post date:** [February 20, 2021, 3:54pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720/1 "2021-02-20T15:54:24Z")

</div>

Hi,

I decided I wanted to try and cut down annotation times for drawings - I do a lot of fire sprinkler drawings that need a lot of pipe sizes etc. So, I’ve dived straight into Dynamo. My first script I’ve created is a script to tag all pipework that has a slope of 0. This worked out pretty darn well for my first attempt.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/c/4cef378df66bb3a00633c12dd09bafe0f853c95d.png)

My question is, how can I make it so the tags are created centre of the pipework, and above the pipework? Currently, they’re a bit random as to where they end up.

Many thanks for any suggestions

---

<div class="post-metadata">

**Author:** ![whitelined](https://avatars.discourse-cdn.com/v4/letter/w/bbce88/32.png) [@whitelined](https://forum.dynamobim.com/u/whitelined)\
**Post date:** [February 20, 2021, 3:55pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720/2 "2021-02-20T15:55:26Z")

</div>

This is how it looks, a bit messy

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

---

<div class="post-metadata">

**Author:** ![whitelined](https://avatars.discourse-cdn.com/v4/letter/w/bbce88/32.png) [@whitelined](https://forum.dynamobim.com/u/whitelined)\
**Post date:** [February 20, 2021, 3:56pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720/3 "2021-02-20T15:56:05Z")

</div>

And this is how I’d like it to look

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96b3f8a13e9734a2bab5c292d2dd406f71d6d732.png)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [February 20, 2021, 8:17pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720/4 "2021-02-20T20:17:55Z")

</div>

Hi,

You must either move the tags after they are created or use a different node with a location input to create the tags.  
For example the _Create Tag_ node :  
 ![Create Tag](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/e/8e4c469188adbc2467d1782eb630b5ab8d555192.png)

---

<div class="post-metadata">

**Author:** ![firre](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@firre](https://forum.dynamobim.com/u/firre)\
**Post date:** [May 18, 2025, 3:29pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720/5 "2025-05-18T15:29:07Z")

</div>

hi @whitelined could you please share the script?

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [May 18, 2025, 7:32pm UTC](https://forum.dynamobim.com/t/tag-byelement-works-but-i-need-more-help-on-how-it-works/60720/6 "2025-05-18T19:32:16Z")

</div>

Don’t expect any answer if you see this

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/a/ba3fe25421f240a730e6a88cf24ad900d7c4263e.png)  
He only spend 2 hours on this forum. like four years ago.
