Elements contained inside rooms

Hi, I was wondering if there is a way to get all the Revit elements that are within a room. (sinks, furniture, windows etc.) and filter the by category and such? I’m creating some pretty long workarounds but assuming there must already be a given solution.
Thanks!

Here is one way…

Thanks Japhy. I had this approach but trying to get it the other way around… since I’m not sure what is contained within a room, I can’t predefine it. I would like to ask the question: for a given room, which elements does it contain, and then filter it from there.
Thnaks!

So you want to search the entire project on each room? That will be slow.

Geometry based solutions are also possible…

Hi @talfrd,

Does this cluster work for you?

RiR-QueryRoomElements.gh (27.7 KB)

Thanks Kike! will check it out and let you know!

It works good! However, imagine the door is open inside the room (what we see in 2D door graphics with an arc in a plan). Is it possible to find that door arc geometry inside the room like other fixtures through the Bounding Box or any other way? I really appreciate your help!

Hi Obidul,

That geometry is available via the Element View Geometry component.

Is it possible to make it closed? I mean solid door-shaped geometry like a brep? Thank you!

Depending on your particular needs something along these lines should suffice.

This is close. what I mean is just a door shape. Not square box shape. That means one corner should have that arc! so that I find a door-shaped solid geometry. Sorry for asking a lot!

I’m not quite following. Does turning on the Calculation Point provide the data you are looking for?

image
With your script, I found the door as the green outline (one end is open). I want it to be closed, as I have drawn with a red line.

Can you provide more detail of the workflow you are trying to accomplish? Thanks