# List Manipulation

**URL:** <https://forum.dynamobim.com/t/list-manipulation/19940>\
**Category:** Lists-Logic\
**Created:** [March 12, 2018, 7:33pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940 "2018-03-12T19:33:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PerfectArchCo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/perfectarchco/32/28515_2.png) [@PerfectArchCo](https://forum.dynamobim.com/u/PerfectArchCo)\
**Post date:** [March 12, 2018, 7:33pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/1 "2018-03-12T19:33:52Z")

</div>

I’m trying to do 2 different things which I assumed would be easy but am having difficulty configuring such a sequence in Dynamo.

The input in a list of points from a divided surface and I am trying to1) develop a sequence to take them from the list of points and then 2) map that list to the list of points so that I end up with sub-lists which make up smaller polygons of the main surface to be manipulated further in the project. I imagine this is rather easy to do with straight python code (which I don’t have any deep knowledge of) of a particular configuration of nodes. Any feedback is appreciated. Thanks.

 ![Problem%20image2018-3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9f7ab20ca78752cbeb0c20ed1140c15211279fe5.png)

---

<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:** [March 12, 2018, 8:33pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/2 "2018-03-12T20:33:26Z")

</div>

I’m not sure I understand what you’re trying to do…  
You want to group certain points by their index to form sublists? Are your sequences supposed to overlap?

---

<div class="post-metadata">

**Author:** ![PerfectArchCo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/perfectarchco/32/28515_2.png) [@PerfectArchCo](https://forum.dynamobim.com/u/PerfectArchCo)\
**Post date:** [March 12, 2018, 9:50pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/3 "2018-03-12T21:50:22Z")

</div>

Yes. That’s right. I want to map certain points by their index to sublists. They are suppose to overlap as the same point will represent several different polygons corners.

---

<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:** [March 12, 2018, 10:04pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/4 "2018-03-12T22:04:52Z")

</div>

Try GetItemAtIndex. You may have to change the lacing or use list levels.

---

<div class="post-metadata">

**Author:** ![PerfectArchCo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/perfectarchco/32/28515_2.png) [@PerfectArchCo](https://forum.dynamobim.com/u/PerfectArchCo)\
**Post date:** [March 12, 2018, 11:25pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/5 "2018-03-12T23:25:02Z")

</div>

I’ve been using Get.Itematindex but am not sure how to feed it sublists nor make the original table of numbers. If feeding get.itematindex sub-lists, will it also output sublists. It’s interesting that I achieved to get the table of numbers and get the points in the order I wanted very quickly in Mathematica, I’m pretty sure the same operations can be configured purely in dynamo.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [March 12, 2018, 11:54pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/6 "2018-03-12T23:54:35Z")

</div>

So you want to panelize the surface? Have you looked into the lunchbox and/or clockwork packages for this?

---

<div class="post-metadata">

**Author:** ![PerfectArchCo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/perfectarchco/32/28515_2.png) [@PerfectArchCo](https://forum.dynamobim.com/u/PerfectArchCo)\
**Post date:** [March 13, 2018, 1:42am UTC](https://forum.dynamobim.com/t/list-manipulation/19940/7 "2018-03-13T01:42:46Z")

</div>

I haven’t searched for “panelize” but I’m pretty sure the original points were from the lunchbox divide surface node. The outputted list needed to be further processed as far as I can tell, as it only gave the intersection points, not the points for each polygon of the divided surface. I’m away from Dynamo at the moment.

---

<div class="post-metadata">

**Author:** ![PerfectArchCo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/perfectarchco/32/28515_2.png) [@PerfectArchCo](https://forum.dynamobim.com/u/PerfectArchCo)\
**Post date:** [March 13, 2018, 7:46pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/8 "2018-03-13T19:46:07Z")

</div>

Solved: Panel.PanelQuad from lunch box. Still have to do some further list manipulation but much quicker then generating the lists myself.

---

<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:** [March 13, 2018, 8:11pm UTC](https://forum.dynamobim.com/t/list-manipulation/19940/9 "2018-03-13T20:11:47Z")

</div>

@PerfectArchCo

This might help in list management for panels

> **[Computational BIM Workshop—Advanced](https://www.autodesk.com/autodesk-university/class/Computational-BIM-Workshop-Advanced-2017)**
>
> If you have experience in Revit software and Dynamo software, and you want to take your Dynamo skills to the next level, this workshop is for you. Learn advanced skills to combine computational design and Building Information Modeling (BIM) with...
