News:

All posts discussing pricing or where to buy TurboCAD will be deleted.

Main Menu

Box enclosing an arbitrary object

Started by Andre Arpin, April 20, 2010, 10:03:57 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Andre Arpin

How could you create a box that enclose an arbitrary 3d object.

Henry Hubich

Quote from: Andre Arpin on April 20, 2010, 10:03:57 AM
How could you create a box that enclose an arbitrary 3d object.

Select the object and read its X, Y, and Z sizes from the Inspector Bar. Create a 3D Box of corresponding dimensions (a bit larger, actually!); Shell it to the desired wall thickness; select it and snap it to the Center of Extents of the arbitrary object.

Henry H

Andre Arpin

Would you have to enter all the values including the rotation.

Andre

Henry Hubich

Quote from: Andre Arpin on April 20, 2010, 12:03:53 PM
Would you have to enter all the values including the rotation.

Andre

You would have to enter all the Size values. If the default orientation of the box does not align correctly with the object, the problem becomes a little more complex. If that is the case, I'd probably rotate the object first, so it aligns with the current X,Y,Z axes, and then follow the procedure outlined in my first post.

Henry H

Andre Arpin

The answer is a simple macro which I have included.
The Box is based on the position of the current work plane.

For example this is handy if you have something like a very odd shape pipe that you want to place in a corner or something with a hole at the wrong place that you want to place exactly.

Thanks for your help

Andre

Andre Arpin

Sorry I forgot to say the box enclose the selection.
Nothing happen if there is no selection.

MsgBox does not seem to work so I do not issue an error on an empty selection.

Andre