ExportCorridorSolidsParamsExcludedCodes Property |
Gets or sets the excluded codes for shapes or links
If one of ExcludedCodes exists, the shape or link is excluded.
If one of ExcludedCodes contains multiple codes like "Top, Pave", it means only if these 2 codes both exist then the shape or link will be excluded.
Example 1
2using (Transaction tr = startTransaction())
3{
4 var exportParams = new ExportCorridorSolidsParams();
5 {
6
7 exportParams.IncludedCodes = new string[] { "Top, Datum"};
8
9 exportParams.ExcludedCodes = new string[] { "Daylight, Datum", "Ditch" };
10 exportParams.ExportShapes = true;
11 exportParams.ExportLinks = true;
12 exportParams.SweepSolidForShape = false;
13 exportParams.CreateSolidForShape = true;
14 };
15
16 Corridor corridor = corridorId.GetObject(OpenMode.ForRead) as Corridor;
17 ObjectIdCollection solids = corridor.Baselines[0].BaselineRegions[0].ExportSolids(exportParams, _database);
18 write($"\nExported {solids.Count} solids or bodies.");
19
20 tr.Commit();
21}
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic string[] ExcludedCodes { get; set; }
Public Property ExcludedCodes As String()
Get
Set
public:
property array<String^>^ ExcludedCodes {
array<String^>^ get ();
void set (array<String^>^ value);
}
Property Value
String
See Also