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.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic 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
)
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
ExceptionsException | Condition |
---|
[!:System.ArgumentException] |
Thrown when: One param is invalid.
- startStation is less than start station of Alignment or larger than endStation.
- endStation is larger than end station of Alignment or less than startStation.
|
Example
This example shows how to call this method with param graphOverrideDatas.
1SectionDisplayOptionCollection displayOptions = new SectionDisplayOptionCollection(sampleLineGroupOid);
2
3displayOptions[0].UseOverrideStyle = true;
4displayOptions[0].OverrideStyleId = doc.Styles.CodeSetStyles[@"Codes With Labels"];
5displayOptions[0].LabelSetId = doc.Styles.LabelSetStyles.SectionLabelSetStyles[@"Standard"];
6
7displayOptions.ClipGridAt = displayOptions[2].SourceName;
8
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