Creating Axonometric Views for each room

Hey there, I am currently working on a script that creates a 3D View for each room provided. I am struggling to align the crop box over the room. The crop box im playing is the correct size if i manually move it but the hope is to do it via the script automatically.

The entire model:


Example 1

Example 2

Here is the script, any ideas or thoughts with how to do this?
3DRoomCreator.dyn (69.4 KB)

Cheers