Valued Contributor
Posts: 83
Registered: ‎10-07-2005
Message 1 of 2 (501 Views)

How to get closest point?

501 Views, 1 Replies
11-05-2012 05:31 AM


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


Windows 7 (x64)
AutoCAD 2012 (x64)
Valued Mentor
Posts: 338
Registered: ‎05-12-2009
Message 2 of 2 (498 Views)

Re: How to get closest point?

11-05-2012 06:01 AM 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...




You can also find your answers @ TheSwamp
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.