News:

Please note new Forum URL: forum.designcad.com

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

3D rotation

Started by kchoekstra, February 20, 2015, 09:12:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kchoekstra

I am probably like a lot of people who find it hard to work in 3D space. Is there a way to rotate a drawing relative to a straight line. That would allow me to work in the x/y plane more. In this drawing I used the F2 command to place the left blue line 2" to the left. No problem. Using the same command on the bottom left line gives the wrong result. If I could orient the drawing plane to that lower left plane easily then the parrallel command would work easily.

Thanks, Kc.

prl

#1
Quote from: kchoekstra on February 20, 2015, 09:12:08 AM
If I could orient the drawing plane to that lower left plane easily then the parrallel command would work easily.

Left click the bottom right corner where it says DefaultWP, and select "Set Work Plane".  It will ask you for 3 points so you can locate a new temporary xy plane.

kchoekstra

How simple is that. My life just got better. Thank You.

samdavo

#3
prl
Personally I have never trusted F2 in 3D, possibly/ probably because I haven't been using it properly, but ...

VERTICAL LINE
Here's an example of an apparent inconsistancy (but which I now realise has some logic) :-

If you draw a vertical line 100 long in 3D, (and if XY is your working plane - which appears to be very relevant) - then you can use F2 in front view (eg distance 20), and the line is exactly 20 distant, and is in one or other of two positions ( left or right) . 

but if you use it in any other view ( top, or side, or in main view provided main isn't set to be front view), then it will be unreliable, i.e. will be an apparent 20 distant as seen in XY plane,  but "pretty much any distance" as seen in any other plane   
(edit) - PS In fact the actual distance is set by the second point, but different to the way it works in 2D


DIAGONAL OF A BOX
Moving on,  if you draw a box, say 100x100x200, and draw a diagonal - and you try to draw a line parallel to that line at distance 50    make that 20.
then it doesn't matter which of the standard views you use, the line you get will be parallel but at a very unreliable and "plastic" distance  (which can be much smaller or larger than 20)...

However, when you set the working plane  (as explained here) to include the diagonal and one of the corners, then F2 "snaps" to one or other of two positions either side of the diagonal (i.e. reliable).
thanks again

PS keywords added :-
sd=KWparallel by distance

prl

Quote from: samdavo on February 20, 2015, 03:00:14 PM
prl
Personally I have never trusted F2 in 3D, possibly/ probably because I haven't been using it properly, but ...

Sam, I agree that parallel by distance is basically a 2d command and is flawed in 3d mode.

In my opinion, in 3d mode, it should ask for two points.  First point for line to parallel, second point to define the 3d direction (plane) for the parallel line location. Otherwise we have infinite solutions (360 degrees) of lines that meet the parallel line criteria.

samdavo

#5
prl
The following is all theory - I prefer your proposal on how F2 could work, but equally, your idea of using Temp Working Planes appears to be 100% reliable.

The following is Seriously Optional reading  :)

I thought I was getting close to cracking the code, but then found an exception to the rule.

Anyway I'll post what I found, without pretending it is 100% correct.

I drew a box 100x100x200, drew the diagonal, and drew "pallalel by distance" lines using various views to select the two points, with distance 20 set in the F2 dialogue box.  I find these are USUALLY in 2 planes ( but sometimes not lol),  see red lines and green lines respectively.

Construction Lines:-  Draw a small plane 40x40 normal to the diagonal (cyan)

Theory to be tested:-
in the same way that "Draw a plane normal to the diagonal",  (dimension 40), will give a square plane 40x40 with the lower edge horizontal  , I find that the ends of the lines that you end up are OFTEN in horizontal planes that include the lower and upper edges of that small square plane  - i.e. there appears to be an element of horizontality going on.  (2 cents)

PS But this theory appears to be unreliable, because it depends (or can depend?) on which view you are working with etc. 

(edit) PS Importantly, the magenta lines are what you get (100% reliably) if you define the temporary working plane (TWP) as ABD.  Hence as long as you define a TWP, you should be ok.   

When you think about it, using a TWP is something like what you are proposing in your previous post, yes?

i.e. "Nailing it" to a working plane (PS that includes the line)  is not unlike working in 2D, yes?

kchoekstra

But will this work if the line has an angle in it. In 2D a right angle line will duplicate both directions with the F2 command.

prl

Quote from: kchoekstra on February 21, 2015, 06:43:33 AM
But will this work if the line has an angle in it. In 2D a right angle line will duplicate both directions with the F2 command.

I'm assuming you're discussing a poly-line (more than one segment) in 3d.  As mentioned, parallel by distance is fundamentally a 2d command but you can get it to do what you need if you use the poly-line as the basis for setting 3 points for the temporary work plane.  As Sam mentions, using a temporary work plane is forcing the command to work in 2d which is how it was originally conceived and coded.

Dr PR

KC,

As mentioned, the problem in 3D is that a parallel line has an infinite number of possible locations. For example, with a simple single segment vector the possible locations of a parallel line X units from the original line is the surface of a cylinder with radius X and a central axis on the vector.

