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.

Line perpendicular to a plane

Started by Dr PR, January 09, 2010, 02:12:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

It would be nice if DesignCAD had a function to draw a line from a point above a plane to the closest point on the plane. The resulting line would be perpendicular to the plane.

This would work similar to the "Draw/Line/Perpendicular to a line" function.

****

The fastest way I have found to get a line perpendicular to a plane (or polygon) is:

1. Draw a diagonal across the plane from opposite corners (assuming a four-sided plane for example, like a facet of a grid).

2. Use "Draw/ Plane/Perpendicular Plane" to draw a plane perpendicular to the diagonal - snap to the midpoint (Point/Midpoint) of the diagonal to place the plane.

3. Repeat steps 1 and 2 with a diagonal from another two corners of the plane so the two diagonals intersect.

4. Find the surface intersection (Draw/Line/Surface Intersection) of the two planes perpendicular to the diagonals.

The resulting intersection line is perpendicular to the plane. It may or may not pass through the center of the plane, depending upon the shape of the plane.

Note: With triangular planes the "diagonals" can be from a corner to the midpoint of the opposing side. The resulting perpendicular line will pass through the midpoint of the plane.

****

Anyone know a faster way?
DesignCAD user since 1987

bdeck

#1
Hi DrPR,

You could:

1) Copy the plane to itself

2) Extrude the copy to the point (using fixed 0 angle).

3) Draw a line along one edge of the extrusion.

4) Delete the extrusion.

5) Move the line to the point location.

Seems to me I did something like this in a macro once.

It wasnt pretty.

You're right.

A native command would be better.

BD

PS: here are the keystrokes:

1)  rmb, N, rmb, rmb
1a) Enter               (optional to select the duplicate, and deselect the original)
2)  Draw/Extrude, Fixed check, rmb,rmb
3)  v,rmb, rmb,Enter
4)  Delete
5)  M, rmb,rmb

What do I win?

paulerens

Vector convert the plane
Perpendicular to a line and
<Edit> <selection Edit> <Convert> <Make plane>

Bob P


Lar

Create a 3d box, select it, it will come with 3 sticky handles (if you don't use sticky handles set 3 handles along any 3 bottom points)...

Move the box to the plane by snapping at any 3 points on the plane...

Draw a line by snapping at at any of the sides of the box (that is perpendicular to the plane). Delete the box.

*******

If the the line has to be a certain length select the line by snapping at the endpoint that touches the plane, open the info box, activate 'Use Selection Handle' and enter the desired length in the 'Length' field (you could have done this when you selected the box by setting the 'Height').

Lar

JJG

#5
Dr Pr,

another simple way would be to use "Set Working Plane" : define a new working plane on your plane (new axis X and Y, for example, are on the plane), then draw a line in axis Z where you want ...
Then "Reset Working Plane to restores the original coordinate system to the drawing.

Of course, if the vision of your work in a new coordinate system discomfort you, it is possible to automate this via a macro, which makes the job "blind" [using sys(36)=2], and gives you hands after, so unless you have nothing seen, otherwise the result. For this, it would then just need to know where to put the future perpendicular line, and click 3-points of the plan ; maybe too, to give in advance the length of the future perpendicular...

Dr PR

Bob P wins!

Plane Snap is another feature that crept in without notice. I just checked and it was there in V15.3!

For years I have been doing geometric constructions to find a perpendicular to a plane! I have read through the V15 and V18 User Manuals, but obviously it didn't all stick.

How many other experienced users didn't know this feature was there?

Several new features were added in V18. Have you found them? I have found a few by accident.

Sure do wish they would announce new features instead of just adding them and not tell anyone!
DesignCAD user since 1987

Rob S

I think there is a conspiracy afoot to keep this most valuable program out of the hands of professional CAD users, for fear they might like it.

There is a downside if anyone figures it out, the price will go through the roof... :-\
User since forever

Lar

I always knew about Plane Snap but how does it draw a line perpendicular to a plane?

All it does is snap to the nearest point on the plane, like line snap. If the plane isn't on the X, Y or Z axis ortho mode won't help and you still have to do some figuring to make sure the line is at 90 degrees from the plane.

Even if you use the 'perpendicular from a line' command in 3d you have to be careful because the perp-line will use the existing line as an axis and can spin around the existing line at any angle (while you move the mouse to set the 2nd point).

Lar

Rob S

#9

Lar, it works like a hot dang... the plane can be at any angle irrespective of working plane.

Start line command, set first point near the plane you want to be perpendicular to, then after making sure cursor is still on that same first point, hit "F7".

The shortest distance to the plane from the cursor is perpendicular.  Point to watch for - if you hit the edge of the plane, you may have started outside of its projection, and the result will obviously not be perpendicular.

It appears to perform this with great accuracy.  Checking angle between two lines compared to lines drawn from the edge of the plane to the snapped point, I had to set +12 precision to get any inaccuracy to show.

Then, you can set the line length as you described above.
User since forever

JJG

#10
OK : Point / Plane Snap (F7) moves the cursor to the nearest location on the nearest surface and sets a point there.
And of course, the nearest location is on the perpendicular to the plane.

Then you as to do the maneuver with comma key (,), which I explained in the topic "combination "gravity move" and "Relative Point" could work more logical ..." (  http://forum.designcad.com/index.php?topic=2432.0  )  which is (after having create the first point of the command line) to snap this first point with the comma key (,) , hold the comma key down, then press F7, and the command moves the cursor to the nearest location on the nearest surface and sets a point there : it's the second point of the line.
OK ...
But where I joined the Lar doubt is how to be sure that this was the plan mentioned : it may very well be another plan more near to the 1st point of the line that the plan  we are thinking
So, maybe dangerous !

Rob S


With the above additional explanation, hopefully this will be twice as clear!! ;D
User since forever

JJG

Rob S,

you write : "Start line command, set first point near the plane you want to be perpendicular to"

But I'm not sure it will be as so easy to do as to say it: in 3D, we are often thinking to be "next to" even when we are actually very far ...
So if we have previously to do a lot of maneuvers to ensure that the point is realy near to the plane as you want, it's a safe bet that this method is slower than the method through working plane, as I described it earlier ...

Rob S

#13
I think it should not be too hard to get near the plane you want.

You can use F7 in the perspective view to first visually snap to it, and then use the cursor keys or point relative to move some distance away.  You can also use designcad tile with all views open to visually navigate to your start point.

I would think in many cases you would have an existing point already from which you want to construct this perpendicular. 

If this existing point is too far from the plane in a complex drawing, it might not work.  To get around this situation you might need to temporarily place the plane and the start point onto a separate layer and turn the rest off.

If you want the perpendicular to meet the existing plane at any particular point, you simply build it anywhere, and then move it by its snapped endpoint to the point where you want it to meet or intersect the plane
User since forever

bdeck

#14
It took some time to figure out how to make f7 work with gravity:

1) "v"    ( start the line command )
2) " . "   ( set a point on the desired reference point using the keyboard for gravity )
3) esc   ( erase the point, but dont touch the mouse )
4) F7     ( use planesap to set a point on the plane without touching the mouse )
5) rmb    (set the second point on the reference point using gravity )
6) Enter  ( end the line command )

BobP wins for shortest solution.

One drawback to this method is that if you live under a bridge, the vibration from overhead traffic might move your mouse before you can hit ESC, F7.  So DT is out of luck here.

The biggest drawback I see to f7 is that it has no "selected only" parameter, so its usefulness is pretty limited, unless one uses the separate plane steps suggested by RobS.

Then I win.....  :D



BD