# Create list using List.AddItemToEnd

**URL:** <https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [April 14, 2023, 5:55am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528 "2023-04-14T05:55:44Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaaSNLDZ](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@vaaSNLDZ](https://forum.dynamobim.com/u/vaaSNLDZ)\
**Post date:** [April 14, 2023, 5:55am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/1 "2023-04-14T05:55:44Z")

</div>

Hi all!!  
I create list using List.AddItemToEnd and I want to get list [[0] , [-0.17,0.17] ,[-0.22,0.22] , [-0.25] [-0.25] ]  
but I can’t achieve the result by changing the levels  
Does anyone know why?

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

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 14, 2023, 6:09am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/2 "2023-04-14T06:09:44Z")

</div>

Did you try setting item level at @1 too?

---

<div class="post-metadata">

**Author:** ![vaaSNLDZ](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@vaaSNLDZ](https://forum.dynamobim.com/u/vaaSNLDZ)\
**Post date:** [April 14, 2023, 6:12am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/3 "2023-04-14T06:12:50Z")

</div>

yes

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/c/2cff8f5511375db1bc980cf57da0c736dd88c3d2.png)

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 14, 2023, 6:14am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/4 "2023-04-14T06:14:13Z")

</div>

I’ll behind a PC in like a hour.  
I’ll have a look then.  
But i think a solution can be to just use the  
`List.Create` node instead of the `List.AddItemToEnd` as that might just add a single item to the end of a list(?).

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 14, 2023, 6:55am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/5 "2023-04-14T06:55:50Z")

</div>

Would this work for you? I don’t think` ListAddItemToEnd` is the way to go.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/7/d7898b5951b1325c3a85ad2537a27ee3e02d189c.png)

---

<div class="post-metadata">

**Author:** ![jmark](https://avatars.discourse-cdn.com/v4/letter/j/e0b2c6/32.png) [@jmark](https://forum.dynamobim.com/u/jmark)\
**Post date:** [April 14, 2023, 10:22am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/6 "2023-04-14T10:22:02Z")

</div>

![itemreplace](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e2b1db7863c95ed7e282d3886703442790c28081.png)  
hi is this what you’re looking for?

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 14, 2023, 5:31pm UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/7 "2023-04-14T17:31:46Z")

</div>

@vaaSNLDZ I saw the 🤍. Is it also the solution? If so please mark as solution too.

---

<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 14, 2023, 5:40pm UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/8 "2023-04-14T17:40:51Z")

</div>

Due to how that node works, you’ll need to flatten the result one way or another. The node adds a _single_ item to an existing list. It seems like you want both items added to the list while maintaining the same list levels. That’s not possible with the structure that you have (without some additional processing, like flattening the structure).

---

<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:** [April 14, 2023, 7:01pm UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/9 "2023-04-14T19:01:29Z")

</div>

I think you just want a List.Join node, but am not entirely clear on what the desired structure is… may have to flatten before joining as @Nick_Boyts indicated.

---

<div class="post-metadata">

**Author:** ![christian.stan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/christian.stan/32/166296_2.png) [@christian.stan](https://forum.dynamobim.com/u/christian.stan)\
**Post date:** [April 14, 2023, 7:15pm UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/10 "2023-04-14T19:15:33Z")

</div>

Hello,  
A possible way

 ![14 Avril Forum anglais_2023-04-14_09-12-17](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/6851f2c777dc96241d4d4b8a9ba47d1c1b83cd97.png)

Cordially  
christian.stan

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 14, 2023, 7:30pm UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/11 "2023-04-14T19:30:26Z")

</div>

I guess this is a prime example of how there are multiple solutions to a problem. 😃 👍

---

<div class="post-metadata">

**Author:** ![vaaSNLDZ](https://avatars.discourse-cdn.com/v4/letter/v/9de0a6/32.png) [@vaaSNLDZ](https://forum.dynamobim.com/u/vaaSNLDZ)\
**Post date:** [April 17, 2023, 6:42am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/12 "2023-04-17T06:42:05Z")

</div>

this is what I really needed  
Thank you!!

---

<div class="post-metadata">

**Author:** ![bvs1982](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bvs1982](https://forum.dynamobim.com/u/bvs1982)\
**Post date:** [April 17, 2023, 10:18am UTC](https://forum.dynamobim.com/t/create-list-using-list-additemtoend/88528/13 "2023-04-17T10:18:46Z")

</div>

Though i do think @jacob.small suggested the best solution.

> [@jacob.small](#):
>
> I think you just want a List.Join node

I kinda overlooked that node.

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