# How to rehost face base families to the closest face of the intersecting wall

**URL:** <https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327>\
**Category:** Revit\
**Tags:** geometry, dynamo\
**Created:** [January 19, 2024, 3:11pm UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327 "2024-01-19T15:11:34Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 19, 2024, 3:11pm UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/1 "2024-01-19T15:11:34Z")

</div>

Hi  
I have several face-based families that must be copied from one project to many other projects. The problem is when copying and pasting to the new project the families lose their host and must be rehosted to the closest face of the intersecting wall.  
I could not find a way to rehost the elements in Dynamo.  
I would appreciate it if you could guide me on what to do.

Best Regards,  
Farshid

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 21, 2024, 7:51am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/2 "2024-01-21T07:51:25Z")

</div>

Hi @farshidkaviani dont think we can rehost, but you could try insert them again…probably it could work…

![Revit_ZmVGkqvWoO](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/1/91246f24fdbdec02e549483fd2400527c6f06847.gif)

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 21, 2024, 7:58am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/3 "2024-01-21T07:58:59Z")

</div>

Hi @sovitek,  
Thank you so much for your help, I will try that, but the problem is that I have some conduits connected to the connectors of my face base families that I think will become disconnected from the connectors if I insert them again, but I may be wrong about that. Otherwise, this could be a good solution.

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 25, 2024, 7:23pm UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/4 "2024-01-25T19:23:51Z")

</div>

Hi @sovitek  
Thank you for the help once again. The video is a bit too fast to follow and it is  
Not possible to pause it to see the nodes. Is it possible that you send the script or a screenshot of it?

I do appreciate your help in advance.

Best Regards,  
Farshid

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [January 25, 2024, 8:26pm UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/5 "2024-01-25T20:26:20Z")

</div>

I think you can save the gif and open the image as frames using an application such as “screen to gif”.

> **[ScreenToGif - Record your screen, edit and save as a gif or video](https://www.screentogif.com/)**
>
> Free screen recorder tool. Record, edit and save as a gif or video.

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 26, 2024, 4:37am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/6 "2024-01-26T04:37:53Z")

</div>

Hi @farshidkaviani I dont have it anymore, I will take a look later today…have a nice day

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 26, 2024, 4:41am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/7 "2024-01-26T04:41:12Z")

</div>

Hi again,  
Thank you so much. It means a lot for me.  
If possible please use a wall with compound structure as your test model, as it is the case I am troubled with.

I do appreciate your help in advance. 🙏 🙏 🙏

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 26, 2024, 4:42am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/8 "2024-01-26T04:42:17Z")

</div>

yes i will try with compound…could you share your family?

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 26, 2024, 4:59am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/9 "2024-01-26T04:59:27Z")

</div>

Thank you so much. I sent the family here, but please be advised for some reasons the family only included voids so I added a dummy solid covering the entire void, to make it possible to get the intersection, but the visibility can be controlled by a Type parameter.  
May I also as you to have more than one wall in your test model, as I could see at the end of graph you have flattened the list and used the first item, but in my case the families could be on both interior and exterior sides of the wall instances, and the sides order is so random that I can not be simplified with the same logic.

Thank you once again.  
[Exterior Power Socket-Single.rfa](https://forum.dynamobim.com/uploads/short-url/n7fkCbQlNyCuT731Sze8eyB7q1G.rfa) (444 KB)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 26, 2024, 8:30am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/10 "2024-01-26T08:30:07Z")

</div>

Hello try something here could probably work for you…

![Revit_hcjJY6WKX5](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/7/87b124fd4218309930c8103173d843dd3f98f99f.gif)  
[forum elec.dyn](https://forum.dynamobim.com/uploads/short-url/zVziCbPr6mvkgbo67bK6AsU6oSR.dyn) (31.3 KB)

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 26, 2024, 8:53am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/11 "2024-01-26T08:53:58Z")

</div>

Hello @sovitek  
I found your graph very inspiring and wanted to apply a similar method with some adjustments for my case, but I ran into some problems and got stuck. I thought it would be useful to send you a sample file with families to show you the issue. I also attached my graph so you can see what I have done so far.  
I would be grateful if you could assist me in resolving this problem.

Sincerely,  
Farshid

> **[Download Data package from January 26th.](https://filetransfer.io/data-package/jiIWPQPi#link)**
>
> Size of the data package: 9.58 MB. Free transfer of up to 6 GB of photos, videos and documents. Send large files via email or a link to share. No registration, no ads, just simple file sharing!

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 26, 2024, 2:12pm UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/12 "2024-01-26T14:12:59Z")

</div>

Hi @farshidkaviani something here should work on your sample file…ps nice with a dk template 😉

![Revit_cJUVIgnl2u](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/b/eb774c03de8cc5e467b8db8c69ebe0ef8df4cc00.gif)  
[11forum elec.dyn](https://forum.dynamobim.com/uploads/short-url/4WCqliOIKFkHtsUrQFgVR9v1trs.dyn) (36.5 KB)

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 27, 2024, 7:47am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/13 "2024-01-27T07:47:47Z")

</div>

Dear @sovitek,

I am very grateful for your assistance and support. You have been very helpful and generous with your time and expertise. I appreciate your kindness and professionalism.

Best regards,  
Farshid

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 27, 2024, 7:50am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/14 "2024-01-27T07:50:34Z")

</div>

you are welcome 😉

---

<div class="post-metadata">

**Author:** ![farshidkaviani](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@farshidkaviani](https://forum.dynamobim.com/u/farshidkaviani)\
**Post date:** [January 29, 2024, 4:18pm UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/15 "2024-01-29T16:18:15Z")

</div>

Hi @sovitek  
Thank you once again for the help from earlier. I experienced an unexpected behavior from this script! When I ran the script by selecting elements it worked fine, but when I collected elements from the category, it deleted all elements!  
Do you possibly know the reason why?

Best Regards,  
Farshid

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [January 30, 2024, 4:48am UTC](https://forum.dynamobim.com/t/how-to-rehost-face-base-families-to-the-closest-face-of-the-intersecting-wall/97327/16 "2024-01-30T04:48:40Z")

</div>

no not sure…
