Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π« Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Example Ruby
-
would any kind master give me a script code example of something basic like the pushpull or move tool?
i would like to create a custom toolbar with my favourites - Thanks.
-
Hi cadFather !
Native Su tools are NOT basic! It's hard to create completely re-create them in Ruby..However, you can start them via a send_action function !
Like this :
Sketchup.send_action "selectPushPullTool;"This is the code you will put in your icon code...
cmd = UI;;Command.new("Push pull") { Sketchup.send_action "selectPushPullTool;" } cmd.small_icon = 'nameOfYourIcon' cmd.large_icon = 'nameOfYourIcon' cmd.tooltip = cmd.status_bar_text = "Push-Pull" tb.add_item(cmd) -
Thanks Matt, will put your help to good use with a basic toolbar - if i can!

-
Yes you can ! And we're here to help you !

Advertisement