sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Is there a toolbar button for weld?

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    12 Posts 8 Posters 1.9k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dylan
      last edited by

      I use this a lot myself, probably my 2nd most used ruby.
      Mirror is by far the one I use most.

      I would use the button.

      http://dmdarchitecture.co.uk/

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        If you have weld.rb installed, this will make a toolbar. You'll need icons also - one 24x24px, the other 16x16px. See the code for the names of the image files.

        
        # weld_tool_button.rb
        pf = Sketchup.find_support_file("Plugins")
        if File.exists?(File.join(pf, "weld.rb"))
          cmd = UI;;Command.new("Weld") { join_edges }
          cmd.tooltip = "Weld"
          cmd.status_bar_text = "Weld"
          cmd.large_icon = File.join(pf, "weld_lg.png")
          cmd.small_icon = File.join(pf, "weld_sm.png")
          tb = UI;;Toolbar.new("Weld")
          tb.add_item(cmd)
          cmd = tb = pf = nil
        end
        
        

        Hi

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          you can also make a shortcut ๐Ÿ˜‰
          It will be more speedy in use than a tool bar ๐Ÿ˜‰

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • kenK Offline
            ken
            last edited by

            The following toolbar has a weld icon

            Ken


            Weld.jpg

            Fight like your the third monkey on Noah's Ark gangway.

            1 Reply Last reply Reply Quote 0
            • W Offline
              watkins
              last edited by

              Dear Jim,

              Thank you for replying so quickly. Do I insert the program snippet into the text file for weld.rb, and if so, at what point should it be inserted? At the end?

              Presumably, the image files weld_lg.png and weld_sm.png would go in the plugin folder. Ideally, the images would go in to a separate folder called Weld, keeping everything together and well annotated. How could that be done?

              Thanks Ken! I know of the SCF Powerbar, but I would like just the one button.

              Pilou, yes you are right! A short cut would be quicker, but I rather like the idea of a button.

              Kind regards,
              Bob

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                Probably the path would be something like

                "Weld/weld_lg.png"
                "Weld/weld_sm.png"
                

                I hope SM is not for sado-mazo ๐Ÿ˜ฎ

                Gai...

                1 Reply Last reply Reply Quote 0
                • J Offline
                  Jim
                  last edited by

                  No, that s a stand-alone script. create a file named weld_toolbar.rb and paste the code in.

                  The toolbar will work without the images, but the buttons will be blank.

                  Gaieus is correct, if you want the images in a folder named weld, change these lines:

                  cmd.large_icon = File.join(pf, "weld", "weld_lg.png")
                    cmd.small_icon = File.join(pf, "weld", "weld_sm.png")
                  

                  Hi

                  1 Reply Last reply Reply Quote 0
                  • GaieusG Offline
                    Gaieus
                    last edited by

                    Hear, hear? I am correct!
                    ๐Ÿ˜
                    So Jim, what should my first plugin be? ๐ŸŽ‰

                    Gai...

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      @unknownuser said:

                      you can also make a shortcut ๐Ÿ˜‰
                      It will be more speedy in use than a tool bar ๐Ÿ˜‰

                      I use the shortcut J[oin] as it's the same in CAD... AND very quick - the N[o] key is just below it to cancel the dialogs too...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        watkins
                        last edited by

                        Thanks to all!

                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          sergey2402
                          last edited by

                          There is a toolbar button for weld
                          Jim, Gaieus - thanks!


                          Weld_button.rar

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement