Creates a profile view from the specified alignment.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
[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,
	ObjectId profileViewBandSetId,
	ObjectId alignmentId,
	Point3d insertPosition
)
Visual Basic
<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 Shared Function Create ( _
	document As CivilDocument, _
	profileViewName As String, _
	profileViewBandSetId As ObjectId, _
	alignmentId As ObjectId, _
	insertPosition As Point3d _
) As ObjectId
Visual C++
[ObsoleteAttribute(L"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, 
	ObjectId profileViewBandSetId, 
	ObjectId alignmentId, 
	Point3d insertPosition
)

Parameters

document
Type: Autodesk.Civil.ApplicationServices..::..CivilDocument
Document object in which the ProfileView is created.
profileViewName
Type: System..::..String
Name of the created ProfileView.
profileViewBandSetId
Type: ObjectId
Object id of the profile view band set to import to profile view.
alignmentId
Type: ObjectId
Object id of the alignment.
insertPosition
Type: Point3d
Position at which the ProfileView is inserted.

Remarks

The ProfileView feature settings are used to get the profileView style, profile labelset and other information, and the profile view is created on the Layer "0" by default.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the profile view name is duplicated.

See Also