OffsetBaselineEndStation Property |
Returns the end station value for the baseline.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic virtual double EndStation { get; set; }
Public Overridable Property EndStation As Double
Get
Set
public:
virtual property double EndStation {
double get ();
void set (double value);
}
Property Value
Double
ExceptionsException | Condition |
---|
ArgumentException | This exception is thrown if the value set is less than the
StartStation.
|
RemarksThis property returns the end station value of the main baseline associated with the offset baseline.
To retrieve the specific station value for this offset baseline, you can pass this value to
MainBaselineStationToOffsetBaselineStation(Double) and convert it.
ExampleThe following example uses a
Baseline object, but it
works the same for the EndStation property of
OffsetBaseline 1private void WriteBaselineInfo(Baseline baseline)
2{
3 Alignment baselineAlignment = baseline.AlignmentId.GetObject(OpenMode.ForRead) as Alignment;
4 Profile baselineProfile = baseline.ProfileId.GetObject(OpenMode.ForRead) as Profile;
5
6
7
8
9 BaselineData data = new BaselineData()
10 {
11 Name = baseline.Name,
12 StartStation = baseline.StartStation.ToString(),
13 EndStation = baseline.EndStation.ToString(),
14 AlignmentName = baselineAlignment.Name,
15 ProfileName = baselineProfile.Name,
16 BaselineType = baseline.BaselineType.ToString(),
17
18 NeedsProcessing = baseline.NeedsProcessing.ToString()
19 };
20
21 _writer.WriteBaselineInfo(data);
22
23
24
25
26
27
28
29
30
31
32
33
34
35 foreach (BaselineRegion region in baseline.BaselineRegions)
36 {
37 WriteBaselineRegion(region);
38 }
39
40 _writer.CloseBaselineInfo();
41}
See Also