Creates a pressure appurtenance label specified by appurtenance id and style id.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId Create( ObjectId appurtenanceId, ObjectId styleId, double ratio, Vector3d direction )
VB
Public Shared Function Create ( appurtenanceId As ObjectId, styleId As ObjectId, ratio As Double, direction As Vector3d ) As ObjectId
C++
public: static ObjectId Create( ObjectId appurtenanceId, ObjectId styleId, double ratio, Vector3d direction )
Parameters
- appurtenanceId ObjectId
- The appurtenance id.
- styleId ObjectId
- The style id of the new pressure appurtenance Label.
- ratio Double
- The relative position of the label to the pressure appurtenance.
- direction Vector3d
- The direction of the label to the pressure appurtenance.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
[!:System.ArgumentException] | Thrown when the input string: 1. The appurtenance id is not exist. 2. The style id is not exist. 3. The ratio is an invalid value. |