Gets the collection of baselines in the corridor.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.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

1private void WriteCorridor(Corridor corridor) 2{ 3 // CorridorData is a sample helper class used to convert all corridor data 4 // to strings and write them to the writer. 5 // 6 CorridorData data = new CorridorData() 7 { 8 Name = corridor.Name, 9 CodeSetStyleName = corridor.CodeSetStyleName, 10 RegionLockMode = corridor.RegionLockMode.ToString(), 11 IsOutOfDate = corridor.IsOutOfDate.ToString(), 12 AutomaticRebuild = corridor.RebuildAutomatic.ToString(), 13 MaximumTriangleLength = corridor.MaximumTriangleSideLength.ToString() 14 }; 15 16 _writer.WriteCorridorInfo(data); 17 18 foreach (Baseline baseline in corridor.Baselines) 19 { 20 WriteBaselineInfo(baseline); 21 } 22 23 foreach (CorridorSurface corridorSurface in corridor.CorridorSurfaces) 24 { 25 WriteCorridorSurfaceInfo(corridorSurface); 26 } 27 28 foreach (FeatureLineCodeInfo featureLine in corridor.FeatureLineCodeInfos) 29 { 30 WriteFeatureLineCodeInfo(featureLine); 31 } 32 33 foreach (CorridorSlopePattern pattern in corridor.SlopePatterns) 34 { 35 WriteCorridorSlopePattern(pattern); 36 } 37 38 _writer.CloseCorridorInfo(); 39}