# Join geometry walls

**URL:** <https://forum.dynamobim.com/t/join-geometry-walls/28874>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [November 25, 2018, 5:33am UTC](https://forum.dynamobim.com/t/join-geometry-walls/28874 "2018-11-25T05:33:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preetesh\_Magdum1](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Preetesh\_Magdum1](https://forum.dynamobim.com/u/Preetesh_Magdum1)\
**Post date:** [November 25, 2018, 5:33am UTC](https://forum.dynamobim.com/t/join-geometry-walls/28874/1 "2018-11-25T05:33:58Z")

</div>

![join%20walls](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/66830b670d34638caf240f52b2fad487668fb2d1.png)

Hello Guys,

I am trying to join all the walls in each sub-list, from node List.FilterbyBoolMask output.  
i tried to transpose ans get to list to join the walls . Python script is ti join two walls join geometry.  
Can anybody suggest me on how do i sort the list to that i get only two walls in each list .

Example of list would be like

{a,b,c,d,e}  
{1,2,3,4}  
{x,y}  
{a,s,d}

i need the list to be filtered or sorted as  
{{a,b} ,{b,c}, {c,d}, {d,e}}  
{{1,2} ,{2,3}, {3,4}}  
{x,y}  
{{a,s} ,{s,d}}

---

<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:** [November 25, 2018, 6:04am UTC](https://forum.dynamobim.com/t/join-geometry-walls/28874/2 "2018-11-25T06:04:29Z")

</div>

Use dictionary:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a48bd17a462bf9bc34d46df87f4094b7524cb0d0.png)

---

<div class="post-metadata">

**Author:** ![Preetesh\_Magdum1](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Preetesh\_Magdum1](https://forum.dynamobim.com/u/Preetesh_Magdum1)\
**Post date:** [November 25, 2018, 7:28am UTC](https://forum.dynamobim.com/t/join-geometry-walls/28874/3 "2018-11-25T07:28:00Z")

</div>

@Kulkul that the result i was looking for.

but it dint work ,

my list in the form of  
{{a,b,c,d,e}, {1,2,3,4} ,{x,y}, {a,s,d}}

result should be similar to all the sub lists, is it possible

Dyanmo shows a handling error for the above dyn

---

<div class="post-metadata">

**Author:** ![Preetesh\_Magdum1](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Preetesh\_Magdum1](https://forum.dynamobim.com/u/Preetesh_Magdum1)\
**Post date:** [November 25, 2018, 7:57am UTC](https://forum.dynamobim.com/t/join-geometry-walls/28874/4 "2018-11-25T07:57:41Z")

</div>

![join](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4bf07160681f9b05a1f4634a63044f111217f2fe.png)

This is the result i got ,

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [November 26, 2018, 8:43am UTC](https://forum.dynamobim.com/t/join-geometry-walls/28874/5 "2018-11-26T08:43:16Z")

</div>

Hey,

I think the problem might be your levels… (the problem is never Kulkul!)

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

Hope that works,

Mark
