ProfileViewCreate(CivilDocument, String, String, String, Point3d) Method

Note: This API is now obsolete.

Creates a profile view from the specified alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
[ObsoleteAttribute("Use Autodesk.Civil.DatabaseServices.ProfileView.Create(NAMESPACE_ACDB::ObjectId alignmentId, NAMESPACE_ACGE::Point3d insertPosition, System::String^ profileViewName, NAMESPACE_ACDB::ObjectId profileViewBandSetId, NAMESPACE_ACDB::ObjectId profileViewStyleId) instead.", 
	false)]
public static ObjectId Create(
	CivilDocument document,
	string profileViewName,
	string profileViewBandSetName,
	string alignmentName,
	Point3d insertPosition
)

Parameters

document  CivilDocument
Document object in which the ProfileView is created.
profileViewName  String
Name of the created ProfileView.
profileViewBandSetName  String
Name of the profile view band set to import to profile view.
alignmentName  String
Name of the alignment.
insertPosition  Point3d
Position at which the ProfileView is inserted.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when the profile view name is duplicated.
Remarks
We use the ProfileView feature settings to get the profileView style, profile labelset and other information, and put the profile view on the Layer "0" by default.
Example
C#
1CivilDocument document = CivilApplication.ActiveDocument;
2string profileViewName = "Name of profile view";
3string profileViewBandSetName = "Standard";
4string alignmentName = "Alignment1";
5Point3d insertPosition = new Point3d(0, 0, 0);
6
7ObjectId profileViewId = ProfileView.Create(document, profileViewName, profileViewBandSetName, alignmentName, insertPosition);
See Also