# Joining Geometry from Shared/Nested Family to Wall

**URL:** <https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871>\
**Category:** Revit\
**Created:** [January 4, 2018, 8:53pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871 "2018-01-04T20:53:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chad\_Clary](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chad_clary/32/10510_2.png) [@Chad\_Clary](https://forum.dynamobim.com/u/Chad_Clary)\
**Post date:** [January 4, 2018, 8:53pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/1 "2018-01-04T20:53:47Z")

</div>

I’ve gone through the search and while there were a few threads about joining geometry I didn’t really find an answer (I think), other than some python stuff that is a year or two old. I did find some help in the Auto Join Walls thread and one other (see below) but I’m still not having much luck.

[http://dynamobim.org/forums/topic/auto-join-walls-and-columns/#post-19845](http://dynamobim.org/forums/topic/auto-join-walls-and-columns/#post-19845)

> [@Join geometry nodes](https://forum.dynamobim.com/t/join-geometry-nodes/4271):
>
> Hi everybody, I’ve a small problem and I’m pretty sure it’s possible to solve it ! I’m trying to join two types of elements in Revit because it is way too long to do it manually. My script is working, it’s a very simple one … Unfortunately, the script joins all the elements in my model even those which are not intersecting each other … [image] This is not a big problem because I get the result I’m looking for but I have a lot of errors in my model. I can’t even open an error report because…

That said - I’m trying join my window trim (GM, shared & nested in my window family) to the finish wall (walls are built in 2-parts, structure & finish.) I can collect all the elements and thanks to the 2nd link above, determine if they intersect but the actual join is not working. Manually joining the trim & wall in the model works just fine, so the issue is somewhere in my graph. I’ve tried both the Join Geometry node from Hot Gear and the Element.JoinGeometry from Clockwork and the end result is the same.

Graph:

 ![JoinGeometry](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/e/ce3047c1d604335868b9af61227bd2a1f08855bc.png)

Result after running: (all the orange seems pertinent…)

 ![JoinWindowResult](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/8/d89ff6f9cd7e091ec310d4c52f7eb6b0b391dd74.PNG)

Graph & Model if it helps:  
[JoinWindowTrim.dyn](https://forum.dynamobim.com/uploads/short-url/9XypMLvftYmtPLepZktdtSAhKT5.dyn) (12.2 KB)

[JoinWindows.rvt](https://forum.dynamobim.com/uploads/short-url/55gRsk2aWpgQ1ybO7xpNLi5L76P.rvt) (2.4 MB)

---

<div class="post-metadata">

**Author:** ![Chad\_Clary](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chad_clary/32/10510_2.png) [@Chad\_Clary](https://forum.dynamobim.com/u/Chad_Clary)\
**Post date:** [January 5, 2018, 8:03pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/2 "2018-01-05T20:03:52Z")

</div>

After some more work the error seems to be related to the Geometry.DoesIntersect section of the graph. If I take that chunk out it runs and joins the window trim to the wall, but also tries to join the walls to each other and the window trim to other walls that shouldn’t be joined.  
There was also the issue where I was feeding the wrong list into the Filter.ByBool node which didn’t help…

The question now is - where am I going wrong with the Intersect section of the graph? I believe the end result of it should be a 1:1 relationship of WindowTrimA intersects WallA, WindowTrimB intersects WallB (but not A or C), and so on but I’m missing something… 😣

 ![JoinWindowV2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e4966acba41597ff278ce9e4fc17241b8806b57a.png)

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [January 5, 2018, 8:47pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/3 "2018-01-05T20:47:31Z")

</div>

Took a little bit of a different approach but I think I got what you needed. I did have to use cross product but should not be slower than checking if two items intersect. I think there is a better way but my brain is fried for the week.

If you have any question let me know. I am about to leave for the week so probably wont be able to answer them until Monday.

Have a good weekend,

Steven

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9f709cb51daff2b21f7e86961538c9cd9a9436b8.PNG)  
[JoinWindowTrim.dyn](https://forum.dynamobim.com/uploads/short-url/1FuvE29JOxsnNw6OMPxpdnhPfzd.dyn) (16.8 KB)

---

<div class="post-metadata">

**Author:** ![Chad\_Clary](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chad_clary/32/10510_2.png) [@Chad\_Clary](https://forum.dynamobim.com/u/Chad_Clary)\
**Post date:** [January 9, 2018, 4:56pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/4 "2018-01-09T16:56:13Z")

</div>

Thanks for taking a look. The problem with that solution, at least for me, is that my walls are put together as 2 parts - the core wall (gyp, structure, sheathing) and a finish wall (siding), so the host wall isn’t relevant. I’ll see if I can do anything with that FamilyInstance.SubComponent node though, a change in approach might help. 🍻

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [January 9, 2018, 5:44pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/5 "2018-01-09T17:44:50Z")

</div>

Sorry I missed that Chad,

Try this one.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d0af8a02848faa0644428ca35ca0e9bee49249f0.PNG)

[JoinWindowTrim (1).dyn](https://forum.dynamobim.com/uploads/short-url/ud4oDcx2tg5mKyDjayrBnNoZDma.dyn) (15.4 KB)

Let me know if you have any questions,  
Steven

---

<div class="post-metadata">

**Author:** ![Chad\_Clary](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chad_clary/32/10510_2.png) [@Chad\_Clary](https://forum.dynamobim.com/u/Chad_Clary)\
**Post date:** [January 9, 2018, 10:04pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/6 "2018-01-09T22:04:45Z")

</div>

That at least joins the trim to the siding, but still results in a bunch of errors (walls are joined but don’t intersect.) I’ll keep plugging away though. Haven’t had a chance to do much with the FamilyInstance.SubComponent node yet - I’ll try that next.

And the Selection.AllWallsOfType is from the Beaker package, apologies for not noting that earlier.

---

<div class="post-metadata">

**Author:** ![Steven](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/steven/32/112504_2.png) [@Steven](https://forum.dynamobim.com/u/Steven)\
**Post date:** [January 9, 2018, 11:55pm UTC](https://forum.dynamobim.com/t/joining-geometry-from-shared-nested-family-to-wall/17871/7 "2018-01-09T23:55:47Z")

</div>

At the end do you have two walls or one in each list with the trim? I was thinking your method of collecting the walls was filtering to just the inside wall. If you change it to just grab the inside wall does it work?

Dont worry about not letting me know about the node. it does not have to do with your question.
