Add a SectionViewGroup which will create multiple SectionViews within specified station range in Alignment.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public SectionViewGroup Add( Point3d insertPosition, double startStation, double endStation, SectionViewGroupCreationRangeOptions rangeOptions, SectionViewGroupCreationPlacementOptions placementOptions, SectionDisplayOptionCollection sectionDisplayOptions, ObjectId sectionViewStyleId, ObjectId sectionViewBandSetStyleId )
VB
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
C++
public: SectionViewGroup^ Add( Point3d insertPosition, double startStation, double endStation, SectionViewGroupCreationRangeOptions^ rangeOptions, SectionViewGroupCreationPlacementOptions^ placementOptions, SectionDisplayOptionCollection^ sectionDisplayOptions, ObjectId sectionViewStyleId, ObjectId sectionViewBandSetStyleId )
Parameters
- insertPosition Point3d
- The position at which the SectionView is inserted.
- startStation Double
- The user specified start station on Alignment.
- endStation Double
- The user specified end station on Alignment.
- rangeOptions SectionViewGroupCreationRangeOptions
- The user specified range options to determine the offset and elevation.
- placementOptions SectionViewGroupCreationPlacementOptions
- The options to control the placement of the SectionViews in model space.
- sectionDisplayOptions SectionDisplayOptionCollection
- Display options for each section source.
- sectionViewStyleId ObjectId
- The SectionView style on each SectionView.
- sectionViewBandSetStyleId ObjectId
- The SectionView BandSet style id for each SectionView. If passing ObjectId.Null, there's no band on section views.
Return Value
SectionViewGroupExceptions
Exception | Condition |
---|---|
[!:System.ArgumentException] |
Thrown when: One param is invalid.
|
Example
This example shows how to call this method with param graphOverrideDatas.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"]);