!!hot!! - Sketchup 2024
UI.messagebox('My feature is running!') # Your feature code here end end Replace my_feature_main.rb with a tool:
Sketchup.register_extension(extension, true) end # my_feature_main.rb require 'sketchup.rb' module MyFeature unless file_loaded?( FILE ) UI.menu('Plugins').add_item('Run My Feature') do self.run end file_loaded( FILE ) end sketchup 2024
def onLButtonDown(flags, x, y, view) UI.messagebox('You clicked!') end end view) UI.messagebox('You clicked!') end end