GetMinimumDistance returning wrong value

GetMinimumDistance returning wrong value

Anonymous
Not applicable
453 Views
1 Reply
Message 1 of 2

GetMinimumDistance returning wrong value

Anonymous
Not applicable

I wish to calculate minumum perpendicular distance between a Plane and a point.

 

length = _invApp.MeasureTools.GetMinimumDistance(centroid3d, wp.Plane)

I am using Workplane's Plane and not Workplane itself assuming that Plane may be with the infinite definition.

 

In user mode I get distance as 0.177

 

WorkpointDistanceError.png

 

But with the call its 0.44

 

WorkpointDistanceErrorAPI.png

 

In attached part its distance between, profile of Extrude6 (sketch5) and its "To" work plane 4.

0 Likes
Accepted solutions (1)
454 Views
1 Reply
Reply (1)
Message 2 of 2

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

Everything through the API is handled in internal units:

http://adndevblog.typepad.com/manufacturing/2012/07/unitsofmeasure-object-and-example.html

 

Cheers,

 



Adam Nagy
Autodesk Platform Services