Returning other than boolean by send_action()
-
Does Sketchup.send_action always return a boolean value. or can it also return any other UI.messagebox object to automate the response to the window generated by the send_action() method. like Sketchup.send_action(21237) opens a dialog box to export the file to 2D graphic of the file menu options ?
hoping to get a reply like earlier. -
No - it's not meant for such purpose. But if you want to use a file dialog you use
UI.savepanel
http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/ui.html#savepanel -
I want to export the skp model to a 2D Image as the thumbnail generated by the save_thumbnail method is very small. Using the UI.savepanel is not saving the file as expected.
-
The
UI.savepanel
only let the user spesify where to save the file. You also have to implement the save procedure yourself afterwards.
View.write_image
http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/view.html#write_image -
Have you tried SceneExporter, either to do what you want, or as an example of how it could be done? The Pro version will hopefully have the Save dialog working soon.
Advertisement