SectionViewGroupCollectionAdd(Point3d, Double, Double, SectionViewGroupCreationRangeOptions, SectionViewGroupCreationPlacementOptions, SectionDisplayOptionCollection, ObjectId, ObjectId) Method

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.292
Syntax
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

SectionViewGroup
Exceptions
ExceptionCondition
[!:System.ArgumentException] Thrown when: One param is invalid.
  1. startStation is less than start station of Alignment or larger than endStation.
  2. endStation is larger than end station of Alignment or less than startStation.
Example
This example shows how to call this method with param graphOverrideDatas.
C#
 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"]);
See Also