AlignmentTrackDistanceToAlignment(Double, Double, NullableDouble, ObjectId, NullableDouble, TrackDistanceCalculationMode) Method |
Computes the minimum distance between tracks of two alignments.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic AlignmentTrackDistanceData TrackDistanceToAlignment(
double startStationOnThisAlignment,
double endStationOnThisAlignment,
double? gaugeForThisAlignment,
ObjectId otherAlignmentId,
double? gaugeForOtherAlignment,
TrackDistanceCalculationMode trackDistanceCalculationMode
)
Public Function TrackDistanceToAlignment (
startStationOnThisAlignment As Double,
endStationOnThisAlignment As Double,
gaugeForThisAlignment As Double?,
otherAlignmentId As ObjectId,
gaugeForOtherAlignment As Double?,
trackDistanceCalculationMode As TrackDistanceCalculationMode
) As AlignmentTrackDistanceData
public:
AlignmentTrackDistanceData^ TrackDistanceToAlignment(
double startStationOnThisAlignment,
double endStationOnThisAlignment,
Nullable<double> gaugeForThisAlignment,
ObjectId otherAlignmentId,
Nullable<double> gaugeForOtherAlignment,
TrackDistanceCalculationMode trackDistanceCalculationMode
)
Parameters
- startStationOnThisAlignment Double
- Specifies the start raw station located on the current alignment.
- endStationOnThisAlignment Double
- Specifies the end raw station located on the current alignment.
- gaugeForThisAlignment NullableDouble
- Specifies the gauge for current alignment. If not specified, use default track width of the alignment or 0 if alignment doesn't have track width.
- otherAlignmentId ObjectId
- Specifies other alignment's object id.
- gaugeForOtherAlignment NullableDouble
- Specifies the gauge for other alignment. If not specified, use default track width of other alignment or 0 if other alignment doesn't have track width.
- trackDistanceCalculationMode TrackDistanceCalculationMode
- The type of calculating distance.
Return Value
AlignmentTrackDistanceData
Returns alignment track distance data object.
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- Start station or end station is out of station range of current alignment. Start station is less than end station.
- The gauge value is less than 0.
- Other alignment id is invalid or other alignment id is equal to current alignment id.
|
PointNotOnEntityException |
Thrown if minimum distance is not found.
|
See Also