Share

Alignment.DistanceToAlignment(Double, Alignment, Double, Double) Method

Computes the distance to another Alignment. If the target Alignment crosses the current Alignment, this method checks the distance to the target Alignment on both sides, and returns the shorter distance.



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

Syntax

C#

public void DistanceToAlignment(
	double stationOnThisAlignment,
	Alignment otherAlignment,
	ref double distanceToOtherAlignment,
	ref double stationOnOtherAlignment
)

VB

Public Sub DistanceToAlignment ( 
	stationOnThisAlignment As Double,
	otherAlignment As Alignment,
	ByRef distanceToOtherAlignment As Double,
	ByRef stationOnOtherAlignment As Double
)

C++

public:
void DistanceToAlignment(
	double stationOnThisAlignment, 
	Alignment^ otherAlignment, 
	double% distanceToOtherAlignment, 
	double% stationOnOtherAlignment
)

Parameters

stationOnThisAlignment  Double
Specifies the station name located on the current Alignment.
otherAlignment  Alignment
Specifies the name of the target Alignment.
distanceToOtherAlignment  Double
Returns the distance from the current Alignment to the other Alignment.
stationOnOtherAlignment  Double
Returns the station located on the other Alignment.

Exceptions

ExceptionCondition
PointNotOnEntityException Thrown if the target Alignment is not found.

See Also

Reference

Was this information helpful?