Creates a new instance of PressureAppurtenanceSectionLabel on a SectionPressurePipeNetwork with the default label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.4.208.0
Syntax
C#
public static ObjectId Create( ObjectId sectionViewId, ObjectId appurtenanceId, ObjectId sectionNetworkId, int partIndex, double ratio, Vector3d direction, DimensionAnchorOptionType dimOpt, double dimVal )
Visual Basic
Public Shared Function Create ( _ sectionViewId As ObjectId, _ appurtenanceId As ObjectId, _ sectionNetworkId As ObjectId, _ partIndex As Integer, _ ratio As Double, _ direction As Vector3d, _ dimOpt As DimensionAnchorOptionType, _ dimVal As Double _ ) As ObjectId
Visual C++
public: static ObjectId Create( ObjectId sectionViewId, ObjectId appurtenanceId, ObjectId sectionNetworkId, int partIndex, double ratio, Vector3d direction, DimensionAnchorOptionType dimOpt, double dimVal )
Parameters
- sectionViewId
- Type: ObjectId
The ObjectId of the SectionView in which the label is located.
- appurtenanceId
- Type: ObjectId
The ObjectId of PressureAppurtenance that is one of the sources of a SectionPressurePipeNetwork.
- sectionNetworkId
- Type: ObjectId
The ObjectId of a SectionPressurePipeNetwork.
- partIndex
- Type: System.Int32
The zero-based index of a part in the SectionPressurePipeNetwork with the specified PressureAppurtenance source.
- ratio
- Type: System.Double
The relative position of the PressureAppurtenanceSectionLabel to the PressureAppurtenance.
- direction
- Type: Vector3d
The direction of the PressureAppurtenanceSectionLabel to the PressureAppurtenance.
- dimOpt
- Type: Autodesk.Civil.DimensionAnchorOptionType
The dimension anchor option.
- dimVal
- Type: System.Double
The dimension anchor value.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|