RVTDocs.com

Alignment.GetDistance

Method
Description:
Calculates the relative distance along the alignment between two stations based on their alignment distances according to Revit Internal Origin Coordinate Base.
Syntax
public double GetDistance(
	double fromStation,
	double toStation
)
Parameters
Parameter Type Description
fromStation Double The displayed alignment station from which 2D length is to be calculated, in Revit internal model units (standard Imperial feet).
toStation Double The displayed alignment station to which 2D length is to be calculated, in Revit internal model units (standard Imperial feet).
Return Value
Type Description
Double Distance (positive or negative) along the alignment between two stations. The sign of the distance depends on the relative positions of the input stations on the alignment.