DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

"Exploding" a drawing

Started by Dempsey, September 30, 2007, 03:36:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dempsey

First of all I don't mean "exploding" like exploding a DesignCAD solid or group.

What I mean is when I have a 3D drawing of a woodworking project, for example a nightstand, I like to pull that nightstand apart into the individual wood pieces (typically individual DesignCAD solids) such as legs, stretchers, top/bottom/side panels, etc.. You see this often in woodworking magazines where such a "pulled apart" 3D drawing shows how the pieces fit together while at the same time giving the dimensions of each individual piece. These kind of "pulled apart" or exploded drawings are much easier to read then a combination of several 2D drawings showing the top, front, and side of a woodworking piece.

The way I envision it is to select all the top pieces and move them upperwards away from the rest. Then do the same for the bottom, back, front and sides pieces. Once that is done then I can add in the dimensions for the individual pieces.

I did not find such a "pull apart" command in DesignCAD, but I am wondering if someone has done this before and if there is already a macro available that does something like that.

Dempsey

edgar

Quote from: Dempsey on September 30, 2007, 03:36:04 PM
..."pull apart" ...if there is already a macro available that does something like that.

Hi Dempsey!

A number of years ago I either wrote such a macro or modified someone else's version. As I dimly recall, what I did was select all the parts I wanted to "explode", the macro then set the handle of the selection to Center. I then stepped through each part, moving each one proportionately away from the center handle in all three axis. I will look around later today on my old machine and see if I can come up with the macro. I seem to recall it only gave a first approximation and everything had to be hand-tuned to look nice. You might try searching the old forum.
-Ed

edgar

Quote from: edgar on October 01, 2007, 09:45:58 AM
I will look around later today

Sorry, I looked but found nothing. As I recall, the concept behind the code was this:

User selects parts to "push apart"
run macro to do the following:
get value for offset from user (could be a %, or a distance offset)
on selection:
establish center of selection (CofS)
loop through all selected parts and do to each:
     find center of part (CofP), set part's handle there
     draw imaginary line from CofS through CofP and beyond by offset amount, determine XYZ location of end of line (EOL)
     using handle, DragMove part to EOL
next part
regenerate drawing

I have way too much on my plate this fall to try to craft this into BasicCAD. Maybe you could try to get it worked out and get specific help on areas where you bog down.
-Ed

Dempsey

Thanks Edgar. I checked the old forum but could not find what I was looking for (yet).

I do like your concept code, will work on a macro and post it. It may take a while though because as a retiree I have a "busy" schedule: newspaper, coffee breaks, wood working, vacation, and that long honey-to-do-list.
Dempsey