sketchucation logo sketchucation
    • Login
    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!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [Plugin] Make Tank 1.5 (beta)

    Scheduled Pinned Locked Moved Plugins
    18 Posts 8 Posters 19.3k 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
      dezmo
      last edited by dezmo

      Hi,
      This is my first post, but reading this site since years and registered since months…:-)
      However I’m absolutely not an expert of ruby, you will see in the code… 😉, but just I would like to give back something to this nice community. Hope somebody find this small tool useful.
      So I’ve just extended the ODM’s Cone tool (conetop1.rb) with my needs. Thanks a lot for this base.

      The script will draw simple tank body with legs as component.

      I know this is not perfect, but at least works. Maybe later on I’ll make it better….😄
      Just drop extracted maketankX.rb and maketank.png to \Tools or \Plugins folder of Google SketchUp X.
      There will be a new menu item “Make Tank 1.x” in “Draw” menu and new Toolbar button after restarting SketchUp.
      Tested with 6.4.265 Pro, and 8.0.15158 free.

      This is my first code WIP and LIP , so bee patient...
      (work in progress and learn in progress) 😒

      Usage: See picture!

      Have a fun!
      Regards, Dezmo

      Edit01: Changes: 1.0 >1.1 "Plays nice" (?)
      Edit02: Changes: 1.1 >1.2 Units depens on Sketchup active model unit options
      Edit03: Changes: 1.2 >1.3 Add cilindrical legs as many as you want inside touch to base circle
      Edit04: Changes: 1.3 >1.4 Add volume (bottom cone+cilinder) in liters and in cubic inches and put it as 3D text to top of the tank
      (note volume is "real cilindrical" volume of bottom cone+cilinder, not depenst on segments, so it is not accurate if tank is eg. 4 segment)
      Now the main Tank group is named and splitted to "pieces" of named groups
      The initial values of inputbox is "mm"... sorry
      Edit05: Post organized, old verions packed separately, just for reference.
      %(#0000BF)[Edit06: Changes: 1.4 >1.5 Place the tank(s) as componet wherever you want. Volume unit (for 3D text) can be selected from imputbox, and only one (or non) volume text displayed (liter, m3, inch3, gallon, gallon(uk) )
      Toolbar & button added]


      How to...


      Actual version:.


      Old versions, just for reference...

      Man can do everything. Only a matter of time and money.

      1 Reply Last reply
      Reply Quote 0
      • thomthomT
        thomthom
        last edited by

        Welcome! And thanks for sharing! 😄

        I recommend you read this article I wrote about SketchUp plugin developement: http://www.thomthom.net/thoughts/2012/01/golden-rules-of-sketchup-plugin-development/

        It described how you can build plugins to avoid potential clashes with other plugins. I saw the code and noticed you did not have your methods in a namespace module which might cause potential clashes.

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

        1 Reply Last reply
        Reply Quote 0
        • D
          dezmo
          last edited by

          Thanks for the link. I'll go to read and might change the code accordingly...😄

          Man can do everything. Only a matter of time and money.

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

            Dezmo,

            This plugin looks very useful. I hope you will find the time to develop it further. Can imperial units be used?

            Thanks,

            Paul

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

              Hi Dezmo,

              I see you keep editing your post (developing/reattaching the plugin?) which keeps it bumbed back to the moderation queue. 😄

              All right, next time it will appear instantly as I took you out of the "newly registered members" usergroup.

              Are you Hungarian, by the way (as you are in that usergroup, too)

              Gai...

              1 Reply Last reply
              Reply Quote 0
              • D
                dezmo
                last edited by

                Hi,
                I'm happy if you find it usefull. I did some changes for you, plase take a look!
                In next version, I hope, I can implement some legs.. 😒

                @raineysky said:

                Dezmo,

                This plugin looks very useful. I hope you will find the time to develop it further. Can imperial units be used?

                Thanks,

                Paul

                Man can do everything. Only a matter of time and money.

                1 Reply Last reply
                Reply Quote 0
                • K
                  kwistenbiebel
                  last edited by

                  who else was thinking battle tanks before accessing thread?

                  1 Reply Last reply
                  Reply Quote 0
                  • D
                    dezmo
                    last edited by

                    Hi Csaba,
                    I'm sorry about always changing my post, but somehow need to correct my mistakes... 😄
                    And yes, I'm Hungarian, currently working in Germany, without kowing german (and ruby) language. 😛 Both in progress...

                    @gaieus said:

                    Hi Dezmo,

                    I see you keep editing your post (developing/reattaching the plugin?) which keeps it bumbed back to the moderation queue. 😄

                    All right, next time it will appear instantly as I took you out of the "newly registered members" usergroup.

                    Are you Hungarian, by the way (as you are in that usergroup, too)

                    Man can do everything. Only a matter of time and money.

                    1 Reply Last reply
                    Reply Quote 0
                    • D
                      dezmo
                      last edited by

                      @kwistenbiebel said:

                      who else was thinking battle tanks before accessing thread?

                      😄 Looks like I've problem with my English as well...!? 😒

                      Man can do everything. Only a matter of time and money.

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

                        @dezmo said:

                        ...I'm sorry about always changing my post, but somehow need to correct my mistakes...

                        There's absolutely no problem with that - in fact, I am glad you "listen" to ThomThom as he knows what he is saying and does it helpfully.

                        It's just usually unusual for very new members to start with a plugin topic. Otherwise this is the "practice" here: plugin authors keep changing the very first post of the topic to keep the plugin up-to-date there.

                        So welcome! 😉

                        Gai...

                        1 Reply Last reply
                        Reply Quote 0
                        • KrisidiousK
                          Krisidious
                          last edited by

                          Pretty kool... I used to do tank inspection and this would have been awesome for it.

                          By: Kristoff Rand
                          Home DesignerUnique House Plans

                          1 Reply Last reply
                          Reply Quote 0
                          • D
                            dezmo
                            last edited by

                            New fuctions in first post.
                            Later I'm planning to revise/clear the code...(without scedule), any suggestions are welcome...
                            Happy sketching! 😄

                            Man can do everything. Only a matter of time and money.

                            1 Reply Last reply
                            Reply Quote 0
                            • thomthomT
                              thomthom
                              last edited by

                              Do you need to provide all the older versions? It's a bit confusing to what file is the latest.

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

                              1 Reply Last reply
                              Reply Quote 0
                              • D
                                dezmo
                                last edited by

                                @thomthom said:

                                Do you need to provide all the older versions? It's a bit confusing to what file is the latest.

                                Ok. Clarified... 😒

                                Man can do everything. Only a matter of time and money.

                                1 Reply Last reply
                                Reply Quote 0
                                • KrisidiousK
                                  Krisidious
                                  last edited by

                                  @unknownuser said:

                                  who else was thinking battle tanks before accessing thread?

                                  <<<<< This guy was.

                                  By: Kristoff Rand
                                  Home DesignerUnique House Plans

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • mitcorbM
                                    mitcorb
                                    last edited by

                                    Me, too. I guess because of those examples we have seen from time to time.

                                    I take the slow, deliberate approach in my aimless wandering.

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • pbacotP
                                      pbacot
                                      last edited by

                                      I actually just made some tanks, something it never occured to me I'd need to model (there are some in the warehouse but didn't look like the ones I needed). But this plugin came a day or so late 😆 . Might have helped with the basic shapes, but what I ended up doing is scaling and re-using the main components as much as possible to save bytes.


                                      some tanks.png

                                      MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • D
                                        dezmo
                                        last edited by

                                        Update in first post...

                                        Man can do everything. Only a matter of time and money.

                                        1 Reply Last reply
                                        Reply Quote 0

                                        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 Login
                                        • 1 / 1
                                        • First post
                                          Last post
                                        Buy SketchPlus
                                        Buy SUbD
                                        Buy WrapR
                                        Buy eBook
                                        Buy Modelur
                                        Buy Vertex Tools
                                        Buy SketchCuisine
                                        Buy FormFonts

                                        Advertisement