Gets the station set according to the StationType and intervals.

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

Syntax

C#
public Station[] GetStationSet(
	StationTypes stationType,
	double majorInterval,
	double minorInterval
)
Visual Basic
Public Function GetStationSet ( _
	stationType As StationTypes, _
	majorInterval As Double, _
	minorInterval As Double _
) As Station()
Visual C++
public:
array<Station^>^ GetStationSet(
	StationTypes stationType, 
	double majorInterval, 
	double minorInterval
)

Parameters

stationType
Type: Autodesk.Civil.DatabaseServices..::..StationTypes
The type of the station which will be collected. This method overload is intended to get All or HorizontalMask station types.
majorInterval
Type: System..::..Double
The major interval of station.
minorInterval
Type: System..::..Double
The minor interval of station.

Examples

CopyC#
1// Get all the potential stations with major interval = 100, and minor interval = 20
2// Print out the raw station number, type, and location                
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

ExceptionCondition
System..::..ArgumentOutOfRangeException Thrown if the value of majorInterval or minorInterval is negative.

See Also