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!
    πŸ”Œ Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] Draw Boundingbox

    Scheduled Pinned Locked Moved Plugins
    43 Posts 20 Posters 32.6k Views 20 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.
    • GaieusG Offline
      Gaieus
      last edited by

      OK, I'll stop nagging you now...
      πŸ˜‰

      Gai...

      1 Reply Last reply Reply Quote 0
      • cmeedC Offline
        cmeed
        last edited by

        I just downloaded this plugin and its a very useful addition, I'm using it, thanks to 'dedmin's recommendation for use with Layout. Its difficult sometimes to use the dimensioning tool in LO on rounded or odd shaped geometry. this tool certainly helps! Thank you

        grouping the resulting boundary box would make a great simple plugin more streamlined. if at all possible.... please ... maybe

        1 Reply Last reply Reply Quote 0
        • A Offline
          agamemnus
          last edited by

          I noticed that if I rotate some objects and use this plugin, the bounding box will use the rotated boxes of these other objects... any way to perhaps get the real limits of the object set instead of using their (inaccurate) bounding box without having to explode everything?


          ahh3.png

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

            There probably is, but I'm not sure how. This plugin is very simple designed specifically to use the boundingbox.

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

            1 Reply Last reply Reply Quote 0
            • EarthMoverE Offline
              EarthMover
              last edited by

              I missed this useful plugin the first time around. Thanks to Rich for pointing me here and of course thanks to ThomThom for another brilliant tool! πŸ‘

              3D Artist at Clearstory 3D Imaging
              Guide Tool at Winning With Sketchup
              Content Creator at Skapeup

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

                Thanks for this great little plugin Thomthom, it's allowed me to reset the axis on an irregular component that inherited from someone else's model.

                I'm not sure how often I'll use it, but it's great to know about all of your cookie ware plugins, thanks ... πŸ‘

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AISmebel
                  last edited by

                  Hello dear thomthom. Can I ask you to make a small edit to your plugin for me so that it puts construction points not only at the outer corners, but also in the center of the construction lines. For your understanding, I will attach a picture. (Additional points I built using AAV) Additional points help to move or position rounded objects. Thank you.


                  1.jpg

                  1 Reply Last reply Reply Quote 0
                  • Didier BurD Offline
                    Didier Bur
                    last edited by

                    Hi AISMebel,

                    Below is what you can do:
                    Browse your disk to your Plugins folder to find a sub-folder named 'tt_draw_bb'

                    • open the file 'core.rb' in that folder (using a'pure' text editor)
                    • find line #118
                    • add the following line:
                    ents.add_cpoint( Geom;;Point3d.linear_combination(0.5, face[0], 0.5, face[1]))
                    
                    • save the core.rb file and restart SketchUp.

                    line_to_add.jpg
                    click to see if it works ;-)

                    DB

                    F A 2 Replies Last reply Reply Quote 0
                    • Dave RD Offline
                      Dave R
                      last edited by

                      @didier bur said:

                      Below is what you can do

                      What a nice addition to Thom Thom's valuable plugin. I didn't know I needed that until now. Thanks. And I hope TT doesn't mind.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        FlorinAp @Didier Bur
                        last edited by

                        @Didier-Bur Your text code is wrong (different than the one from your picture) - the one from your picture is correct.!
                        Thank you anyway - it worked, after an error from SU 2024, I figured it out.!

                        1 Reply Last reply Reply Quote 1
                        • A Offline
                          AISmebel @Didier Bur
                          last edited by AISmebel

                          @Didier-Bur Hi. Thanks a lot, everything worked out. I was a little late thanking you, I completely forgot that I asked for help))
                          I also added the option to move the "Bounding Box" to a separate layer, which proved to be very useful.

                          F 1 Reply Last reply Reply Quote 1
                          • F Offline
                            FlorinAp @AISmebel
                            last edited by FlorinAp

                            @AISmebel Will you please tell me how you add the option to move the "Bounding box" to a separate layer.!!
                            Anchor Points extension does that, but this one is more useful, and all the time i was thinking that it would be better if this one could move the bounding box to a separate layer (and maybe also group the Bounding Box, so you can easily separate later and delete it, or - like Anchor Points - at least put it inside the group/components so you can easily delete it later...).

                            Thank you.!

                            panixiaP 1 Reply Last reply Reply Quote 0
                            • panixiaP Online
                              panixia @FlorinAp
                              last edited by panixia

                              @FlorinAp
                              You can probably modify that using Claude.ai which is pretty capable of editing ruby scripts for Sketchup, as long as you are accurate enough in the description of the changes that you need in the code.
                              That said, I recommend to be really careful when you mess with plugin logic.

                              Looking at the example in the image above, the shape clearly looks created using SubD.

                              • If you create the construction geometry inside the group, it will be destroyed (regardless that you put in another layer or not) whenever you toggle the subdivisions.
                              • If you create the construction geometry it in a nested group, subdivision will not work anymore, due to the nested instances "illegal" condition.
                              • The cleanest (and the only working) solution would be creating a father group with 2 subgroups inside (one for the subdivision geometry and one for the construction geometry), but then you need to open the father group whenever you need to edit the subdivisions.

                              It's something that probably is better managed grouping the construction geometry manually depending on what you are trying to achieve in a given situation rather than having it hardcoded all the times.

                              If you hardcode it in the plugin, probably it could be handy in some situations, but will be more cumbersome in other situations.

                              Please notice that in order to achieve the same result you could look into Fredosketch plugin or Axyz plugin.
                              Both of them share an inbuilt logic for bounding box snapping.
                              Each of them has its advantages in therms of usability.

                              • Fredosketch can be quickly launched pressing "M" key shortcut twice in order to replace the Sketchup native move tool when needed.
                              • Axyz allows moving with a gizmo, and also has an option to enable/disable the bounding box preview.

                              Both of them can do a lot more.
                              I recommend taking a look at both before messing with code on this one.

                              F 1 Reply Last reply Reply Quote 0
                              • alexpacio2013A Offline
                                alexpacio2013 @thomthom
                                last edited by

                                @thomthom Congratulations, I use it often and it is very useful. I only ask you for a small change. It would be nice if once the box is created you group it. Thanks

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  FlorinAp @panixia
                                  last edited by

                                  @panixia Everything you wrote is much too much for me.!
                                  I usually don't do things that i don't fully understand, and right now i have personal reasons for which I can't afford to explore unknowns.!

                                  Bounding Box doesn't need to be inside, but I've seen that Anchor Points do it this way.......
                                  But grouping it and putting it in a separate tag would be very nice.

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

                                  Advertisement