# List - #Indent, #group

**URL:** <https://forum.dynamobim.com/t/list-indent-group/43614>\
**Category:** Lists-Logic\
**Created:** [November 26, 2019, 4:25am UTC](https://forum.dynamobim.com/t/list-indent-group/43614 "2019-11-26T04:25:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrewc65N96](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andrewc65N96](https://forum.dynamobim.com/u/Andrewc65N96)\
**Post date:** [November 26, 2019, 4:25am UTC](https://forum.dynamobim.com/t/list-indent-group/43614/1 "2019-11-26T04:25:53Z")

</div>

Hi Everyone,

I’ve been stuck on this for awhile and can’t seem to find a similar/problem that I can reference to solve it.

Long story short, I have isolated a bunch of objects and modified them and got them into this list.flatten node. I’m wanting to break this list up into subcategories, where the polycurve is grouped under the StructuralPlanView above it. I’ll be drawing those curves on that specific view they are under.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/9/5962ffd0e6d26d5c8a6feebe8818af60e2a6309f.png)

Greatly appreciate any guidance/assistance.

Thanks in advanced.  
Andy

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [November 26, 2019, 4:34am UTC](https://forum.dynamobim.com/t/list-indent-group/43614/2 "2019-11-26T04:34:26Z")

</div>

How does the list look like before entering the List.Flatten node? Can you post an image for that?

---

<div class="post-metadata">

**Author:** ![Andrewc65N96](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andrewc65N96](https://forum.dynamobim.com/u/Andrewc65N96)\
**Post date:** [November 26, 2019, 5:04am UTC](https://forum.dynamobim.com/t/list-indent-group/43614/3 "2019-11-26T05:04:24Z")

</div>

![2019-11-26 15_49_49-Window](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/e/2e7637989b62ea8100880375ffd06a069e7a1b99.png)

Sorry struggling a bit here, This forum doesn’t allow me to upload any files since i’m a new user.  
Otherwise i’d push the whole thing up to see.

List 1 is the views i want stuff created on and list 2 is the items to be created on those views.

The Polycurves go into list 2, then list 2 and list 1 have same structure and go into a creation node. I originally tried to work out how to do a direct swap with the polycurve and wall, but couldn’t so i used flatten & replace node to do it. Which then gave me the original post image.

I think I need a node that finds the word “Structural” then makes it a Higher node and moves objects underneath into nested. But when it finds the next Structural word it does it again. Then I can transpose that list and push it back into my creation node and it will work.

---

<div class="post-metadata">

**Author:** ![Andrewc65N96](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andrewc65N96](https://forum.dynamobim.com/u/Andrewc65N96)\
**Post date:** [November 26, 2019, 5:20am UTC](https://forum.dynamobim.com/t/list-indent-group/43614/4 "2019-11-26T05:20:29Z")

</div>

Uploading: Load Bearing hatches.png…

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

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 26, 2019, 7:38am UTC](https://forum.dynamobim.com/t/list-indent-group/43614/5 "2019-11-26T07:38:13Z")

</div>

Could you maybe try uploading your file to an online file hoster? Like [file.io](http://file.io)?  
I do not fully understand what your input is.

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [November 26, 2019, 7:58am UTC](https://forum.dynamobim.com/t/list-indent-group/43614/6 "2019-11-26T07:58:51Z")

</div>

This is what you are looking for

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/9512992426f89b503729573e24bfd5b35dcbfa93.png)

> [@Change list structure to match another list structure](https://forum.dynamobim.com/t/change-list-structure-to-match-another-list-structure/27451/9):
>
> Might be late to the party but thought it would be a fun test of recursive functions in python: # Enable Python support and load DesignScript library import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import \* def recCount(\_lists,c): for \_list in \_lists: if isinstance(\_list,list): c = recCount(\_list,c) else: c += 1 return c def recMatch(\_list,\_matches,\_out,c): for \_match in \_matches: if isinstance(\_match,list): outTemp, c = recMatch…

---

<div class="post-metadata">

**Author:** ![Andrewc65N96](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@Andrewc65N96](https://forum.dynamobim.com/u/Andrewc65N96)\
**Post date:** [November 26, 2019, 10:46pm UTC](https://forum.dynamobim.com/t/list-indent-group/43614/7 "2019-11-26T22:46:41Z")

</div>

Thanks for finding this, this is exactly what I needed.  
I’m currently trying to add this to the script and see if it solves everything.

---

<div class="post-metadata">

**Author:** ![AmolShah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/amolshah/32/103244_2.png) [@AmolShah](https://forum.dynamobim.com/u/AmolShah)\
**Post date:** [November 26, 2019, 10:47pm UTC](https://forum.dynamobim.com/t/list-indent-group/43614/8 "2019-11-26T22:47:22Z")

</div>

Good Luck with that and Welcome to the Dynamo Community 😄
