Open Matherone opened 1 year ago
Probably related to the Qt updates.
I'm afraid I simply don't have the capacity to look at this now.
Would it be possible to address this bug, making Viewport Resizer 2 compatible with current versions of Sketchup?
Until this extension is fixed, here's a quick-and-dirty solution for users who wish to resize Sketchup's viewport to specific pixel dimensions.
1) In Sketchup 2023 or newer, open the Ruby Console, via menu post: Extensions -> Developer -> Ruby Console
2) In the Ruby Console input field, enter:
model = Sketchup.active_model
Sketchup.resize_viewport(model, 1024, 1024)
...replacing 1024 for desired viewport width and height, in pixels.
3) Click Enter to run the code.
In case you need to know the current viewport height, instead enter:
Sketchup.active_model.active_view.vpheight
This will return the current viewport height in pixels. You may then use this height value as input, in order to resize viewport width only.
Eneroth Viewport Resizer 2 version 1.0.4 does not work with Sketchup 2023.
At entering pixel dimensions into the dialog, the Sketchup viewport resizes but not at all as expected, and the console throws errors stemming from e.g.: ene_viewport_resizer2/dialog.rb ene_viewport_resizer2/view_notifier.rb
The extension seems to work just fine with other recent versions of Sketchup, including Sketchup 2022.
• Would you please fix this error, and make Viewport Resizer 2 compatible with Sketchup 2023?