Returns the distance from this point to the specified point.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public double DistanceTo( XYZ source )
Parameters
- source XYZ
- The specified point.
Return Value
DoubleThe real number equal to the distance between the two points.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when source is null. |