AlignmentGetStationSet(StationTypes, Double, Double) Method |
Gets the station set according to the StationType and intervals.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic Station[] GetStationSet(
StationTypes stationType,
double majorInterval,
double minorInterval
)
Public Function GetStationSet (
stationType As StationTypes,
majorInterval As Double,
minorInterval As Double
) As Station()
public:
array<Station^>^ GetStationSet(
StationTypes stationType,
double majorInterval,
double minorInterval
)
Parameters
- stationType StationTypes
- The type of the station which will be collected.
This method overload is intended to get All or HorizontalMask station types.
- majorInterval Double
- The major interval of station.
- minorInterval Double
- The minor interval of station.
Return Value
Station
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException |
Thrown if the value of majorInterval or minorInterval is negative.
|
Example1
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}
See Also