Creates a new instance of a PressureAppurtenanceProfileLabel on the specified ProfileViewPart with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId Create(
ObjectId profileViewPartId,
ObjectId profileViewId,
double ratio,
Vector3d direction,
ObjectId labelStyleId
) |
Visual Basic |
---|
Public Shared Function Create ( _
profileViewPartId As ObjectId, _
profileViewId As ObjectId, _
ratio As Double, _
direction As Vector3d, _
labelStyleId As ObjectId _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId Create(
ObjectId profileViewPartId,
ObjectId profileViewId,
double ratio,
Vector3d direction,
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.
- direction
- Type: Vector3d
The direction of the label to the ProfileViewPart.
- labelStyleId
- Type: ObjectId
The ObjectId of a AppurtenanceLabelStyle to use.
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The profileViewPartId, profileViewId or labelStyleId is invalid.
- The ProfileViewPart is not a Pressure Appurtenance.
- The ProfileViewPart is not in the ProfileView.
- The profileViewPartId, profileViewId and labelStyleId are not in the same database.
|
System..::..ArgumentOutOfRangeException |
Thrown when the ratio is out of range.
|
See Also