Gets the collection of OffsetBaseline objects associated with this BaselineRegion.

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

Syntax

C#
public OffsetBaselineCollection OffsetBaselines { get; }
Visual Basic
Public ReadOnly Property OffsetBaselines As OffsetBaselineCollection
	Get
Visual C++
public:
property OffsetBaselineCollection^ OffsetBaselines {
	OffsetBaselineCollection^ get ();
}

Examples

CopyC#
 1foreach (BaseBaseline ob in oBaselineRegion.OffsetBaselines)
 2{
 3    ed.WriteMessage("Offset baseline: \n");
 4    switch (ob.BaselineType)
 5    {
 6        case CorridorBaselineType.OffsetBaseline:
 7            OffsetBaseline offb = (OffsetBaseline)ob;
 8            ed.WriteMessage("Offset baseline, station {0} to {1}\n",
 9                offb.StartStationOnMainBaseline, offb.EndStationOnMainBaseline);
10            ed.WriteMessage(" is offset by: {0} horizontal and {1} vertical at start\n",
11                offb.GetOffsetElevationFromMainBaselineStation(offb.StartStationOnMainBaseline).X,
12                offb.GetOffsetElevationFromMainBaselineStation(offb.StartStationOnMainBaseline).Y);
13            ed.WriteMessage(" is offset by: {0} horizontal and {1} vertical at end\n",
14                offb.GetOffsetElevationFromMainBaselineStation(offb.EndStationOnMainBaseline).X,
15                offb.GetOffsetElevationFromMainBaselineStation(offb.EndStationOnMainBaseline).Y);
16            break;
17
18        case CorridorBaselineType.HardcodedOffsetBaseline:
19            HardcodedOffsetBaseline hob = (HardcodedOffsetBaseline)ob;
20            ed.WriteMessage("Hardcoded offset baseline {0} \n",
21                hob.Name);
22            ed.WriteMessage(" is offset by: {0} horizontal and {1} vertical\n",
23                hob.OffsetElevationFromMainBaseline.X,
24                hob.OffsetElevationFromMainBaseline.Y);
25            break;
26
27        default:
28            break;
29    }
30}

See Also