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

    Tubealongpath.rb

    Scheduled Pinned Locked Moved Plugins
    28 Posts 12 Posters 5.3k Views 12 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.
    • N Offline
      not registered yet
      last edited by

      Does it look similar to chamferalongpath.rb?

      [Invader ZIM]

      1 Reply Last reply Reply Quote 0
      • boofredlayB Offline
        boofredlay
        last edited by

        @unknownuser said:

        That is also one of my favorite scripts, but I simply added a shortcut key for it.

        --Lewis

        You replied about the tubealongpath.rb

        What does this ruby do that follow me does not? I did not want to divert the topic.
        Thanks.

        http://www.coroflot.com/boofredlay

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

          Eric, it mostly does the same it is just a faster and easier way of it (though obviously with limited possibilities regarding the faces to be extruded). But when I need to extrude a lot of faces all along a Gothic window tracery for instance, it is very handy because I dont need to precisely place the faces to be extruded just hit the script and it does the job.
          Obviously I don't always use it when making extrusions.

          Gai...

          1 Reply Last reply Reply Quote 0
          • L Offline
            lewiswadsworth
            last edited by

            Eric,

            I end up modeling a great many tubular railings along stairs and balconies, and this is something of a life saver...I don't have to orient a face perpendicular to the edge that describes the rail, I just select the rail, hit the hotkey for the plugin, specify my diameter, and go. It has also proved useful in creating steel trusses and open-web joists where the chords are round in cross section.

            However, the variant pipe-along-path ruby is even more useful much of the time, because I can specify the number of edges in the circle sweeping the edge. Usually I don't need more than 8 if the tube/pipe is small diameter. I just have to remember to set the inner diameter to 0 when I don't want a real pipe.

            404 Not Found

            favicon

            (www.crai.archi.fr)

            --Lewis

            [Lewis Wadsworth]

            col sporcar si trova

            1 Reply Last reply Reply Quote 0
            • N Offline
              not registered yet
              last edited by

              Azuby,

              Thanks much! That worked like a charm.

              Eric,

              I am making a model of our plant and all of its plumbing and wiring. This works well for tubing along odd angles because I don't have to set a face for follow me to use.

              Thanks all,

              Mike W.

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

                Glad my script is useful...

                TIG

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

                  We all are, TIG, thanks...
                  ๐Ÿ˜„

                  Gai...

                  1 Reply Last reply Reply Quote 0
                  • boofredlayB Offline
                    boofredlay
                    last edited by

                    Thanks for the Script TIG, and thanks for the information Gaieus and Lewis. I will go get me one.

                    http://www.coroflot.com/boofredlay

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

                      Typically at the end of an interactive script there's a menu section, something like:

                      if( not file_loaded?("............."))

                      XXXXXXXXXXXXXXXXX

                      file_loaded="..........."

                      The "............." is the script's name and the XXXXXXXXXXXXXXXX part is the menu definition - this is so it only loads once if for some reason you manually load the script etc you'll only get one menu item.

                      To add a right-click context-menu you need to add some code - like azuby's or similar forms. You replace the title and 'action' to suit... so in "Mirror.rb" it's:
                      ...
                      UI.add_context_menu_handler do |menu|
                      if Sketchup.active_model.selection
                      menu.add_separator
                      menu.add_item("Mirror Selection") { Sketchup.active_model.select_tool MirrorTool.new}
                      end#if
                      end#do menu
                      ...
                      inside the if loop at the end as well as the normal Plugins Menu instructions...

                      Azuby's equivalent way would be:
                      ...
                      UI.add_context_menu_handler{|menu|menu.add_separator;menu.add_item("Mirror Selection"){Sketchup.active_model.select_tool MirrorTool.new}}
                      ...

                      TIG

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

                        Feel free... it's the only way we learn...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          kdjanz
                          last edited by

                          Just to update TIG's reply, here is the code to cut and paste that worked for me FOR THE PIPE_ALONG_PATH ruby:

                               ###$submenu2.add_item("Pipe Along Path") { pipe_along_path }### 
                             UI.add_context_menu_handler{|menu|menu.add_separator;menu.add_item("Pipe Along Path"){Sketchup.active_model.select_tool pipe_along_path.new}}
                          

                          Hope this helps everyone enjoy this excellent piece of code.

                          Thanks again TIG

                          Kelly

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

                            Sorry guys....
                            I'm a little bit new with sketchup plugin and ruby script....
                            so...
                            I can't understand how I can install this tool..
                            Could someone help me?

                            many thanks,
                            Stef.

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              remus
                              last edited by

                              You need to download the file form the link in the OP. Once youve done that you need to move it to the plugins folder in the SU system file -> \google\google sketchup 6\plugins

                              Once youve done that the plugin should be in the 'plugins' menu next time you start SU up.

                              http://remusrendering.wordpress.com/

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

                                Hi Remus!
                                Thank you for your answer.....
                                but...
                                usually I download a file (with .rb file) and I put in plugin folder....(as you told me!)
                                I don't understand when you say "You need to download the file form the link in the OP"

                                Is there a link where I can download the file?
                                (I can find just the script text and I'm not able to use it)

                                Probably it is a silly request...I know, I'm very new of sketcup's plugins!...sorry!
                                Could someone help me?...Thanks!

                                Stef.

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

                                  Hi Stef,

                                  Yes, that is the script itself actually.
                                  Select all the text and copy/paste it into a plain text editor (such as Notepad or something - no MS Word or anything like that!) then save the text file as TubeAlongPath.rb into the Plugins folder.

                                  Gai...

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    rv1974
                                    last edited by

                                    Hi TIG!
                                    Is it possible to extend the existing .rb by adding 3d\cross etc. line conjunctions handling?
                                    It'd be a real killer!

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

                                      Hi Gaieus,
                                      Thnak you very much for your answer.

                                      I got a problem.
                                      I get copy and paste in a notepad and then save it with the name "tubealongpath.rb" in the plugin folder (so i can see a txt file with that name) but also after a restart I cannot see anything in the plugin menu...
                                      have you got any idea about the mistake?
                                      ๐Ÿ˜ข ๐Ÿ˜ข ๐Ÿ˜ข

                                      Thanks.
                                      Stef.

                                      1 Reply Last reply Reply Quote 0
                                      • jujuJ Offline
                                        juju
                                        last edited by

                                        What OS are you using and do you have administrative privileges using the logon you're using when you do the changes?

                                        Save the Earth, it's the only planet with chocolate.

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

                                          I think ruby scripts are csae sensitive. Save with the exact name I posted.

                                          Gai...

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

                                            Hi Juju,
                                            I'm using Windows Xp.
                                            I didn't get any problems with plugins and .rb files before.
                                            I think it is really weird.

                                            There are not many things to try......so....

                                            if someone find out something let me know!
                                            thanks.

                                            stef.

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

                                            Advertisement