Share

ProfileView.Create(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.280

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
)

VB

<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

C++

public:
[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)]
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

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

Reference

Was this information helpful?