# List merging

**URL:** <https://forum.dynamobim.com/t/list-merging/19470>\
**Category:** Lists-Logic\
**Created:** [February 27, 2018, 12:28pm UTC](https://forum.dynamobim.com/t/list-merging/19470 "2018-02-27T12:28:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunbose](https://avatars.discourse-cdn.com/v4/letter/v/d26b3c/32.png) [@varunbose](https://forum.dynamobim.com/u/varunbose)\
**Post date:** [February 27, 2018, 12:28pm UTC](https://forum.dynamobim.com/t/list-merging/19470/1 "2018-02-27T12:28:20Z")

</div>

Hi all,

I need help in using the List.Map or so to merge the 2 lists as shown below.

 ![List%20merge](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/9/792bcb3b5df8adf74da3df10d279148a2c6d4eae.JPG)

Please help.

---

<div class="post-metadata">

**Author:** ![Shurendel](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@Shurendel](https://forum.dynamobim.com/u/Shurendel)\
**Post date:** [February 27, 2018, 1:27pm UTC](https://forum.dynamobim.com/t/list-merging/19470/2 "2018-02-27T13:27:13Z")

</div>

Hi @varunbose

 ![Capture4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/125b6ddb8c47a3c9a4d4d6a07dd72ff8179ed870.png)

---

<div class="post-metadata">

**Author:** ![jostein\_olsen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jostein_olsen/32/8570_2.png) [@jostein\_olsen](https://forum.dynamobim.com/u/jostein_olsen)\
**Post date:** [February 27, 2018, 1:52pm UTC](https://forum.dynamobim.com/t/list-merging/19470/3 "2018-02-27T13:52:30Z")

</div>

Or this:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b5b575301f50817f722adca160a7e09bddfa81c.png)

---

<div class="post-metadata">

**Author:** ![varunbose](https://avatars.discourse-cdn.com/v4/letter/v/d26b3c/32.png) [@varunbose](https://forum.dynamobim.com/u/varunbose)\
**Post date:** [February 28, 2018, 11:39am UTC](https://forum.dynamobim.com/t/list-merging/19470/4 "2018-02-28T11:39:54Z")

</div>

Thanks @jostein_olsen, Shurendel for those hints.

But my script didn’t work the way I thought will…So I changed the script and now I need another help.

I need to repeat the script in red box number of times provided by list.count

 ![Cycle](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c7e608d73b61d57b2e668d3b79aa87fdabf82ea6.PNG)

or even the number in the first code block to start from 0 to number from list.count.

May be any List.Map functions…

Don’t know whether I explained it properly.

Below is the complete graph & sample project…

 ![Test-2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/37f46b6f614c3918010bdba8824c976fb15db685.png)  
(Element.In room don’t work for me, as equipment is above room space. So I edit code to get Equip. location point with 0 in Z axis.  
[Room name to Equipment\_Script.dyn](https://forum.dynamobim.com/uploads/short-url/uYqRWCqieeA9wZ3D05WMDKiR6Pp.dyn) (16.5 KB)  
[Project - To Open.rvt](https://forum.dynamobim.com/uploads/short-url/mlMeCjPQ5QoYxL52RCsiMBD1k9B.rvt) (1.1 MB)  
[Project - To Link.rvt](https://forum.dynamobim.com/uploads/short-url/biLRXDFrUHDQfRjsp1hNDbxeAgn.rvt) (1.6 MB)

---

<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:** [February 28, 2018, 11:46am UTC](https://forum.dynamobim.com/t/list-merging/19470/5 "2018-02-28T11:46:53Z")

</div>

You asked a specific question in your original post.  
If @Shurendel or @jostein_olsen has solved that I’d say mark it as solved.  
I’d say as you changed your script and are now dealing with a different problem it might be better to create a new topic for that new problem.
