There must be some dumb thing I don’t understand about defining a tool.
Here’s the simplest tool I can imagine but it doesn’t work:
All I try to do it make VCB available to enter text. then puts text to ruby console.
I have a puts in each def to see what is triggered.
When I execute, I’m not able to enter into VCB.
All that appears in console is these 4 lines:
Here is the code:
module Testtool class PutTool def initialize puts "initialize" Sketchup.vcb_label = "enter text" end def enableVCB? return true puts "enable VCB" end def activate puts "activate" end def deactivate(view) puts "deactivate" end def onUserText(text, view) puts "onusertext = " + text end end # class puttool = PutTool.new Sketchup.active_model.select_tool(puttool) end # module