Creates a new instance of a PressureAppurtenanceProfileLabel on the specified ProfileViewPart with the specified label style.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId Create( ObjectId profileViewPartId, ObjectId profileViewId, double ratio, Vector3d direction, ObjectId labelStyleId )
VB
Public Shared Function Create ( profileViewPartId As ObjectId, profileViewId As ObjectId, ratio As Double, direction As Vector3d, labelStyleId As ObjectId ) As ObjectId
C++
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 AppurtenanceLabelStyle to use.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|
ArgumentOutOfRangeException | Thrown when the ratio is out of range. |