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.

Intermixing 2-D and 3-D

Started by j-wetzel, March 31, 2015, 07:58:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

j-wetzel

In the attached DC 3-D drawing, the main view is the projection of an icosahedron that I need.  I know it is unrealistic to be able to save this view as a "live" 2-D DC drawing, so I've tried to find the 2-D coordinates, lengths, angles, etc. of the drawing in main view so that I can use those data to reconstruct that as a genuine DC 2-D drawing, which is what I need.

Unfortunately, the plane shown in the main view is not a coordinate plane.

Any suggestions?
--Jack

samdavo

#1
JW
Sounds pretty easy (assuming I understand you correctly)
Have you tried Saveas 2D Projection? (PS which is one of the tickboxes under Saveas) - you need to have that view (whether main or otherwise) active when you go there. 

At risk of confusing ...
The enclosed sketch might demonstrate what it does - sorta (- sketch shows various 2D projections - it has been imported into a trial version of Sketchup - unfortunately the trial ended long ago :) - must look into that again).
Still it might give you some ideas about combining programs for presentation purposes - where prl and minstrel are full of ideas (in my experience),  and both have dabbled with Sketchup I believe.

samdavo

I imagine there is also the option of
a) setting a temporary working plane normal to your "projected view plane"
b) then running "FlattenZ/d3m".
(But save your drawing first of course, lol).

And I imagine you could then "reset working plane" and you would get a similar effect to what I show in previous jpeg (hope I'm right there). 

samdavo

But back to keeping it simple, herewith the result of
a) Saveas 2D projection (new drawing = isothingo2D,dcd)
and then just for illustration purposes,
I have opened that file, and changed back to 3D.
You can see you have a flattened drawing.2 cents)

j-wetzel

I sit in awe at your feet, Master.  Awe.  Total awe!
--Jack

Dr PR

prl,

Where did you learn about the "2dbox" function????

I have never heard of it, and it doesn't seem to be in the Reference Manual.

Phil
DesignCAD user since 1987

Dr PR

Jack,

There is a "hard way" to map part or all of a 3D object onto a 2D plane, but you don't want to do it unless you can figure out no other way.

1. Draw a large plane (P) to the side of your 3D object and close to it. Place the plane in the desired orientation to the 3D object. This is the "2D drawing plane."

2. Use the "View/Working Plane/Set Working Plane" function to make the 2D drawing plane your new custom working plane (set the first point at the lower left corner of your plane, the second at the lower right, and the third at one of the upper corners of the plane).

3. Draw a new temporary plane from the ends of a line segment in the 3D object so that these new planes pass through your 2D drawing plane. It is helpful to use the "Point Relative" function to set new points a set distance from a point on the 3D object - use the "From Reference Point" option.

4. Use the "Draw/Lines/Surface Intersection" function to generate a line segment where a temporary plane passes through the 2D drawing plane.

5. Delete the temporary plane and go to step 3. Repeat until you have created 2D drawing lines for each edge of the 3D object.

6. When finished the new lines draw onto the 2D drawing plane make a 2D projection of the 3D object.

****

As I said, this is labor intensive, but it lets you select specific edges of the 3D object to be used to generate the 2D drawing. And it allows you to use a geometric construction to set the 2D drawing plane precisely.

This is essentially what the "File/Save As" command does when you select the "Save 2-D Projection" option. But it allows you to set the 2D drawing plane precisely.

As mentioned above, you can achieve more or less the same results, but faster, if you can orient the view so the screen plane is the proper orientation to the 3D object before you use "Save 2D Projection." But DesignCAD's view orientation operations are pretty squirrely and sometimes hard to predict.

Phil
DesignCAD user since 1987

prl

Phil, I removed my post because something wasn't working the way I thought.  But your question about the 2dbox command is from the developer's info.

Dr PR

prl,

Thanks. It works, so that's another trick in my toolbox.

Phil
DesignCAD user since 1987

samdavo

Sorry, talk of "2D boxes" is going over my head. (?)
cheers
sam

prl

#10
Sam, I had a post up earlier where I was using the 2dbox command to create a temporary workplane.  I assumed that DesignCAD always created the 2dbox in the plane of the viewing window.  I was using Jack's file in the opening post.  Anyway, I removed the post because the temporary workplane is for some reason rotating which made me question my method and what I understood or thought I understood about how DesignCAD worked with respect to viewing windows.

Anyway, in 3d mode, you can hit the command line and type 2dbox and you'll at least see the command I was referring to.

At the moment I can't figure out what DesignCAD is actually doing when I issue that command.

DrollTroll

#11
2D Box just draws a rectangle. It operates no differently than line or circle or plane in that regard. Were you thinking it would work like the 2D Text option? Nope.

Phil, 2D Box is useful in 3D Mode when you just want to draw a rectangle (possibly rotated) rather than a 3D box. In 3D Mode the "Box" command draws either a plane or a 3D Box, depending on where you set the corners. In 2D Mode, the Box icon secretly runs the 2D Box command.
25 years with DesignCAD

DrollTroll

Alternate to Phil's method:

Set your working plane as desired so that the Front view shows the desired 2D view of the object(s).
Lock the Z axis at zero.
Switch to a new empty layer.
Start drawing the desired edges by gravity-snapping to points in the drawing. The Locked Z axis will result in all the points snapping back to the (working plane's) z=0 plane.
Copy the layer to the clipboard.
Start a new 2D drawing.
Paste in your traced lines.
25 years with DesignCAD

Dr PR

DT,

I played with "2dbox" and saw that it produced a rectangular plane in 3D.

Since you set only two points you can't create a rectangle that it rotated with respect to all three axes. In most cases the rectangle is oriented perpendicular to the (default) XZ plane - in other words it stands up along the Y axis.

If I set two points in the XZ plane all I get is a line between those two points, but the Info Box calls it a plane.

****

Sam,

the "2Dbox" function is an undocumented command you can start by typing "2Dbox" (without quotes) on the command line.

Phil
DesignCAD user since 1987

prl

#14
Quote from: DrollTroll on April 01, 2015, 07:28:54 AM
Were you thinking it would work like the 2D Text option? Nope.

Yes, I thought it would always draw a 2d box perpendicular to the viewing window.  But it doesn't and it isn't really clear what it is doing.

And regarding the 2dtext, yes that is the trick I was aiming for.  The 2dtext is simply a convenient entity that is always perpendicular to the view.

A movie - Using 2dtext to create a temporary workplane normal to the viewing window