[Plugin] Draw Boundingbox
-
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
-
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?

-
There probably is, but I'm not sure how. This plugin is very simple designed specifically to use the boundingbox.
-
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!

-
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 ...

-
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.

-
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.


-
@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.
-
@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.! -
@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. -
@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.!
-
@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. -
@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
-
@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.
Advertisement