This would be a different path on Mac platform. #=> C:/Program Files/SketchUp/SketchUp 2020/Images On Windows … Sketchup.find_support_file("Images") ![]() You could iterate the ObjectSpace and get a listing for all Proc objects defined, but it is very difficult to pair up the procs knowing only the source file and line number with the UI::Command objects that “own” them.įor the native commands, you’d have to create the UI::Command objects (or simply methods that duplicate the native commands functionality.) The images (SVG for Windows and PDF for Mac) are in the SketchUp application’s “Images” subfolder. This means you would have to do a “no no” which is to “tap” into (and modify) the UI::Command class’ methods to “grab” references to the Proc objects as they are passed into the methods. The API does not expose an ID getter, nor getters for the command proc, or validation proc. nd_action can take these ID integers, but only on the MS Windows platform. When menu items or UI::Command objects are created they get assigned an integer ID number. So it should look exactly like the user clicked the original command in the toolbar. When the user clicks on a command in my plugin’s own window, call that command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |