Creates a new instance of a StructureProfileLabel on the center of a ProfileViewPart using the default label style.

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

Syntax

C#
public static ObjectId Create(
	ObjectId profileViewId,
	ObjectId profileViewPartId
)
Visual Basic
Public Shared Function Create ( _
	profileViewId As ObjectId, _
	profileViewPartId As ObjectId _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId profileViewId, 
	ObjectId profileViewPartId
)

Parameters

profileViewId
Type: ObjectId
The ObjectId of the ProfileView in which the label is located.
profileViewPartId
Type: ObjectId
The ObjectId of the ProfileViewPart in which the label is located.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  • The profileViewPartId or profileViewId is invalid.
  • The StructureProfile is not in the ProfileView.

See Also