# List levels understand

**URL:** <https://forum.dynamobim.com/t/list-levels-understand/93910>\
**Category:** Uncategorized\
**Created:** [September 20, 2023, 11:10am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910 "2023-09-20T11:10:04Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmedabdlsalamm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmedabdlsalamm/32/129400_2.png) [@ahmedabdlsalamm](https://forum.dynamobim.com/u/ahmedabdlsalamm)\
**Post date:** [September 20, 2023, 11:10am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/1 "2023-09-20T11:10:04Z")

</div>

I Want to replace values from string split  
that list 0 at index 1 (tw01) Replaced with TW01  
List 1 at index 1 (tw01) Replaced with TW05  
List 2 at index 1 (tw01) Replaced with TW08

what levels should i use

 ![01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/307b4bf526c8c1456d8b738b5c1001d91177831d.png)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [September 20, 2023, 11:41am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/2 "2023-09-20T11:41:29Z")

</div>

try to flatten both and give a try

---

<div class="post-metadata">

**Author:** ![stefan.gokstorp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@stefan.gokstorp](https://forum.dynamobim.com/u/stefan.gokstorp)\
**Post date:** [September 20, 2023, 2:25pm UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/3 "2023-09-20T14:25:01Z")

</div>

Removed since it weas badly explainaed and containted inacurate information

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [September 20, 2023, 2:39pm UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/4 "2023-09-20T14:39:53Z")

</div>

As stated above, flatten your split list down to one level as shown below to match your replacement list and set the lacing to longest on the List.ReplaceItemAtIndex node.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/b/6bfab44e271edecfc67d6a5d5526d98b08251c35.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:** [September 20, 2023, 2:58pm UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/5 "2023-09-20T14:58:16Z")

</div>

Two things I want to clarify:

1. Not all list structures and intended function mappings are possible through list levels (or lacing). Nodes have an inherent function mapping based on expected list structure. List levels allow you to redefine the input structures of a node but cannot overcome this inherent mapping when too many list levels (in the structure) are used.

2. The number (and location) of list levels in a given list structure are shown at the bottom of the node preview. If you want to count arrows, it’s actually the number or arrows plus two (the top level list and item level don’t have arrows to expand/collapse).  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/13f833206ffc8facd0d7af589de3a6e2b515cd94.png)

---

<div class="post-metadata">

**Author:** ![ahmedabdlsalamm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmedabdlsalamm/32/129400_2.png) [@ahmedabdlsalamm](https://forum.dynamobim.com/u/ahmedabdlsalamm)\
**Post date:** [September 21, 2023, 6:21am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/6 "2023-09-21T06:21:40Z")

</div>

> [@Nick\_Boyts](#):
>
> or arrows plus two (the top level list and item level don’t have arrows to expand/collapse).

i although have a problem here why when i set parameter it should be values from list flatten values  
but when i check and get parameter it be wrong

 ![03](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c8559afbb449239847b26a9d1d59d843efe75fb.png)

---

<div class="post-metadata">

**Author:** ![ahmedabdlsalamm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmedabdlsalamm/32/129400_2.png) [@ahmedabdlsalamm](https://forum.dynamobim.com/u/ahmedabdlsalamm)\
**Post date:** [September 21, 2023, 6:22am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/7 "2023-09-21T06:22:23Z")

</div>

i although have a problem here why when i set parameter it should be values from list flatten values  
but when i check and get parameter it be wrong

 ![03](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c8559afbb449239847b26a9d1d59d843efe75fb.png)

---

<div class="post-metadata">

**Author:** ![ahmedabdlsalamm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmedabdlsalamm/32/129400_2.png) [@ahmedabdlsalamm](https://forum.dynamobim.com/u/ahmedabdlsalamm)\
**Post date:** [September 21, 2023, 6:23am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/8 "2023-09-21T06:23:58Z")

</div>

i although have a problem here why when i set parameter it should be values from list flatten values  
but when i check and get parameter it be wrong

 ![03](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c8559afbb449239847b26a9d1d59d843efe75fb.png)  
i although have a problem here why when i set parameter it should be values from list flatten values  
but when i check and get parameter it be wrong  
 ![03](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/c/6c8559afbb449239847b26a9d1d59d843efe75fb.png)

---

<div class="post-metadata">

**Author:** ![ahmedabdlsalamm](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ahmedabdlsalamm/32/129400_2.png) [@ahmedabdlsalamm](https://forum.dynamobim.com/u/ahmedabdlsalamm)\
**Post date:** [September 21, 2023, 6:30am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/9 "2023-09-21T06:30:16Z")

</div>

i although have a problem here why when i set parameter it should be values from list flatten values  
but when i check and get parameter it be wrong  
Uploading: 03.PNG…

---

<div class="post-metadata">

**Author:** ![stefan.gokstorp](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@stefan.gokstorp](https://forum.dynamobim.com/u/stefan.gokstorp)\
**Post date:** [September 21, 2023, 7:20am UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/10 "2023-09-21T07:20:35Z")

</div>

lets do a better explaination. nick is not wrong but essentially 2 of the levels are a bit arbitary.

 ![lets do better](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e4804b5dc0cc125590a28a0f3f370552ce6f03db.png)

2 things to remember.

levels flatten at that level. what i mean is every level is a step in and it flattens the list at that point.  
Levels counts from the furthest point out and inward.

ok lets get to the picture note i am using keep list structured here to make it a bit more clear whats going on.

1 (see picture)

this is with no level and it takes the data furthest out in the list from index 0 in this case list 1

2 (see picture)

this is most of the time the same as flatten the list before getting index it will return all values at the outmost place in a flatten list (using keep strutured here to make it clear where the data comes from which is why the list doesnt look flattened) anything else then index 0 here will return null as value since you only have one list.

3(see picture)

gets from level 2 and this is where it can get a bit confusing until you remeber levels flatten. basiclly it flatten one level and index 0 will become the first value in your outmost list index 1 will be the word “contains” and 3 “items” and so on.

4(see picture)  
at this level it takes from the green markings and remember list flattens so in this instance any other value then 0 will return null

5(see picture)  
This is the same as not using level (in this instance since its the top level) it take the list exactly the same as 1(see picture)

Posting 2 more pictures below one without structured and one with index 2 so it becomes more Clear

 ![example without structured](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/a/5ae0d9b3154718fbd31ea7c0a11a7b8081c9db6c.png)  
 ![example with index 2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3fcb3750ef39b36158331ae6484360b63f3f8288.png)

Hope it helps (actully helped me to go back and look at this.

---

<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:** [September 21, 2023, 1:56pm UTC](https://forum.dynamobim.com/t/list-levels-understand/93910/11 "2023-09-21T13:56:18Z")

</div>

We can’t see your `parameterName` input so we don’t know what the structure is. The `GetParameter` node may also not work with that structure inherently. If your list structures are correct and it’s still not working, then you’ll need to use list levels.
