Select All In Room

Select All In Room

CodydNYY24
Explorer Explorer
545 Views
2 Replies
Message 1 of 3

Select All In Room

CodydNYY24
Explorer
Explorer

Often times I have to select a large amount of items in a room. I would love to be able to select all in room as apposed to windowing over the room and then filtering out what I don't need. 

0 Likes
546 Views
2 Replies
Replies (2)
Message 2 of 3

Yien_Chao
Advisor
Advisor

hello

 

there is a workaround : since each item is a geometry, get the center point of each element. then pass the method ispointinroom().

 

https://www.revitapidocs.com/2022/96e29ddf-d6dc-0c40-b036-035c5001b996.htm

 

 

hope it help

0 Likes
Message 3 of 3

TripleM-Dev.net
Advisor
Advisor

If you're going the API way, create a solid from the Room Mass and use ElementIntersectsSolidFilter to select all elements selectable in the room.

 

Would need further inspection if only elements completely inside the room are needed.

 

Maybe something for the API forum.