Creates stacked ProfileViews from the specified alignment.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectIdCollection Create( ObjectId alignmentId, Point3d insertPosition, string profileViewName, ObjectId profileViewBandSetId, StackedProfileViewsCreationOptions stackedOptions )
VB
Public Shared Function Create ( alignmentId As ObjectId, insertPosition As Point3d, profileViewName As String, profileViewBandSetId As ObjectId, stackedOptions As StackedProfileViewsCreationOptions ) As ObjectIdCollection
C++
public: static ObjectIdCollection^ Create( ObjectId alignmentId, Point3d insertPosition, String^ profileViewName, ObjectId profileViewBandSetId, StackedProfileViewsCreationOptions^ stackedOptions )
Parameters
- alignmentId ObjectId
- The ObjectId of the alignment.
- insertPosition Point3d
- The position at which the ProfileView is inserted.
- profileViewName String
- The name of the stacked ProfileViews.
- profileViewBandSetId ObjectId
- The ObjectId of the ProfileViewBandSet to import to stacked ProfileViews.
- stackedOptions StackedProfileViewsCreationOptions
- An object containing additional options for creating the stacked profileViews.
Return Value
ObjectIdCollectionExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|
Example
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 11ObjectIdCollection profileViewIds = ProfileView.Create(alignmentId, insertPosition, profileViewName, profileViewBandSetId, stackedOptions);