As prl says, there is no way to tell DesignCAD which of the infinite number of directions you want for the parallel line.

If the line is multi segment and all segments do not lie in a plane there may not be a perfect parallel line solution.

****

prl's "Set Working Plane" suggestion is a very handy shortcut any time you want to orient an object relative to an angled surface. For example, placing a cube with a face coincident to a plane angled to all three axes is a tricky job in the default working plane, but there is nothing to it if you make the angled plane the default XY working plane.

The menu options for custom working plane are:

View/Working Plane/Set Working Plane: define a custom working plane. You can give the custom plane a name or accept the default name.

View/Working Plane/Reset Working Plane: returns operations to the original default working plane (XYZ axes).

View/Working Plane/Working Plane Properties: lists all previously defined custom working planes and allows you to select one to resume working in that custom plane.

****

I think there is a trick to try to get "Parallel By Distance" to work in 3D. It seems to work best if you are viewing the original line more or less perpendicular to the line (or plane of a multi-segment line). Then the parallel line will be created (more or less) in the plane perpendicular to the viewing direction (from View Point to View Center).

Otherwise the parallel line will be generated in some unpredictable combination of a plane perpendicular to the view and a plane that the original line lies in.

If you do generate a parallel to a multi-segment line where all of the segments are not in the same plane all bets are off for what planes the parallel line will be in. However, you can force it back into a single plane with this trick:

1. Use the Plane (P) function and gravity snap to points on the "parallel" line. When you finish the Plane command it may ask if you want the program to put all points in the same plane. Click "Flat."

Note: If several sequential points in the parallel line lie in the plane that you want the resulting plane to lie in, start drawing the plane using these points. They will serve as "anchors" to determine the plane for the new Plane.

2. If the resulting plane is satisfactory you can delete the original non-planar parallel line and convert the plane into a multi-segmented vector (Edit/Selection Edit/Convert/Vector Convert."

****

Here is a personal request for everyone. Please spell out the name of commands, not just the keystrokes. This will help other users (experienced and newbies) know what you are talking about. For example, in KC's original post he said "I used the F2 command ..." and I immediately wondered "what is the F2 command?"

Of course I have been using F2 to start the "Draw/Lines/Parallel By Distance" function for at least a quarter century, but it is a reflex response that I never think about - I just do it. So I was scratching my head a minute to figure out what he was talking about! To make matters worse for newbies the Reference Manual doesn't list F2 as a shortcut key for the "Parallel By Distance" function so a newbie would have no way to figure it out except to start up the program and try it.

Phil
DesignCAD user since 1987

samdavo

#9
Quote from: Dr PR on February 21, 2015, 11:49:19 AM
1. As mentioned, the problem in 3D is that a parallel line has an infinite number of possible locations. For example, with a simple single segment vector the possible locations of a parallel line X units from the original line is the surface of a cylinder with radius X and a central axis on the vector.
****

2.  It seems to work best if you are viewing the original line more or less perpendicular to the line (or plane of a multi-segment line). Then the parallel line will be created (more or less) in the plane perpendicular to the viewing direction (from View Point to View Center).

3.  Otherwise the parallel line will be generated in some unpredictable combination of a plane perpendicular to the view and a plane that the original line lies in.

Phil

3. I agree wholeheartedly with the "unpredictable" bit - but
2.  not with the "more or less" bit, i.e. you have to be viewing exactly normal to a plane containing the line
1.  this comment is correct of course, but with DCAD, there is no similarity between the options you get and a cylinder.   

The enclosed jpeg shows the diagonal of a very low profile box.
Using F2 in "Top View" i.e. close to or "more or less" normal to the diagonal   - (with distance set at 5.00)...

one line (cyan) is pretty close at 5.01 (freeform distance),  but another (magenta) is 85.31.(!)

In summary, I think we all agree that F2 (parallel by distance) in 3D is tricky.
cheers 

prl

#10
Agreed with all the above. Some terminology.

line:  DC line entity defined by two points, a single line segment
poly-line, multi-segment : DC line entity defined by more than two points, say N points, meaning having N-1 (two or more) line segments

Dr PR

Sam,

Agreed.

I'm not sure even the distance part of "Parallel By Distance" always works. I have gotten "parallel" lines in some pretty strange places, occasionally far away from the original line. But right now I don't have an example to test this.

****

Using a multi-segment line with all points in a plane I have gotten parallel lines in the plane of the original line and at the correct distance even when I was not viewing from directly "above" the original line. But the viewpoint has to be pretty close to "above" the line.

NOTE: in ALL cases with a single segment line, or a multi-segment line with all points in a plane, if the View Point is not in the plane of the line it is possible to draw a perpendicular (normal) from the View Point to the geometric plane of the line.

My guess is that the problem seems to be with the distance from the line to the point where the normal intersects the plane of the line. If the distance is too great the function fails. If it is close enough you get a parallel line somewhere. Some other DesignCAD functions have this distance limitation.

Phil
DesignCAD user since 1987