Creates a ProfileView from the specified alignment.
public static ObjectId Create( ObjectId alignmentId, Point3d insertPosition, string profileViewName, ObjectId profileViewBandSetId, ObjectId profileViewStyleId )
Public Shared Function Create ( alignmentId As ObjectId, insertPosition As Point3d, profileViewName As String, profileViewBandSetId As ObjectId, profileViewStyleId As ObjectId ) As ObjectId
public: static ObjectId Create( ObjectId alignmentId, Point3d insertPosition, String^ profileViewName, ObjectId profileViewBandSetId, ObjectId profileViewStyleId )
| Exception | Condition |
|---|---|
| ArgumentException |
Thrown when:
|
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"]; 5ObjectId profileViewStyleId = CivilApplication.ActiveDocument.Styles.ProfileViewStyles["Standard"]; 6 7ObjectId profileViewId = ProfileView.Create(alignmentId, insertPosition, profileViewName, profileViewBandSetId, profileViewStyleId);