Creates a new instance of a CrossingPressurePipeProfileLabel on the specified ProfileViewPart with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.4.208.0
Syntax
C#
public static ObjectIdCollection 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 ObjectIdCollection
Visual C++
public: static ObjectIdCollection^ 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
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|