Gets or sets the corridor's region lock mode.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public CorridorRegionLockType RegionLockMode { get; set; } |
Visual Basic |
---|
Public Property RegionLockMode As CorridorRegionLockType Get Set |
Visual C++ |
---|
public: property CorridorRegionLockType RegionLockMode { CorridorRegionLockType get (); void set (CorridorRegionLockType value); } |
Remarks
There are two lock modes supported by the corridor regions:
The Geometry lock mode locks the regions to a specified point of the baseline geometry. Resizing the baseline (or underlying alignment) does not change the start and end locations of the region.
The Station lock mode locks the regions to the specified start and end stations. If the geometry changes, changing the station values, the region will change with them.
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}