Enclosing square geometry

Enclosing square geometry

luke-ashington
Explorer Explorer
770 Views
6 Replies
Message 1 of 7

Enclosing square geometry

luke-ashington
Explorer
Explorer

Hi all, is it possible to create a square geometry around shaped objects easily? I've tried the boundaries tool but not what i am after. I create piece parts for cnc machines so would like to create a "material" around the objects, which could be curved, angled etc. Thanks in advanced, LA

0 Likes
Accepted solutions (1)
771 Views
6 Replies
Replies (6)
Message 2 of 7

AVCPlugins
Advisor
Advisor

I am very familiar with this problem. When I was programming the contour preparation command for the CNC, I made an option for exactly this task - drawing a rectangle around the part. But I'm working with 3D solid parts. What are your initial data?


Plugins for AutoCAD
A>V>C>
AppStore | Facebook | Twitter | YouTube | Blog
Message 3 of 7

Kent1Cooper
Consultant
Consultant
Accepted solution

How about the DBBM command in DrawBoundingBoxMult.lsp, >here<?  The result would be square [I'm not sure whether you mean that specifically] only if that fits the selected objects, but it is always rectangular.  You could Offset the result outward slightly if you need some perimeter space beyond the actual extents of the objects.

Kent Cooper, AIA
Message 4 of 7

luke-ashington
Explorer
Explorer

Thanks for your reply. Everything we draw is in 2D. I have a good "basic" knowledge of autocad so looking forward to becoming more advanced. Also, currently we are running cad lite if that makes any difference.

Thanks, LA

0 Likes
Message 5 of 7

luke-ashington
Explorer
Explorer

@Kent1Cooper Just tried the code you told me about and the DBBM command is exactly what i am after. Thanks so much. Although it would be great if i could use this for individual objects. 

LA

0 Likes
Message 6 of 7

Kent1Cooper
Consultant
Consultant

@luke-ashington wrote:

.... it would be great if i could use this for individual objects. 


You can.  Just pick only one.  If you mean you want to select a bunch of things collectively, and have bounding boxes drawn around each individually, try the attached DrawBoundingBoxes.lsp [DBB command].  I think it should be in the Forums somewhere, but I couldn't find it.

Kent Cooper, AIA
0 Likes
Message 7 of 7

vladimir_michl
Advisor
Advisor

See also the BBox utility (2D or 3D, squares, circles, boxes or cylinders, UCS-aware):

https://www.cadforum.cz/en/highlighting-object-extents-by-bounding-boxes-tip6683

 

Vladimir Michl, www.arkance-systems.cz  -  www.cadforum.cz

 

0 Likes