How can i get thumbnail image like component option?


“I’ve created my own Sketchup plugin and I want a thumbnail image to display, similar to the Component Options (dialog). I want it so that when I click on a model, it displays that model’s thumbnail image, just like Component Options does. Is there a method or a Sketchup API that allows me to get and display the image like this?”

If the component definition is loaded into the model’s DefinitionList then you can use ComponentDefinition#save_thumbnail()to save out a thumbnail file.

If your component definition is a skp file on disk, you can use Sketchup::save_thumbnail() module method.


It is rather easy to search the API for method names. At the top left click Methods to switch to the Method List, then type a substring into the search box.