Computes the distance to another Alignment, specifying the side of current Alignment to look for the target Alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public void DistanceToAlignment(
	double stationOnThisAlignment,
	Alignment otherAlignment,
	AlignmentSide enumSide,
	ref double distanceToOtherAlignment,
	ref double stationOnOtherAlignment
)
Visual Basic
Public Sub DistanceToAlignment ( _
	stationOnThisAlignment As Double, _
	otherAlignment As Alignment, _
	enumSide As AlignmentSide, _
	ByRef distanceToOtherAlignment As Double, _
	ByRef stationOnOtherAlignment As Double _
)
Visual C++
public:
void DistanceToAlignment(
	double stationOnThisAlignment, 
	Alignment^ otherAlignment, 
	AlignmentSide enumSide, 
	double% distanceToOtherAlignment, 
	double% stationOnOtherAlignment
)

Parameters

stationOnThisAlignment
Type: System..::..Double
Specifies the station name located on the current Alignment.
otherAlignment
Type: Autodesk.Civil.DatabaseServices..::..Alignment
Specifies the name of target Alignment.
enumSide
Type: Autodesk.Civil.DatabaseServices..::..AlignmentSide
Specifies which side of this Alignment to look for the target Alignment. This is required in the the case where the alignments cross, and the target Alignment can be found on both sides.
distanceToOtherAlignment
Type: System..::..Double%
Returns the distance from the current Alignment to the other Alignment.
stationOnOtherAlignment
Type: System..::..Double%
Returns the station located on the other Alignment.

Exceptions

ExceptionCondition
Autodesk.Civil..::..PointNotOnEntityException Thrown if the target Alignment is not found.

See Also