PressureFittingProfileLabelCreate Method

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

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	ObjectId profileViewPartId,
	ObjectId profileViewId,
	double ratio,
	Vector3d direction,
	ObjectId labelStyleId
)

Parameters

profileViewPartId  ObjectId
The ObjectId of a ProfileViewPart on which the label is located.
profileViewId  ObjectId
The ObjectId of the ProfileView in which the label is located.
ratio  Double
The relative position of the label to the ProfileViewPart.
direction  Vector3d
The direction of the label to the ProfileViewPart.
labelStyleId  ObjectId
The ObjectId of a FittingLabelStyle to use.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The profileViewPartId, profileViewId or labelStyleId is invalid.
  • The ProfileViewPart is not a Pressure Fitting.
  • The ProfileViewPart is not in the ProfileView.
  • The ratio is out of range.
Remarks
The ratio should be in the range [0, 1].
See Also