Gets the station set according to the StationType and interval.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
Visual Basic |
---|
Public Function GetStationSet ( _
stationType As StationTypes, _
interval As Double _
) As Station() |
Parameters
- stationType
- Type: Autodesk.Civil.DatabaseServices..::..StationTypes
The type of the station which will be collected.
This method overload is intended to get Major or Minor station types.
- interval
- Type: System..::..Double
The interval of station. You can only enter a Major and Minor station.
Examples
CopyC#
1
2
3Station[] myStations = myAlignment.GetStationSet(StationTypes.All, 100, 20);
4ed.WriteMessage("Number of possible stations: {0}\n", myStations.Length);
5
6foreach (Station myStation in myStations)
7{
8 ed.WriteMessage("Station {0} is type {1} and at {2}\n", myStation.RawStation, myStation.StationType.ToString(), myStation.Location.ToString());
9}
Exceptions
Exception | Condition |
---|
System..::..ArgumentOutOfRangeException |
Thrown when the value of interval is negative.
|
See Also