# Move Item to next Level in List

**URL:** <https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212>\
**Category:** Lists-Logic\
**Created:** [September 28, 2017, 8:45pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212 "2017-09-28T20:45:42Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.dynamobim.com/u/smh)\
**Post date:** [September 28, 2017, 8:45pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/1 "2017-09-28T20:45:43Z")

</div>

Hello all,

Does anyone know how to find an item at a level and move it down one level? If you look at the image list item 288 does not have the same tree structure as list 290 on the outbound side of Springs.Collector.ElementsINView. How would I go about selecting elements that live @2 and move them to @1. I do not want to move list @2 just elements.

![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e21111f8462967bdebf79c2ed4adfdb2034b2021.PNG)

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 28, 2017, 8:50pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/2 "2017-09-28T20:50:29Z")

</div>

There is a _List.Flatten_ node with an amount input that should do something close to that…

---

<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:** [September 28, 2017, 8:50pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/3 "2017-09-28T20:50:51Z")

</div>

Not sure what you’re doing down graph after this but you could flatten your AddItemToFront output and/or flatten the sublists of your ElementsInView output.

---

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.dynamobim.com/u/smh)\
**Post date:** [September 28, 2017, 8:59pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/4 "2017-09-28T20:59:28Z")

</div>

Thanks for the imput,

I need to keep the the structure of the list. The current structure is that the sheet is @3 and then each view on the sheet is in the @2 list. This allows for manipulation at the view level but then still know what sheet it is on. This become a problem with legends since you cannot find what sheet the legend is on and why I need to keep the structure.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 28, 2017, 9:07pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/5 "2017-09-28T21:07:34Z")

</div>

> [@smh](#):
>
> you cannot find what sheet the legend is on

_Springs.Sheet.Views+_ could do that

---

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.dynamobim.com/u/smh)\
**Post date:** [September 28, 2017, 9:12pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/6 "2017-09-28T21:12:17Z")

</div>

The List does not necessarily have the sheet in it. The structure of the list Represents the the Sheet. All the clouds in each list @3 are on the same sheet and all could in the list @2 are in the same view. Some sheets (view) do not have clouds on them and are removed from the list of views.

Does that make sense?

Thank you for all of your help,

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 28, 2017, 9:24pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/7 "2017-09-28T21:24:51Z")

</div>

> [@smh](#):
>
> Does that make sense?

To me not so much 😕. An illustration is sometimes clearer than words and hopefully this one could help somewhat:

> [@Matching sublist elements sequentially](https://forum.dynamobim.com/t/matching-sublist-elements-sequentially/14913/18):
>
> This should help: Don’t take into acount the Flatten nodes, I just used them to reproduce your situation. Basically, what I have changed is “chopping” the list of items used for replacement and set the level of this input at @L2. It is possible that you need to play a little with levels but this is important to learn anyway: most of the time when recomposing lists, we need to test different configurations before it works.

---

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.dynamobim.com/u/smh)\
**Post date:** [September 28, 2017, 9:40pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/8 "2017-09-28T21:40:07Z")

</div>

I hope this helps,

![Document1](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/6/3/63f781aaf05a111c8c62fc376d0649510bf6ef0d.jpg)

---

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.dynamobim.com/u/smh)\
**Post date:** [September 28, 2017, 9:41pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/9 "2017-09-28T21:41:42Z")

</div>

I want to keep this structure so I can remove clouds with duplicate Comments on a per view bases.

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [September 28, 2017, 9:45pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/10 "2017-09-28T21:45:58Z")

</div>

I am just missing something (sorry but it’s late here and I will end my day very soon): when do you loose this structure? Could you show a complete graph so that I (or someone else) can see where it does not work?  
Last comment: it is usually easier to change the way a list is generated than to try to recompose it element by element afterwards. Just my two cents. I’ll be curious of the result tomorrow 🙂

---

<div class="post-metadata">

**Author:** ![smh](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@smh](https://forum.dynamobim.com/u/smh)\
**Post date:** [September 28, 2017, 10:46pm UTC](https://forum.dynamobim.com/t/move-item-to-next-level-in-list/15212/11 "2017-09-28T22:46:43Z")

</div>

Very sorry,

I hope you have had a great day and a good night to follow.

I was able to solve it. I don’t know how I did not think of this earlier.  
Thank you all for your help and putting up with my bad examples and pore writing.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/4/24f60313bb6dbcf408fe358a4a2ee937b3d0c9ef.PNG)
