.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get closest point?

1 REPLY 1
Reply
Message 1 of 2
tanerpro
3187 Views, 1 Reply

How to get closest point?

Hello,

I want to connect a point to a polyline from the closest point (ie. perpendicular to the nearest segment). I could'nt find any sources on the net. I tried the old vlax class but there is problem with the Acad.GetInterfaceObject("VL.Application.*) line and can't figure it out. In the meantime my all entities are interop objects, how will i pass them to vb.net mthod getclosestpoint?

 

Thanks for your helps....

 

1 REPLY 1
Message 2 of 2
jeff
in reply to: tanerpro

Curve.GetClosestPointTo & Curve.GetParameterAtPoint

 

Check out this post and the previous and later ones before and after it, goes into more detail about dealing with tolerances, etc...

 

http://spiderinnet1.typepad.com/blog/2012/10/autocad-net-isonpoint3d-curvegetclosestpointto-curveget...

 

You can also find your answers @ TheSwamp

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost