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.

How get 'Parr.@Dist' to work, (3d) (PIC)

Started by boswell, July 13, 2011, 10:18:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

boswell


Rob S

I don't think it ever worked in 3D except in the direction of the working plane, see previous thread here.

http://forum.designcad.com/index.php?topic=910.0
User since forever

boswell

Rob;

My heap, of frustration, forces me to agree with you ...

Bob P

Try this:
'Para3d.d3m
'Modified parallel by distance routine, uses 2nd point to define plane

precision 15
dx1$=sys$(0) ' get command line user input
if dx1$ = "" then input "enter distance to parallel: ", dx1$
dx=val(dx1$)

if sys(1) <> 2 then
sys(1)=0
setpoint "point 1 on line, point 2 in direction of parallel (also defines plane) . . . " 2
endif

pointval x1 y1 z1 1
pointval x2 y2 z2 2

sys(1)=0

>perpendicularfrom
{
<selectonly 0
<pointxyz [x1, y1, z1]
<pointxyz [x2, y2, z2]
<length [dx]
}

entity sys(9) ' get the points for the line just drawn.

' only need the last two points
tp=sys(1)
tpm1=tp-1
pointval x1 y1 z1 tpm1
pointval x2 y2 z2 tp
sys(1)=0

>eraselast 'remove the perpendicular line just drawn
{
}

'issue normal parallel command using the points
>parallel
{
<pointxyz [x1, y1, z1]
<pointxyz [x2, y2, z2]
}
end