Creates a new instance of ProfileViewDepthLabel on the profile view with the specified 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 labelStyleId,
	Point2d startPoint,
	Point2d endPoint
)
Visual Basic
Public Shared Function Create ( _
	profileViewId As ObjectId, _
	labelStyleId As ObjectId, _
	startPoint As Point2d, _
	endPoint As Point2d _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId profileViewId, 
	ObjectId labelStyleId, 
	Point2d startPoint, 
	Point2d endPoint
)

Parameters

profileViewId
Type: ObjectId
The ObjectId of profile view in which the label is located.
labelStyleId
Type: ObjectId
The ObjectId of ProfileViewDepthLabel style.
startPoint
Type: Point2d
The start point at which to insert ProfileViewDepthLabel.
endPoint
Type: Point2d
The end point at which to insert ProfileViewDepthLabel.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The profileViewId or labelStyleId is invalid.
  2. The startPoint and the endPoint are the same.

See Also