Create Method (ObjectId, ObjectId, Double, ObjectId)

Creates a new instance of a PipeProfileLabel on the specified ProfileViewPart with the specified label style.

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

Syntax

C#

public static ObjectId Create(
	ObjectId profileViewPartId,
	ObjectId profileViewId,
	double ratio,
	ObjectId labelStyleId
)

Visual Basic

Public Shared Function Create ( _
	profileViewPartId As ObjectId, _
	profileViewId As ObjectId, _
	ratio As Double, _
	labelStyleId As ObjectId _
) As ObjectId

Visual C++

public:
static ObjectId Create(
	ObjectId profileViewPartId, 
	ObjectId profileViewId, 
	double ratio, 
	ObjectId labelStyleId
)

Parameters

profileViewPartId
Type: ObjectId
The ObjectId of a ProfileViewPart on which the label is located.
profileViewId
Type: ObjectId
The ObjectId of the ProfileView in which the label is located.
ratio
Type: System.Double
The relative position of the label to the ProfileViewPart.
labelStyleId
Type: ObjectId
The ObjectId of a PipeProfileLabel style to use.

Remarks

The ratio should be in the range [0, 1].

Exceptions

ExceptionCondition
System.ArgumentException Thrown when:
  • The profileViewPartId, profileViewId or labelStyleId is invalid.
  • The pipeProfile is not in the profileView.
  • The ratio is out of range.

See Also