# List.Chop problem

**URL:** <https://forum.dynamobim.com/t/list-chop-problem/21357>\
**Category:** Lists-Logic\
**Created:** [April 24, 2018, 1:04pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357 "2018-04-24T13:04:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiagocorradi](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tiagocorradi](https://forum.dynamobim.com/u/tiagocorradi)\
**Post date:** [April 24, 2018, 1:04pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/1 "2018-04-24T13:04:32Z")

</div>

Hello.  
I’m trying to cut a list with a list of lengths. But there is a “0” in this list of lengths that is causing problems, as can be seen in the image below. Does anyone know a way to get the expected result? (Desired List)?

 ![Forum](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/4/84c7f1aea98e64e3a2451d667851b366f538d502.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:** [April 24, 2018, 1:21pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/2 "2018-04-24T13:21:27Z")

</div>

I assume this is an example scenario. Can you show and explain what you’re actually trying to do in your graph? There might be a better solution.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [April 24, 2018, 1:59pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/3 "2018-04-24T13:59:11Z")

</div>

Hi @tiagocorradi

Is this what you need?

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/0/f04b98a9abab432153632623190c565d837d50b1.png)

---

<div class="post-metadata">

**Author:** ![PauLtus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paultus/32/48502_2.png) [@PauLtus](https://forum.dynamobim.com/u/PauLtus)\
**Post date:** [April 24, 2018, 2:05pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/4 "2018-04-24T14:05:20Z")

</div>

You forgot the script. 😛

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [April 24, 2018, 2:05pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/5 "2018-04-24T14:05:21Z")

</div>

List.Chop+ in Clockwork can produce empty sublists

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [April 24, 2018, 2:19pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/6 "2018-04-24T14:19:25Z")

</div>

@PauLtus Usually i don’t forget anything 😉 i was just making sure if OP is looking the same. As soon as OP replies i will share the python. @Andreas_Dieckmann node is also another possible solution here.

---

<div class="post-metadata">

**Author:** ![tiagocorradi](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tiagocorradi](https://forum.dynamobim.com/u/tiagocorradi)\
**Post date:** [April 24, 2018, 2:24pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/7 "2018-04-24T14:24:03Z")

</div>

Thank you all for the replies. List.Chop+ worked perfectly

---

<div class="post-metadata">

**Author:** ![tiagocorradi](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@tiagocorradi](https://forum.dynamobim.com/u/tiagocorradi)\
**Post date:** [April 24, 2018, 2:26pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/8 "2018-04-24T14:26:15Z")

</div>

Thank you. Even Though @Andreas_Dieckmann node works, could you share your python script? I would like to see how you did it.

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [April 24, 2018, 2:29pm UTC](https://forum.dynamobim.com/t/list-chop-problem/21357/9 "2018-04-24T14:29:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/ef4448fe6513344ed054e6c6c4073d3875542830.png)
