Export an Image from SketchUp with Ruby (Snippet)
The resulting image
The following is a handy little Ruby tool if you frequently need to export the current view as an image in SketchUp. It basically allows you to pre-set all of the export parameters (including an export location) and keeps all of those consistent. Of course, this is not too hard with SketchUp itself (because it remembers the last used location and image parameters), but this script allows you to keep those parameters consistent even if SketchUp "forgets" them occasionally (i.e. after you work with a file in a different location).
I use this script mainly when I need to create consistent images from many files, on which I work over an extended period of time. For that purpose, I have it set up as a menu item.
In the example below, the image is exported as a JPG (just change jpg to png if you prefer that file format) at a size of 3000 px (with a 16:9 aspect ratio)....