Creates multiple stacked split ProfileViews for an alignment with the default ProfileViewBandSet.
public static ObjectIdCollection CreateMultiple( ObjectId alignmentId, Point3d insertPosition, StackedProfileViewsCreationOptions stackedOptions, MultipleProfileViewsCreationOptions multipleOptions, SplitProfileViewCreationOptions splitOptions, ProfileViewDatumType datumType )
Public Shared Function CreateMultiple ( alignmentId As ObjectId, insertPosition As Point3d, stackedOptions As StackedProfileViewsCreationOptions, multipleOptions As MultipleProfileViewsCreationOptions, splitOptions As SplitProfileViewCreationOptions, datumType As ProfileViewDatumType ) As ObjectIdCollection
public: static ObjectIdCollection^ CreateMultiple( ObjectId alignmentId, Point3d insertPosition, StackedProfileViewsCreationOptions^ stackedOptions, MultipleProfileViewsCreationOptions^ multipleOptions, SplitProfileViewCreationOptions^ splitOptions, ProfileViewDatumType datumType )
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the alignmentId is invalid. |
1ObjectId alignmentId = CivilApplication.ActiveDocument.GetSitelessAlignmentIds()[0]; 2Point3d insertPosition = new Point3d(0, 0, 0); 3 4ObjectId topViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Top Stacked View"]; 5ObjectId middleViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Middle Stacked View"]; 6ObjectId bottomViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Bottom Stacked View"]; 7StackedProfileViewsCreationOptions stackedOptions = new StackedProfileViewsCreationOptions(topViewStyleId, middleViewStyleId, bottomViewStyleId); 8 9MultipleProfileViewsCreationOptions multipleOptions = new MultipleProfileViewsCreationOptions(); 10 11ObjectId firstSplitViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["First View"]; 12ObjectId intermediateSplitVIewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Intermediate View"]; 13ObjectId lastSplitViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Last View"]; 14double viewHeight = 100; 15SplitProfileViewCreationOptions splitOptions = new SplitProfileViewCreationOptions(viewHeight, firstSplitViewStyleId, intermediateSplitVIewStyleId, lastSplitViewStyleId); 16 17ProfileViewDatumType datumType = Autodesk.Civil.ProfileViewDatumType.MeanElevation; 18 19ObjectIdCollection profileViewIds = ProfileView.CreateMultiple(alignmentId, insertPosition, stackedOptions, multipleOptions, splitOptions, datumType);