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,
	string profileViewBandSetName,
	string alignmentName,
	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, _
	profileViewBandSetName As String, _
	alignmentName As String, _
	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, 
	String^ profileViewBandSetName, 
	String^ alignmentName, 
	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.
profileViewBandSetName
Type: System..::..String
Name of the profile view band set to import to profile view.
alignmentName
Type: System..::..String
Name of the alignment.
insertPosition
Type: Point3d
Position at which the ProfileView is inserted.

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.

Exceptions

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

See Also