Is there a way to get which room an Element is located?

I recently found I can add a room parameter, like room number, in a Revit schedule (Special Equipment schedule), then it generates the result of which room this element is located really fast. Is there a way to achieve it with Rhino.Inside?

Certainly. You will need to use the Analyze Instance Space component (not the easiest to find, perhaps this should be Analyze Element Space and be in the Element dropdown)

fyi, a user needs to have this option checked in the Family for this to work.

1 Like

Long time no see Japhy! Good to know this method! But the object I mentioned is in “Special Equipment” category and doesn’t have that Parameter. It still returns a room parameter value in the schedule I set.

I am curious about the logic/algorithm behind this.


I would need more information, where does the shared parameter definition come from? Can you post a small sample?

Sure, will create a small sample file tomorrow probably. Need to finish what I am doing at hand then get back to this. Thank you Japhy.

It looks like you can just add the Room info to the schedule like this…

Yes, that is what I did. It doesn’t really require the Room Calculation Point or I don’t know if “Special Equipment” Category has hidden Room Calculation Point. What I’m trying to achieve is to do this in Rhino.Inside, instead of in a Schedule, cause I can treat/distribute the data better with Rhino.Inside

Specialty equipment does have a Room Calculation Point and access to Room/Space/Project info in the schedule as well. I’ll look into the schedulable field availability via the api (without creating a schedule)

Hi @hali,

Does this work on your case?

This approach should work with any Element you can extract a point from.

If you need this per Phase something like this should do it.

RiR-ElementRoomPerPhase.gh (17.4 KB)

2 Likes

Thank you both! Kike, the “Query Rooms” works. However, it takes about 250ms to process one element and I have 6000 elements. In Revit, if Furniture and room is in the same model, it becomes super fast to identify Room Info for Furniture. Is it because, Revit will just write the info in when a furniture is placed? Basically when creating a furniture schedule with Room Info, it is fast because it reads the existing data.

Hali, Here’s is more detailed information on what goes on behind the scenes when accessing or gathering Revit data and post-processing.

1 Like