RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Curve

Curve.Distance

Method
Description:
Returns the shortest distance from the specified point to this curve.
Remarks:
Returns the distance from the closest point on the curve to the specified point.
Syntax
public double Distance(
	XYZ point
)
Parameters
Parameter Type Description
point XYZ The specified point.
Return Value
Type Description
Double The real number equal to the shortest distance.
Exceptions
Exception Condition
InvalidOperationException Thrown when failed to find the closest point on the curve.