I’m modeling pretty simple … models. Each time i have to make a Layout presentation from the model. It’s with a template containing multiple pages and views of the model.
Because the models are of different size (and shape), we always had some work in layout to set the different viewports correct. It’s mostly a bit of zooming.
To reduce that work i made a script that:
- asks the user to set the viewport to a certain ratio width to height (with a bit of margin) → if it’s too wide, it asks the user to set it smaller and stops the script. After resizing the user can start the script again.
- all my scenes are ‘zoom extended’
- save the model and sent it to Layout
After that, the Layout-presentation is in 95% of the cases immediately OK.
I found out that it is important that the ratio of width/height in Sketchup viewing is circa the same as the width/height ratio in the Layout viewports.
The only thing is, asking the user to set the ratio within a certain margin is a bit a ‘pain in the you know’.
So i have the question if there is a better solution for this?
view = model.active_view ratio = view.vpwidth / view.vpheight if ratio > x UI.messabox('Set your screen smaller') return elsif ratio < y ... end