sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Pipe Tool (UPDATE 3/19/2011)

    Scheduled Pinned Locked Moved Plugins
    46 Posts 22 Posters 51.7k Views 22 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.
    • thomthomT Offline
      thomthom
      last edited by

      @unknownuser said:

      I would suggest to title this [Plugin]Pipe Tool as it's possibly infringing on it's bigger brother's territory.

      Ditto.

      A couple of notes about the distribution:
      Could you make sure that the icons are in a sub-folder - so you only have the .rb file in the root. That way it's easier to manage the plugins folder.
      (It's the common practice of distrobuting plugins: one .rb file in the plugins folder, and the remaining files in a sub-folder.

      Is the "previous versions" folder needed?

      I looked at your code - saw you added a method under class Geom::PolygonMesh

      <span class="syntaxdefault">def&nbsp;add_lathe</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">pts</span><span class="syntaxkeyword">,&nbsp;</span><span class="syntaxdefault">center</span><span class="syntaxkeyword">,&nbsp;</span><span class="syntaxdefault">dir</span><span class="syntaxkeyword">,&nbsp;</span><span class="syntaxdefault">angle</span><span class="syntaxkeyword">,&nbsp;</span><span class="syntaxdefault">numsegments</span><span class="syntaxkeyword">)&nbsp;</span><span class="syntaxcomment">#&nbsp;Copyright&nbsp;2004-2005,&nbsp;@Last&nbsp;Software,&nbsp;Inc.&nbsp;(I&nbsp;changed&nbsp;it&nbsp;a&nbsp;little)&nbsp;</span><span class="syntaxdefault"></span>
      

      This might cause problems since you changed the code. If some other plugin relies on the original Geom::PolygonMesh.add_lathe then your plugin will overwrite this.
      Avoid such conflicts by not using the same method name as the one you modify. Personally I prefer to never extend the base classes just in case someone else should be thinking of adding a method of the same name. We've already had and still have issues where plugins conflict over methods extended in the base classes.
      This add_lathe would be very easy to port into a method under the PipeTool class you use in the rest of the plugin.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • EdsonE Offline
        Edson
        last edited by

        it would help if you could make a short video demonstrating what the plugin does.

        edson mahfuz, architect| porto alegre • brasil
        http://www.mahfuz.arq.br

        1 Reply Last reply Reply Quote 0
        • B Offline
          Builder Boy
          last edited by

          @edson said:

          it would help if you could make a short video demonstrating what the plugin does.

          How? I don't have any software. I don't even have a microphone.

          @thomthom said:

          Is the "previous versions" folder needed?

          No

          All my plugins

          1 Reply Last reply Reply Quote 0
          • B Offline
            Builder Boy
            last edited by

            Look at this.

            All my plugins

            1 Reply Last reply Reply Quote 0
            • B Offline
              Ben Ritter
              last edited by

              Thank you for sharing.

              1 Reply Last reply Reply Quote 0
              • D Offline
                d12dozr
                last edited by

                @builder boy said:

                How? I don't have any software. I don't even have a microphone.

                Cam Studio is one free screen capture program...maybe you can just make a video of you making that futuristic motorcycle and other examples, and upload it to YouTube. Voiceover isn't even necessary, but then you could make some explaining text to supplement the video.

                Thanks for your efforts!

                3D Printing with SketchUp Book
                http://goo.gl/f7ooYh

                1 Reply Last reply Reply Quote 0
                • B Offline
                  Builder Boy
                  last edited by

                  @unknownuser said:

                  What has this got to do with your 'plugin'?

                  I built it out of the pipes I made with my plugin. The wheel is 4 curved pipes that I combined. The handle is made out of a few pipes. The only things I didn't use my plugin for is the headlight and the red light on the back and the room I rendered it in and, a little hand modeling. (erasing unnecessary geometry, adding color Etc...)


                  Motorcycle.skp

                  All my plugins

                  1 Reply Last reply Reply Quote 0
                  • U Offline
                    unclex
                    last edited by

                    Anybody can use this plugins?

                    Upzip it to the Plugins Cata
                    But Nothing Happening........

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      Builder Boy
                      last edited by

                      @unclex said:

                      Anybody can use this plugins?

                      Upzip it to the Plugins Cata
                      But Nothing Happening........

                      I don't understand what you're problem is. Can you explain it better?

                      All my plugins

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        perryman
                        last edited by

                        @unknownuser said:

                        Anybody can use this plugins?

                        Upzip it to the Plugins Cata
                        But Nothing Happening........

                        You need to put the file "Pipe Tool v4.0.rb" along with the .png files in the ..\plugins folder. You cannot put the folder in the ..\plugins directory.

                        I also want to thank you, Builder Boy, for a very nice plugin, great work!!

                        A few pointers that may be possible to implement:

                        • T-junction button?
                        • Flange button?
                        • is it possible to have metric, milimeter units, as standard?
                        • is it possible to make the pipe and parts hollow, with a thickness parameter?

                        Overall a very nice plugin. I would like to contribute but I'm sorry to say I don't have the knowledge to write or program a plugin, hmm...

                        1 Reply Last reply Reply Quote 0
                        • tridemT Offline
                          tridem
                          last edited by

                          @perryman said:

                          • T-junction button?
                          • Flange button?

                          👍 +1

                          except the pipe room, I see that overriding the values without " it uses metric units

                          1 Reply Last reply Reply Quote 0
                          • U Offline
                            unclex
                            last edited by

                            @builder boy said:

                            @unclex said:

                            Anybody can use this plugins?

                            Upzip it to the Plugins Cata
                            But Nothing Happening........

                            I don't understand what you're problem is. Can you explain it better?

                            if i don't change anything, it works

                            but i want change the PNG catalog,or change the PNG name(ofcouse i changed the file‘s name,too), change ‘ " to mm,it cannot work……

                            For example

                            @srad = '6"' change → @srad = '300.mm'

                            piperoom.small_icon="Pipe Room.png" → piperoom.small_icon="PipeRoom.png"

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

                              I haven't even looked at the code... but if @srad is being set as a string '1"' and then .to_l is used on it to return a 'length' then you can change it to another default unit e.g. '25mm' [no '.']. If it's a length already @srad = 1.0 [in inches if NO units] or =1.inch then you do use a '.' as in @srad = 25.mm to make it in 'mm'...

                              The problem in using a string is you are forced to use a units suffix.
                              If it were a length to start with then it's always a length and in 'current' units, so if you have 'mm' set in Model Info even it it were set to be 1 ["] it'd show as 25.4 [mm]...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                Nick2010
                                last edited by

                                Thank you Builder Boy! 👍

                                1 Reply Last reply Reply Quote 0
                                • P Offline
                                  powersketch
                                  last edited by

                                  Thanks for making the plugin! Where can I find the png button icons? From reading the thread it sound like a previous version was distributed as a zip file with the .rb and some .png files.

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    Builder Boy
                                    last edited by

                                    @gaieus said:

                                    Michael,

                                    Don't get me wrong here for this question; you "made a free version of it"? (Meaning you used that code and such)

                                    OR you made a tool yourself that has similar features as 3SKENG?

                                    Maybe it's just your wording. But you know, we take piracy and such very seriously here.

                                    I made a tool myself that has similar features as 3SKENG.

                                    All my plugins

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

                                      Thank You Builder Boy. Great plugin!!!

                                      1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        betod
                                        last edited by

                                        it looks grate but where do i dropp al the files in my sketchup file??? thanks

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

                                          Have a look at this tutorial: http://sketchucation.com/resources/tutorials/37-beginner/108-installing-sketchup-plugins

                                          Gai...

                                          1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            Markis100
                                            last edited by

                                            Does this plugin work on mac oS? I dropped the files into plugin directory. Nothing is working. Am I doing something wrong?

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

                                            Advertisement