Joe,
I think I spotted that thread, re Microstation and TonyT's comment about the
lack of Autodesk ability with that function.
Anyway, I note your suggestions with interest and will do my best to see if
I can't make one of them work.
Thanks very much.
Len
--
To email reply, eradicate all threes in my SPAM guarded address.
"Joe Burke" wrote in message
news:5158938@discussion.autodesk.com...
Hi Len,
Interesting question. Microstation has a command which returns the minimum
distance
between any two selected objects. Obviously related to your question. I used
MS in
the past, so I miss that command in AutoCAD.
I've done some research on this, Google searching the newsgroups. I found a
comment
by Tony which said in effect, it simply can't be done in ACAD the way it's
done in
MS. I don't recall the date of his comment. Things may have changed since
then. Tony?
Anyway, assuming you want to pass these two objects to some function and
find the
closest points without drawing. I think the only way is convert the arc in
the pline
to a set of points. That trace function again. Pass each point to
(vlax-curve-getClosestPointTo curve-obj givenPnt) where curve-obj is the
line. Then
determine which two pairs of points represent the minimum distance.
The downside is the result will not be the true mathematically correct
answer. And
how much it strays depends on how many points the arc is broken into.
BTW, there's another way drawing. Perp snap to the line and perp snap to the
arc in
the pline.
Joe Burke
"Fatfreek" wrote in message
news:5158898@discussion.autodesk.com...
The attached is a simple drawing of an angular line that is adjacent to an
enclosed polyline. I want to be able to code the nearest point on that poly
to the line.
It's easy to draw in Autocad. Osnap cen of the arc portion to perp of the
line gives a line. Then, the intersection of that line on the poly.
Tomorrow, the poly may not be that simple.
Len
--
To email reply, eradicate all threes in my SPAM guarded address.