Creates a ProfileView from the specified alignment with the default ProfileView name and BandSetStyle.
public static ObjectId Create( ObjectId alignmentId, Point3d insertPosition )
Public Shared Function Create ( alignmentId As ObjectId, insertPosition As Point3d ) As ObjectId
public: static ObjectId Create( ObjectId alignmentId, Point3d insertPosition )
| Exception | Condition |
|---|---|
| ArgumentException | Thrown when the alignmentId is invalid. |
1ObjectId alignmentId = CivilApplication.ActiveDocument.GetSitelessAlignmentIds()[0]; 2Point3d insertPosition = new Point3d(0, 0, 0); 3 4ObjectId profileViewId = ProfileView.Create(alignmentId, insertPosition);