Add a SectionViewGroup which will create multiple SectionViews within specified station range in Alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public SectionViewGroup Add( Point3d insertPosition, double startStation, double endStation, SectionViewGroupCreationRangeOptions rangeOptions, SectionViewGroupCreationPlacementOptions placementOptions, SectionDisplayOptionCollection sectionDisplayOptions, ObjectId sectionViewStyleId, ObjectId sectionViewBandSetStyleId ) |
Visual Basic |
---|
Public Function Add ( _ insertPosition As Point3d, _ startStation As Double, _ endStation As Double, _ rangeOptions As SectionViewGroupCreationRangeOptions, _ placementOptions As SectionViewGroupCreationPlacementOptions, _ sectionDisplayOptions As SectionDisplayOptionCollection, _ sectionViewStyleId As ObjectId, _ sectionViewBandSetStyleId As ObjectId _ ) As SectionViewGroup |
Visual C++ |
---|
public: SectionViewGroup^ Add( Point3d insertPosition, double startStation, double endStation, SectionViewGroupCreationRangeOptions^ rangeOptions, SectionViewGroupCreationPlacementOptions^ placementOptions, SectionDisplayOptionCollection^ sectionDisplayOptions, ObjectId sectionViewStyleId, ObjectId sectionViewBandSetStyleId ) |
Parameters
- insertPosition
- Type: Point3d
The position at which the SectionView is inserted.
- startStation
- Type: System..::..Double
The user specified start station on Alignment.
- endStation
- Type: System..::..Double
The user specified end station on Alignment.
- rangeOptions
- Type: Autodesk.Civil.DatabaseServices..::..SectionViewGroupCreationRangeOptions
The user specified range options to determine the offset and elevation.
- placementOptions
- Type: Autodesk.Civil.DatabaseServices..::..SectionViewGroupCreationPlacementOptions
The options to control the placement of the SectionViews in model space.
- sectionDisplayOptions
- Type: Autodesk.Civil.DatabaseServices..::..SectionDisplayOptionCollection
Display options for each section source.
- sectionViewStyleId
- Type: ObjectId
The SectionView style on each SectionView.
- sectionViewBandSetStyleId
- Type: ObjectId
The SectionView BandSet style id for each SectionView. If passing ObjectId.Null, there's no band on section views.
Examples
This example shows how to call this method with param graphOverrideDatas.
CopyC#

1SectionDisplayOptionCollection displayOptions = new SectionDisplayOptionCollection(sampleLineGroupOid); 2// Set corridor section options which index is 0. 3displayOptions[0].UseOverrideStyle = true; 4displayOptions[0].OverrideStyleId = doc.Styles.CodeSetStyles[@"Codes With Labels"]; 5displayOptions[0].LabelSetId = doc.Styles.LabelSetStyles.SectionLabelSetStyles[@"Standard"]; 6// Set corridor surface section options which index is 2. 7displayOptions.ClipGridAt = displayOptions[2].SourceName; 8// Note: section option Style is not set by SectionDisplayOption, but it can be set by property SectionSource.StyleId. 9 10SectionViewGroup sectionViewGroup = sectionViewGroupCollection.Add(new Point3d(0, 0, 0.0), 0.0, 1729.048573, 11 new SectionViewGroupCreationRangeOptions(sampleLineGroupOid), new SectionViewGroupCreationPlacementOptions(), 12 displayOptions, doc.Styles.SectionViewStyles["Standard"], doc.Styles.SectionViewBandSetStyles["Standard"]);
Exceptions
Exception | Condition |
---|---|
[!:System.ArgumentException] |
Thrown when: One param is invalid.
|