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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement