Share

ProfileViewDepthLabel.Create Method

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.8.0.280

Syntax

C#

public static ObjectId Create(
	ObjectId profileViewId,
	ObjectId labelStyleId,
	Point2d startPoint,
	Point2d endPoint
)

VB

Public Shared Function Create ( 
	profileViewId As ObjectId,
	labelStyleId As ObjectId,
	startPoint As Point2d,
	endPoint As Point2d
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectId profileViewId, 
	ObjectId labelStyleId, 
	Point2d startPoint, 
	Point2d endPoint
)

Parameters

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

Return Value

ObjectId

Exceptions

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

See Also

Reference

Was this information helpful?