ProfileViewCreate(CivilDocument, String, String, String, Point3d) Method |
Note: This API is now obsolete.
Creates a profile view from the specified alignment.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.6.1987.0
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
)<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 ObjectIdpublic:
[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| Exception | Condition |
|---|
| 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.
See Also