# Family.inRoom question

**URL:** <https://forum.dynamobim.com/t/family-inroom-question/978>\
**Category:** Packages\
**Created:** [January 28, 2015, 7:11am UTC](https://forum.dynamobim.com/t/family-inroom-question/978 "2015-01-28T07:11:33Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enlint](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@Enlint](https://forum.dynamobim.com/u/Enlint)\
**Post date:** [January 28, 2015, 7:11am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/1 "2015-01-28T07:11:33Z")

</div>

Only recent started working with Dynamo. I am impressed with all the work you all do with dynamo. It opens a lot of possibilities to extent the functionality of Revit for me.

I now use the node family Family.InRoom from Koppevi. I notice that in one instance I had a family that is for the major part inside the room. The node list this item as not in the room. While I check my schedule inside Revit it assigns a room name and number to this item. Is there a reason for this difference?

[ 

![In Room or Not](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/d/d2923dcab03a2ec0eaf5b74f07b7802bad06ec8e.png)

 ](http://dynamobim.com/wp-content/uploads/forum-assets/infoenlabinternational-com/01/28/In-Room-or-Not.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

I’am not familiar enough (yet) with dynamo and python to delve into this node myself.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Peter\_Kompolschek](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@Peter\_Kompolschek](https://forum.dynamobim.com/u/Peter_Kompolschek)\
**Post date:** [January 28, 2015, 11:44am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/2 "2015-01-28T11:44:43Z")

</div>

Enlint, so that is interesting.

basically it is a quite simple code.

we have two lists. one for rooms the other for objects.

the objects in revit have “location points” or “location lines”.

the python code uses a revit api funtion that checks if a point is within a room.

thats it.

&nbsp;

maybe you send me your example that i may find out what went wrong in your case

peter.

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Konrad\_K\_Sobon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/konrad_k_sobon/32/8838_2.png) [@Konrad\_K\_Sobon](https://forum.dynamobim.com/u/Konrad_K_Sobon)\
**Post date:** [January 30, 2015, 12:01am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/3 "2015-01-30T00:01:38Z")

</div>

Peter,

One thing that i noticed right away is that Location Point of a family is always the 0,0,0 point or the intersection of the two reference planes in the family. Sometimes that family could be built where the geometry is located away from that center point. In that situation family could report being/not being in a room wrongly.

&nbsp;

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [January 30, 2015, 12:59am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/4 "2015-01-30T00:59:43Z")

</div>

Also, since Revit 2014 a lot of families now have a room calculation point. If that gets moved to an adjacent room (or is not located at the placement point of the family in the family file), that might be another reason.

---

<div class="post-metadata">

**Author:** ![Peter\_Kompolschek](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@Peter\_Kompolschek](https://forum.dynamobim.com/u/Peter_Kompolschek)\
**Post date:** [January 30, 2015, 3:28am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/5 "2015-01-30T03:28:38Z")

</div>

I just updated the package. now the Family.LocationPoints node shows the extracted point geometries in dynamo.

---

<div class="post-metadata">

**Author:** ![Enlint](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@Enlint](https://forum.dynamobim.com/u/Enlint)\
**Post date:** [January 30, 2015, 10:06am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/6 "2015-01-30T10:06:53Z")

</div>

![Schedule](http://dynamobim.com/wp-content/uploads/forum-assets/infoenlabinternational-com/01/30/Schedule-245x300.png)

[Test](http://dynamobim.com/wp-content/uploads/forum-assets/infoenlabinternational-com/01/30/Test.rvt)

&nbsp;

Peter,

Thanks for you help. I tried with your version 0.03. Still the difference, Revit reports all three items inside the room (see schedule). Dynamo only one.

For your information I am running with Revit 2015 and dynamo 0.7.5.3566.

Attached the stripped revit file (Test) for your review.

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Peter\_Kompolschek](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@Peter\_Kompolschek](https://forum.dynamobim.com/u/Peter_Kompolschek)\
**Post date:** [January 30, 2015, 12:16pm UTC](https://forum.dynamobim.com/t/family-inroom-question/978/7 "2015-01-30T12:16:56Z")

</div>

Enlint, the solution was easier than expected!

inspecting your family i found out, that the origin is misplaced:

as you see the origin is outside the family (the circle at the northern intersection of the reference planes)

![origin](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/5/5dfee5e978ed3c9e435f19c5dc631cea59780180.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

changing the origin (select the center reference plane and change in properties “Defines Origin”)

save and voila 😉

even if the geometry is intersecting the families are in the rooms

![room](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/7/728451228cd6a93428d74901d8d762b8395aed74.png)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Enlint](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@Enlint](https://forum.dynamobim.com/u/Enlint)\
**Post date:** [January 30, 2015, 12:36pm UTC](https://forum.dynamobim.com/t/family-inroom-question/978/8 "2015-01-30T12:36:30Z")

</div>

Peter,

&nbsp;

Thanks for looking into it. I did the origin on purpose as I normally want it on a fixed distance from the wall. But this does not entirely answer my question

What my actual question is, why does, while the items are in the exact same position, revit reports a room number/name (see my schedule) while dynamo does not.

&nbsp;

You see the same thing happening with the whiteboard. Revit reports a room name/number (see earlier screenshots). Dynamo does not.

So something is different how Revit and Dynamo determine in room.

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Peter\_Kompolschek](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@Peter\_Kompolschek](https://forum.dynamobim.com/u/Peter_Kompolschek)\
**Post date:** [January 30, 2015, 1:27pm UTC](https://forum.dynamobim.com/t/family-inroom-question/978/9 "2015-01-30T13:27:34Z")

</div>

different calculation methods.

only the russion knows 😉

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [February 1, 2015, 5:13am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/10 "2015-02-01T05:13:27Z")

</div>

You could try a different approach. Have you dabbled in bounding boxes and their boolean intersections? That’s probably what Revit’s built-in method is using. And as a matter of fact, Julien Benoit’s steam nodes package has a really neat node called “Tool.GetSurroundingElements” that deals with a similar user cases. I have a hunch you will love that node:

![Capture](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/7/79d5be2d73e91c0cca2e8bb36608a82803d1913b.jpg)

&nbsp;

In the example above I’ve got two rooms and 4 desks. One room contains two desks, the other a single desk and the last desk is outside the rooms. If you give a tiny tolerance to the node, it should perform similar to Revit’s room check.

---

<div class="post-metadata">

**Author:** ![Michael\_Wadsworth](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Michael\_Wadsworth](https://forum.dynamobim.com/u/Michael_Wadsworth)\
**Post date:** [July 9, 2015, 10:56am UTC](https://forum.dynamobim.com/t/family-inroom-question/978/11 "2015-07-09T10:56:58Z")

</div>

Hi,

I am very new to Dynamo and was trying to see which rooms contained a particular family type. I came across the “Family.InRoom” node but I can’t seem to get it to work, can you use it with the “family types” node and are there any other reason why this might not be working?

![dynamo](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/c/cd5d43df00938535155cec668d15f8f7bbad5107.jpg)

Thanks 🙂
