ProfileViewCreateMultiple(ObjectId, Point3d, String, ObjectId, StackedProfileViewsCreationOptions, MultipleProfileViewsCreationOptions, SplitProfileViewCreationOptions, ProfileViewDatumType) Method

Creates multiple stacked split ProfileViews for an alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectIdCollection CreateMultiple(
	ObjectId alignmentId,
	Point3d insertPosition,
	string profileViewName,
	ObjectId profileViewBandSetId,
	StackedProfileViewsCreationOptions stackedOptions,
	MultipleProfileViewsCreationOptions multipleOptions,
	SplitProfileViewCreationOptions splitOptions,
	ProfileViewDatumType datumType
)

Parameters

alignmentId  ObjectId
The ObjectId of the alignment.
insertPosition  Point3d
The position at which the ProfileView is inserted.
profileViewName  String
The name template for the ProfileViews.
profileViewBandSetId  ObjectId
The ObjectId of the ProfileViewBandSet to import to the stacked ProfileViews.
stackedOptions  StackedProfileViewsCreationOptions
An object containing additional options for creating stacked ProfileViews.
multipleOptions  MultipleProfileViewsCreationOptions
An object containing additional options for creating multiple ProfileViews.
splitOptions  SplitProfileViewCreationOptions
An object containing additional options for creating split ProfileViews.
datumType  ProfileViewDatumType
Specifies profile view datum (location of profile lines).

Return Value

ObjectIdCollection
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The alignmentId is invalid.
  • The profileViewName is duplicated.
  • The profileViewBandSetId is invalid.
Example
C#
 1ObjectId alignmentId = CivilApplication.ActiveDocument.GetSitelessAlignmentIds()[0];
 2Point3d insertPosition = new Point3d(0, 0, 0);
 3string profileViewName = "Name of profile view";
 4ObjectId profileViewBandSetId = CivilApplication.ActiveDocument.Styles.ProfileViewBandSetStyles["Standard"];
 5
 6ObjectId topViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Top Stacked View"];
 7ObjectId middleViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Middle Stacked View"];
 8ObjectId bottomViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Bottom Stacked View"];
 9StackedProfileViewsCreationOptions stackedOptions = new StackedProfileViewsCreationOptions(topViewStyleId, middleViewStyleId, bottomViewStyleId);
10
11MultipleProfileViewsCreationOptions multipleOptions = new MultipleProfileViewsCreationOptions();
12
13ObjectId firstSplitViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["First View"];
14ObjectId intermediateSplitVIewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Intermediate View"];
15ObjectId lastSplitViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Last View"];
16double viewHeight = 100;
17SplitProfileViewCreationOptions splitOptions = new SplitProfileViewCreationOptions(viewHeight, firstSplitViewStyleId, intermediateSplitVIewStyleId, lastSplitViewStyleId);
18
19ProfileViewDatumType datumType = Autodesk.Civil.ProfileViewDatumType.MeanElevation;
20
21ObjectIdCollection profileViewIds = ProfileView.CreateMultiple(alignmentId, insertPosition, profileViewName, profileViewBandSetId, stackedOptions, multipleOptions, splitOptions, datumType);
See Also