# Join Geometry not working properly

**URL:** <https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342>\
**Category:** Packages\
**Tags:** dynamo\
**Created:** [April 3, 2019, 12:49pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342 "2019-04-03T12:49:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![duzenlimehmett](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@duzenlimehmett](https://forum.dynamobim.com/u/duzenlimehmett)\
**Post date:** [April 3, 2019, 12:49pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/1 "2019-04-03T12:49:55Z")

</div>

Hi all,I am a new learner of Dynamo and trying to solve the interferences between geometries in Dynamo.(For ex: ceilings and columns).Hovewer, i couldn’t manage it.when i try the script(below) it joins all the elements to each other not just the ones which intersects.I just want to join which are intersects each other.I tried to make a filter based on a geometry intersects but didn’t work.any suggestions?  
thanks in advance.

 ![JoinGeometry](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/669e7a8e64c37062290bd7dffceb2821f911e639.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [April 3, 2019, 12:52pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/2 "2019-04-03T12:52:48Z")

</div>

BimorphNodes?

---

<div class="post-metadata">

**Author:** ![duzenlimehmett](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@duzenlimehmett](https://forum.dynamobim.com/u/duzenlimehmett)\
**Post date:** [April 3, 2019, 2:03pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/3 "2019-04-03T14:03:13Z")

</div>

could you please be more spesific, ?

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [April 3, 2019, 6:57pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/4 "2019-04-03T18:57:57Z")

</div>

Look into the Element.IntersectsElement node. It is a highly performant clash-detection node which will enable you to group the clashing elements - so columns and ceilings into sublists - making it very straightforward to join the geometry. You will need to experiment however, as co-planar faces are not clashes, so if your columns terminate flush with your ceiling for example, there is no clash, so you might have to think of alternative solutions if that is the case.

---

<div class="post-metadata">

**Author:** ![duzenlimehmett](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@duzenlimehmett](https://forum.dynamobim.com/u/duzenlimehmett)\
**Post date:** [April 4, 2019, 7:43am UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/5 "2019-04-04T07:43:00Z")

</div>

thanks for your answer Thomas;

This is the original revit file that interferences can be seen.

 ![rvtbefore](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/4/84eb31a05f996ca54ca4ed7653cf8e1ba7057e10.png)

After applying this : (i don’t know whether you mention it or not).

 ![Node](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/ca32c1b33c8b2b02be958412cfbf06b7adc797aa.png) .

It joins all members to each other even those which are not intersecting.

 ![rvtafter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/0/1019d3691048e358e0c77224a473da6ee5a6ab99.png)

any solutions?

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [April 4, 2019, 12:17pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/6 "2019-04-04T12:17:52Z")

</div>

You are not managing your data structure (lists) correctly. View the video here to see how you can remove empty clash results to start. You then need to group the clashing elements from set A and B into a new sublist then perform the join.

  
From 1:30 onwards explains how to clean your lists.

---

<div class="post-metadata">

**Author:** ![duzenlimehmett](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@duzenlimehmett](https://forum.dynamobim.com/u/duzenlimehmett)\
**Post date:** [April 5, 2019, 7:19am UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/7 "2019-04-05T07:19:07Z")

</div>

i think i did it.However i still have the same problem.  
Also i have to run the script repeatedly

 ![Joingeometry2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/06ffc393f4c3d1ff508d0593c3e5c60aa45ba0b8.png)

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [April 5, 2019, 9:12am UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/8 "2019-04-05T09:12:35Z")

</div>

There should be an equal number of items in both lists, otherwise there is more than 1 clashing element against element A. Verify your data before attempting the join, and resolve as necessary (using more filtering).

---

<div class="post-metadata">

**Author:** ![duzenlimehmett](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@duzenlimehmett](https://forum.dynamobim.com/u/duzenlimehmett)\
**Post date:** [April 5, 2019, 12:11pm UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/9 "2019-04-05T12:11:16Z")

</div>

i have 8 ceilings and 16 columns which are intersects each other.using list.getitematindex and assingning them as the same index solve the situation but this time i have to run dynamo multiple times.when the project gets larger i think it will be a problem to use it.Is there another way to do it?

---

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [April 7, 2019, 10:11am UTC](https://forum.dynamobim.com/t/join-geometry-not-working-properly/34342/10 "2019-04-07T10:11:18Z")

</div>

In that case you need to structure your data for that join node you’re using, so you need to group the element from setA with the elements which clash it in setB as a sublist (list Add + list map might be one way, but there are many so find one which works best for your requirements) so you end up with a list of lists - essentially you just want to insert each Element from setA into each corresponding sublist output by the IntersectsElement node.

Once grouped, on the join node set the input port lacing to @L2 and it should work as expected.
