Gets the collection of baselines in the corridor.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0
Syntax
C# |
---|
public BaselineCollection Baselines { get; } |
Visual Basic |
---|
Public ReadOnly Property Baselines As BaselineCollection Get |
Visual C++ |
---|
public: property BaselineCollection^ Baselines { BaselineCollection^ get (); } |
Remarks
When this property is invoked, a new BaselineCollection object is created. When accessing the collection multiple times, it is a good practice to hold the reference in a variable and access the properties and methods through it.
Examples

1foreach (Baseline oBaseline in oCorridor.Baselines) 2{ 3 Alignment oAlign = ts.GetObject(oBaseline.AlignmentId, OpenMode.ForRead) as Alignment; 4 Profile oProfile = ts.GetObject(oBaseline.ProfileId, OpenMode.ForRead) as Profile; 5 ed.WriteMessage(@"Baseline information - 6 Alignment : {0} 7 Profile : {1} 8 Start station : {2} 9 End station : {3}\n", 10 oAlign.Name, 11 oProfile.Name, 12 oBaseline.StartStation, 13 oBaseline.EndStation);