Enable SketchUp tools
-
Hello everyone.
Which code can be used to activate the SketchUp selection tool?
Is there a list that gives all the codes to activate any tools in SketchUp?
Thank you
David
-
http://ruby.sketchup.com/Sketchup.html#send_action-class_method
Sketchup.send_action("selectSelectionTool:")
-
model = Sketchup.active_model tool = model.select_tool(nil)
https://ruby.sketchup.com/Sketchup/Model.html#select_tool-instance_method
@unknownuser said:
The select tool is activated if you pass
nil
to theselect_tool
method.
See this thread as well:
https://sketchucation.com/forums/viewtopic.php?t=34840
For SketchUp versions 2016+ they added new methods for window selection that can be used when writing your own Ruby tools:
https://ruby.sketchup.com/Sketchup/PickHelper.html#window_pick-instance_method
-
@TIG The url feature is seriously scrwed!
-
I have also just noticed this.
If you edit a post with a url it becomes messed up.
I fixed your post's.
But if you were to edit again it'll break them.
I'll get Gábor on to it... -
Thank you for these solutions.
Advertisement