Sketchup 2024 [new] -

class MyTool def activate puts 'Tool activated' end def onMouseMove(flags, x, y, view) # Update preview end

def onLButtonDown(flags, x, y, view) UI.messagebox('You clicked!') end end

def self.run model = Sketchup.active_model return UI.messagebox('Open a model first.') unless model

UI.messagebox('My feature is running!') # Your feature code here end end Replace my_feature_main.rb with a tool:

Please wait while your video is being uploaded...

Don't close this window!

Subscribe to the newsletter

sketchup 2024

I have read and understood the terms of the privacy statement.