# Element.Level into seperate lists

**URL:** <https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 4, 2025, 11:21am UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575 "2025-06-04T11:21:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio.dos-santos-ca](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sergio.dos-santos-ca](https://forum.dynamobim.com/u/sergio.dos-santos-ca)\
**Post date:** [June 4, 2025, 11:21am UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/1 "2025-06-04T11:21:42Z")

</div>

Hello,

I am trying to turn a list into multiple lists based on the level.

Can someone tell me a node that can do It?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87f658cc8d0f131f4223bd734f0ce19681623c98.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [June 4, 2025, 11:49am UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/2 "2025-06-04T11:49:56Z")

</div>

look into a node like **“List.GroupByKey”**

[List.GroupByKey.dyn](https://forum.dynamobim.com/uploads/short-url/kMbitBirLq85cm3khmk1DxmtMlc.dyn) (11.9 KB)

 ![List.GroupByKey_2025-06-04_05-20-15](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/f/cf0e98fee4fdc6643fca79fcba45239a6b6a8de5.png)

---

<div class="post-metadata">

**Author:** ![sergio.dos-santos-ca](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sergio.dos-santos-ca](https://forum.dynamobim.com/u/sergio.dos-santos-ca)\
**Post date:** [June 4, 2025, 12:01pm UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/3 "2025-06-04T12:01:12Z")

</div>

That Is what I was looking for 🙂 nice.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![sergio.dos-santos-ca](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sergio.dos-santos-ca](https://forum.dynamobim.com/u/sergio.dos-santos-ca)\
**Post date:** [June 4, 2025, 12:05pm UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/4 "2025-06-04T12:05:32Z")

</div>

How would I turn the groups into multiple lists?

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [June 4, 2025, 12:08pm UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/5 "2025-06-04T12:08:11Z")

</div>

may be like this?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/1/b124e09e9b58d4de5c69239e772e52e0619b9b15.png)

---

<div class="post-metadata">

**Author:** ![sergio.dos-santos-ca](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sergio.dos-santos-ca](https://forum.dynamobim.com/u/sergio.dos-santos-ca)\
**Post date:** [June 4, 2025, 12:20pm UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/6 "2025-06-04T12:20:49Z")

</div>

Wondering If doing It like this would be a good Idea, since In this project I have 14 lists, but In another could be more or less..

Which turns the scipt semi automatic.

---

<div class="post-metadata">

**Author:** ![pedruccioli](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/pedruccioli/32/187055_2.png) [@pedruccioli](https://forum.dynamobim.com/u/pedruccioli)\
**Post date:** [June 4, 2025, 2:09pm UTC](https://forum.dynamobim.com/t/element-level-into-seperate-lists/110575/7 "2025-06-04T14:09:39Z")

</div>

A list of list is actually multiple lists (nested). What you need from that point forward is to structure your data and steps in such a way that the result is correct with however many nested lists you get.

Check [Lists in Primer](https://primer2.dynamobim.org/5_essential_nodes_and_concepts/5-4_designing-with-lists) to see that structure happening.
