# Tag multiple Elements in multiple views

**URL:** <https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414>\
**Category:** Packages\
**Created:** [February 25, 2018, 9:23pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414 "2018-02-25T21:23:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomson0412](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@tomson0412](https://forum.dynamobim.com/u/tomson0412)\
**Post date:** [February 25, 2018, 9:23pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/1 "2018-02-25T21:23:29Z")

</div>

i’m trying to use the create annotation tag package to tag multiple selected elements in the same family in multiple views but only one tag is generated , is there something i did wrong here? ![Help|690x266]

 ![help](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/cad1f1b50e38a55566b5a6d51736bbf842da0d7a.png)  
 ![Help%202](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/8/48c5320eaa99fd2a6dd016ab8c86a23d67389c23.png)

---

<div class="post-metadata">

**Author:** ![andre.abotnes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andre.abotnes/32/42003_2.png) [@andre.abotnes](https://forum.dynamobim.com/u/andre.abotnes)\
**Post date:** [February 26, 2018, 7:09am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/2 "2018-02-26T07:09:42Z")

</div>

It seems that the create annotation tag node wants the same number of views as the number of elements / points that are input. What if you run the views into the Create Annotation Tag node with a List.map node? Maybe that helps?

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 26, 2018, 7:15am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/3 "2018-02-26T07:15:17Z")

</div>

I think this is a [lacing issue](http://dynamoprimer.com/en/06_Designing-with-Lists/6-1_whats-a-list.html). Because the node is set to shortest and there are only two inputs for the Views, it only produces two tags. Do you want each view to have all of the tags created? If so, try setting the lacing of Create Annotation Tag to cross-product but right clicking the node.

Edit: Actually that might be a bad idea given how many different inputs there are and it being a custom node. Not sure how it will react to that.

---

<div class="post-metadata">

**Author:** ![franciscusm](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@franciscusm](https://forum.dynamobim.com/u/franciscusm)\
**Post date:** [February 26, 2018, 9:40am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/4 "2018-02-26T09:40:44Z")

</div>

I think they’re right. In the picture you’re feeding the tag node with **2** views, then you need to input **2** lists of elements (containing those 105 elements) and **2** lists of locations (containing those 105 locations).

List.Create and List.Cycle nodes may help for this.

---

<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:** [February 26, 2018, 6:25pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/5 "2018-02-26T18:25:54Z")

</div>

I think you just need to set the List Level for Views to @1.

---

<div class="post-metadata">

**Author:** ![tomson0412](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@tomson0412](https://forum.dynamobim.com/u/tomson0412)\
**Post date:** [February 26, 2018, 10:01pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/6 "2018-02-26T22:01:18Z")

</div>

> [@franciscusm](#):
>
> I think they’re right. In the picture you’re feeding the tag node with 2 views, then you need to input 2 lists of elements (containing those 105 elements) and 2 lists of locations (containing those 105 locations).
> 
> List.Create and List.Cycle nodes may help for this.

I think you’re right, I tried it with only one view and the tag works normally.  
not really sure how to do multiple views tho, is there a workaround to feed the views input one by one instead?  
How would you add list.create and list.cycle in this situation?

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 27, 2018, 3:06am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/7 "2018-02-27T03:06:59Z")

</div>

Have you tried @andre.abotnes’s post using List.Map node? Unplug the view input in the annotation tag node, then plug the tags output into List.map’s f(x) input and the views into the list input.

Also, which package is the create annotation tag node from?

---

<div class="post-metadata">

**Author:** ![franciscusm](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@franciscusm](https://forum.dynamobim.com/u/franciscusm)\
**Post date:** [February 27, 2018, 9:31am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/8 "2018-02-27T09:31:11Z")

</div>

If you upload the dyn file I can take a look.

Basically keep in mind you need to match the number and level of inputs.

---

<div class="post-metadata">

**Author:** ![tomson0412](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@tomson0412](https://forum.dynamobim.com/u/tomson0412)\
**Post date:** [February 27, 2018, 3:08pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/9 "2018-02-27T15:08:02Z")

</div>

[Tag All elements in all views.dyn](https://forum.dynamobim.com/uploads/short-url/l5XogMkaeiJVKKjurXlKzF2r6jR.dyn) (13.4 KB)

Here’s the code I’m working on

---

<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:** [February 27, 2018, 3:16pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/10 "2018-02-27T15:16:15Z")

</div>

> [@tomson0412](#):
>
> is there a workaround to feed the views input one by one instead?

That’s essentially what List Levels are for. Changing the Views input to list level @1 will run the node separately based on each input view @1 which would just be each individual view.

If you’re unfamiliar with list levels I highly suggest you look into them and get familiar. They are incredibly useful for managing complex list structures and eliminate the need for extra nodes like List.Map.

---

<div class="post-metadata">

**Author:** ![andre.abotnes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andre.abotnes/32/42003_2.png) [@andre.abotnes](https://forum.dynamobim.com/u/andre.abotnes)\
**Post date:** [February 27, 2018, 4:59pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/11 "2018-02-27T16:59:33Z")

</div>

Do you agree that list level one also would require lacing set to longest for this particular node?

---

<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:** [February 27, 2018, 5:36pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/12 "2018-02-27T17:36:57Z")

</div>

It shouldn’t. The node can already create multiple tags for a single view. Using list levels would still create multiple tags for a single view, it will just run on each view separately.

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

---

<div class="post-metadata">

**Author:** ![andre.abotnes](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andre.abotnes/32/42003_2.png) [@andre.abotnes](https://forum.dynamobim.com/u/andre.abotnes)\
**Post date:** [February 27, 2018, 6:04pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/13 "2018-02-27T18:04:36Z")

</div>

Aha! Thanks for clearing that up 🙂

---

<div class="post-metadata">

**Author:** ![tomson0412](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@tomson0412](https://forum.dynamobim.com/u/tomson0412)\
**Post date:** [February 27, 2018, 7:20pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/14 "2018-02-27T19:20:01Z")

</div>

Thanks, I got it working using the list levels method, tho this script only works for normal tags and not multi category for some reason any idea why this happens?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/b/fbc02b10881b4a445c4428f51ed70a5ba36f272b.png)

Edit : After some searching, I used a modified version of the node for multi-category tag here:  
[https://forum.dynamobim.com/t/tag-textnote-multi-category-elements/9592/6](https://forum.dynamobim.com/t/tag-textnote-multi-category-elements/9592/6)

hope that helps  
Just one little thing, How do I get the tags in elevation views to be in the middle of the object and not on the floor?

---

<div class="post-metadata">

**Author:** ![franciscusm](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@franciscusm](https://forum.dynamobim.com/u/franciscusm)\
**Post date:** [February 28, 2018, 9:31am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/15 "2018-02-28T09:31:29Z")

</div>

there is a node for that **Tag.ByElementAndOffset.**

---

<div class="post-metadata">

**Author:** ![tomson0412](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@tomson0412](https://forum.dynamobim.com/u/tomson0412)\
**Post date:** [February 28, 2018, 8:27pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/16 "2018-02-28T20:27:26Z")

</div>

I don’t think that node give an option to select the tag type is it?

---

<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 28, 2018, 8:58pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/17 "2018-02-28T20:58:26Z")

</div>

You can change the family type afterwards with SetParameter.

 ![Tag](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/e/bec035585ed2bb6afc109c0add1bdbd683ea060a.JPG)

---

<div class="post-metadata">

**Author:** ![asoriaq](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@asoriaq](https://forum.dynamobim.com/u/asoriaq)\
**Post date:** [November 7, 2019, 12:20am UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/18 "2019-11-07T00:20:26Z")

</div>

Thank You, for a beginner like me this was a perfect solution!

---

<div class="post-metadata">

**Author:** ![leonHKFTG](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@leonHKFTG](https://forum.dynamobim.com/u/leonHKFTG)\
**Post date:** [December 19, 2020, 3:04pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/21 "2020-12-19T15:04:50Z")

</div>

Hi, I am trying to use that node Tag.by Element. But I’m finding 2 problems, first, it seems to be impossible to use it in multiple views at once, I have tried using lists in the view input, lacing the node to longest, and even cross product, but all 3 produce a loop Dynamo can’t get out of and I end up ending the task. On the other hand I’ve tried other methods but they don’t offer the offset feature, which I can’t retrieve as a parameter from a tag. Any thoughts? Thank you

---

<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:** [December 19, 2020, 3:09pm UTC](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414/22 "2020-12-19T15:09:36Z")

</div>

Hi,

> [@leonHKFTG](#):
>
> use it in multiple views at once

You can use instead the _Create Tag_ node in the _Genius Loci_ package. This custom node works for multiple views.

[Next page](https://forum.dynamobim.com/t/tag-multiple-elements-in-multiple-views/19414.md?page=2)
