DistanceTo Method


Returns the distance from this 2-D point to the specified 2-D point.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)

Syntax

C#
public double DistanceTo(
	UV source
)
Visual Basic
Public Function DistanceTo ( _
	source As UV _
) As Double
Visual C++
public:
double DistanceTo(
	UV^ source
)

Parameters

source
Type: Autodesk.Revit.DBUV
The specified point.

Return Value

The real number equal to the distance between the two points.

Remarks

The distance between the two points is equal to the length of the vector that joins the two points.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException Thrown when source is a null reference (Nothing in Visual Basic).

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →