Add a SectionViewGroup which will create multiple SectionViews within specified station range in Alignment.
public SectionViewGroup Add( Point3d insertPosition, double startStation, double endStation, SectionViewGroupCreationRangeOptions rangeOptions, SectionViewGroupCreationPlacementOptions placementOptions, SectionDisplayOptionCollection sectionDisplayOptions, ObjectId sectionViewStyleId, ObjectId sectionViewBandSetStyleId )
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
public: SectionViewGroup^ Add( Point3d insertPosition, double startStation, double endStation, SectionViewGroupCreationRangeOptions^ rangeOptions, SectionViewGroupCreationPlacementOptions^ placementOptions, SectionDisplayOptionCollection^ sectionDisplayOptions, ObjectId sectionViewStyleId, ObjectId sectionViewBandSetStyleId )
| Exception | Condition |
|---|---|
| [!:System.ArgumentException] |
Thrown when: One param is invalid.
|
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"]);