CorridorCodeSetStyleName Property

Gets or sets the style name of the corridor's code set.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public string CodeSetStyleName { get; set; }

Property Value

String
Exceptions
ExceptionCondition
ArgumentExceptionAn ArgumentException is raised if the specified name does not match an existing Code Set Style in the drawing.
Remarks

The specified style name must be an existing Code Set Style in the drawing, which points to an instance of CodeSetStyle.

Example
C#
 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}
See Also