.NET

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

How to get closest point?

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

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

 

Windows 7 (x64)
AutoCAD 2012 (x64)
Valued Mentor
jeff
Posts: 321
Registered: ‎05-12-2009
Message 2 of 2 (405 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...

 

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

 

You can also find your answers @ TheSwamp

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community