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

Method to determine shortest distance between 2 entites

1 REPLY 1
Reply
Message 1 of 2
Anonymous
354 Views, 1 Reply

Method to determine shortest distance between 2 entites

Is there a .net api method to determine the shortest distance between 2 entities?
My specific situation is a cursor point and a polyline.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

There are always multiple ways to 'skin a cat' (BTW, where did that phrase come from?).

My first suggestion would be looking into the Curve object. It has a function called GetClosestPointTo which will give you what you need.

The polyline object seems to inherit from the base curve object.

HTH,
Josh Modglin
InMotion Consulting
http://www.inmotioncon.com

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