# Dynamo Newbie: Retrieve Host Information from Revit Generic Model Families

**URL:** <https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471>\
**Category:** Revit\
**Created:** [August 3, 2022, 10:08am UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471 "2022-08-03T10:08:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanBuck](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@DanBuck](https://forum.dynamobim.com/u/DanBuck)\
**Post date:** [August 3, 2022, 10:08am UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/1 "2022-08-03T10:08:50Z")

</div>

Hi all, first time Dynamo user here so be gentle.

I have a linked model with numerous generic models hosted in walls/floors etc.  
I need to schedule out these elements, reporting the element they are hosted in.

I’m lead to believe that I need a Dynamo script to populate a new parameter with this data, as Revit can’t natively report it.

I found an example script online but couldn’t find the correct nodes in my Dynamo, can anyone advise?

I’m running Revit 2020.2, with Dynamo 2.3.0.7661

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [August 3, 2022, 11:56am UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/2 "2022-08-03T11:56:39Z")

</div>

These nodes are all in 2020. If you want to schedule the property you would need to write it to a project based parameter in Revit (can be shared).

The values would only be as up to date as the last time the script was ran.

 ![host](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/c/1c64ae2376b022548866281b8bdc9f404d2e9e69.png)

---

<div class="post-metadata">

**Author:** ![DanBuck](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@DanBuck](https://forum.dynamobim.com/u/DanBuck)\
**Post date:** [August 3, 2022, 1:02pm UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/3 "2022-08-03T13:02:15Z")

</div>

Thanks, this is perfect.  
I am running into an issue that the families in question are actually face based as opposed to wall hosted etc, and I’m getting an error that items don’t have hosts. Is there a way to filter to select only those with a host, or is the face-based element tripping this up?

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [August 3, 2022, 1:06pm UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/4 "2022-08-03T13:06:07Z")

</div>

I used a face based element in my example. Noting host and element were in the same model.

If they arent, look into this thread for a solution:

> [@Get host from Linked element](https://forum.dynamobim.com/t/get-host-from-linked-element/53889):
>
> [2020-08-10\_10h46\_27] Hello, I try to find the host from my linked element (doors). So i can get it from doors which are placed native. They work very well. I have a code for native elements and some stuff from the buildingcoder (whats is hart do understand!) i have bakery and GeniusLoci things but i can`t connect the nodes, there is the gab between elements and linked elements. import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import \* clr.AddReference('Rev…

---

<div class="post-metadata">

**Author:** ![DanBuck](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@DanBuck](https://forum.dynamobim.com/u/DanBuck)\
**Post date:** [August 3, 2022, 1:10pm UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/5 "2022-08-03T13:10:27Z")

</div>

They are in the same element in my dummy project:

 ![Capture 01](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/ef0de6e32dd05a5997bb3c149e50618a8ec4ff65.png)

Am I missing something?

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [August 3, 2022, 1:18pm UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/6 "2022-08-03T13:18:14Z")

</div>

Consider me stumped, worked for me with a face based family on floors/walls/ceilings/roofs. Hopefully someone else knows some more quirks related to this type of scenario, maybe share the error message to help people delve further.

---

<div class="post-metadata">

**Author:** ![DanBuck](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@DanBuck](https://forum.dynamobim.com/u/DanBuck)\
**Post date:** [August 3, 2022, 1:22pm UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/7 "2022-08-03T13:22:06Z")

</div>

Thanks for your help regardless!

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 3, 2022, 1:42pm UTC](https://forum.dynamobim.com/t/dynamo-newbie-retrieve-host-information-from-revit-generic-model-families/79471/8 "2022-08-03T13:42:53Z")

</div>

The issue may be phase related if the host element isn’t on the active phase? Just a guess based on other reporting parameters with similar issues.
