model = Sketchup.active_model
Sketchup.resize_viewport(model, 800, 800)
seems simple enough
cannot return TRUE no matter what numbers i put in there
when I try to export an images, I check box for use screen size, the numbers never match the viewport size that is set with resize viewport
I suspect that the return value really has no good meaning as currently implemented.
Also, the documentation is quite old and the arguments are actually logical pixels that are scaled according to the display scaling, which have issues (especially on Windows platform). Ie, the result on a scaled display are not actually the dimensions requested.
There is a current bug that some features are scaled by the scaling factor of the Main display, rather than the display that SketchUp is using.
Likewise, the returned values from View#vpwdith and View#vpheight do not return the actual physical pixels but the logical pixels.
SketchUp is currently undergoing a multiple release cycle migration from the old deprecated MFC framework to the cross-platform Qt framework for it’s GUI.
So, some API functionality has not yet caught up with the migration.