M

Alignment.GetDistance

Description:
Calculates the relative distance along the alignment between two stations based on their alignment distances according to Revit Internal Origin Coordinate Base.
public double GetDistance(
	double fromStation,
	double toStation
)
  • fromStation
    The displayed alignment station from which 2D length is to be calculated, in Revit internal model units (standard Imperial feet).
  • toStation
    The displayed alignment station to which 2D length is to be calculated, in Revit internal model units (standard Imperial feet).
Return Value 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.