# Modify elements of a list at given indexes

**URL:** <https://forum.dynamobim.com/t/modify-elements-of-a-list-at-given-indexes/8783>\
**Category:** Lists-Logic\
**Created:** [January 11, 2017, 2:36pm UTC](https://forum.dynamobim.com/t/modify-elements-of-a-list-at-given-indexes/8783 "2017-01-11T14:36:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![simoneavellini](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@simoneavellini](https://forum.dynamobim.com/u/simoneavellini)\
**Post date:** [January 11, 2017, 2:36pm UTC](https://forum.dynamobim.com/t/modify-elements-of-a-list-at-given-indexes/8783/1 "2017-01-11T14:36:05Z")

</div>

Hi,  
Lists!  
I need to reverse only some curves of a list.  
I do know their indexes ( in my case 0,1,17,18)  
I am struggling, I made it in a very long way, too silly yo be happy with.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/022f85f8a4a1138e2ada422b91cbc5504f181351.png)

There must be a more clever one 🙂

Basically, given a list, I want to take some elements of it (by index), modify them and re-insert at the same index.

Thanks in advance.

---

<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:** [January 11, 2017, 3:37pm UTC](https://forum.dynamobim.com/t/modify-elements-of-a-list-at-given-indexes/8783/2 "2017-01-11T15:37:01Z")

</div>

You don’t need this: select your items and apply your modifications. The initial list will be automatically updated…

---

<div class="post-metadata">

**Author:** ![simoneavellini](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@simoneavellini](https://forum.dynamobim.com/u/simoneavellini)\
**Post date:** [January 11, 2017, 4:42pm UTC](https://forum.dynamobim.com/t/modify-elements-of-a-list-at-given-indexes/8783/3 "2017-01-11T16:42:55Z")

</div>

Thanks! would you be so kind to show an example?

---

<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:** [January 11, 2017, 4:49pm UTC](https://forum.dynamobim.com/t/modify-elements-of-a-list-at-given-indexes/8783/4 "2017-01-11T16:49:57Z")

</div>

I can’t right now (but maybe someone else can). Simply use the node _GetItemAtIndex_ to select the items you want to modify
