Getting rooms from scope boxes

I have tried transforming the scope box into a bounding box and using a python script in hopes of getting an output of all elements categorized by scope boxes. However, this doesn’t seem to work for rooms in particular