Existing Toolbar Buttons on a New Toolbar
-
Hi. Long time lurker here.
I'm trying to create a sketchup toolbar that has a couple of new functions on buttons, but I would also like to include some of the buttons from existing toolbars (Primarily Move and Rotate). I'm aware how to create new toolbars and create and link buttons in ruby, but are the functions I'm looking for accessible through the code in any way at all that doesn't require rewriting the main sketchup program? Pre-emptive thanks for any replies, answers or guesses.
-
Yes. Search on send_action, or just go here: http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Sketchup.html#send_action
Todd
-
Oh Todd! I finally new an answer!, but you beat me to it. But since I looked it up, I'll still put it out there.
this line:
Sketchup.send_action("selectMoveTool;")
is all it takes to activate the move tool for example. So make your icon run that code and it will do what you want. Todd already posted the link to all the possibilites.
Chris
-
Ah yes, that's perfect, thank you ever so much.
Advertisement