ProfileViewCreate(ObjectId, Point3d) Method

Creates a ProfileView from the specified alignment with the default ProfileView name and BandSetStyle.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	ObjectId alignmentId,
	Point3d insertPosition
)

Parameters

alignmentId  ObjectId
The ObjectId of the alignment.
insertPosition  Point3d
The position at which the ProfileView is inserted.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when the alignmentId is invalid.
Example
C#
1ObjectId alignmentId = CivilApplication.ActiveDocument.GetSitelessAlignmentIds()[0];
2Point3d insertPosition = new Point3d(0, 0, 0);
3
4ObjectId profileViewId = ProfileView.Create(alignmentId, insertPosition);
See Also