TheSwamp

Code Red => .NET => Topic started by: badjo_5 on September 11, 2020, 05:56:08 PM

Title: GetCLosestPointTo
Post by: badjo_5 on September 11, 2020, 05:56:08 PM
From Lee: http://www.theswamp.org/index.php?topic=42899.msg482410#msg482410

Is there something like vlax-curve-getclosestpointtoprojection for .Net?
3D poly with Nearest returns correct result (GetClosestPointTo), but without Osnap ...
Title: Re: GetCLosestPointTo
Post by: gile on September 12, 2020, 01:40:30 AM
Hi,

The Curve.GetClosestPointTo is overloaded. This overload (https://help.autodesk.com/view/OARX/2019/ENU/?guid=OREFNET-Autodesk_AutoCAD_DatabaseServices_Curve_GetClosestPointTo_Point3d__MarshalAsUnmanagedType_U1__bool) which takes a Vector3d as argument works the same as vlax-curve-getClosestPointToProjection.
Title: Re: GetCLosestPointTo
Post by: badjo_5 on September 12, 2020, 03:26:32 PM
Don't ask google, Gile knows!!
 :yes: