Using Dynamo to retrieve parameters for rooms and boundary (surrounding) elements

For objects in room or partially within boundary maybe this other post might help:

Some of these workflows might be able to be adapted to your request.