# Getting the rooms of family instances

**URL:** <https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [May 2, 2025, 8:17am UTC](https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858 "2025-05-02T08:17:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhavic29](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@madhavic29](https://forum.dynamobim.com/u/madhavic29)\
**Post date:** [May 2, 2025, 8:17am UTC](https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858/1 "2025-05-02T08:17:11Z")

</div>

I’m trying to get the room name of the family instances of all the casework. But why do I get an error with a names of the casework instead of the room names?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/f/9fa1eb104be4ee7aecf4d6625909258b08fc4b0d.jpeg)

---

<div class="post-metadata">

**Author:** ![BimAmbit](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bimambit/32/192629_2.png) [@BimAmbit](https://forum.dynamobim.com/u/BimAmbit)\
**Post date:** [May 2, 2025, 8:26am UTC](https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858/2 "2025-05-02T08:26:32Z")

</div>

interesting, whats the error message though?

---

<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:** [May 2, 2025, 10:25am UTC](https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858/3 "2025-05-02T10:25:17Z")

</div>

Probably because some of them do not have a reporting point in a room. Somewhere in the second node list there will likely be a null or nulls.

---

<div class="post-metadata">

**Author:** ![madhavic29](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@madhavic29](https://forum.dynamobim.com/u/madhavic29)\
**Post date:** [May 2, 2025, 11:51am UTC](https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858/4 "2025-05-02T11:51:22Z")

</div>

Even when I clean the null values, I get the same result.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/1/b1f87495dc22db0f3dd8396758ed9d0e2a49a1df.jpeg)

---

<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:** [May 2, 2025, 12:16pm UTC](https://forum.dynamobim.com/t/getting-the-rooms-of-family-instances/109858/5 "2025-05-02T12:16:07Z")

</div>

You didnt tell preserve indices to be false. Make sure to look at the lists in your nodes.
