Creates a new instance of PressurePipeSectionLabel on a SectionPressurePipeNetwork 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 sectionViewId, ObjectId pipeId, ObjectId sectionNetworkId, int partIndex, double ratio, Vector3d direction, ObjectId labelStyleId, DimensionAnchorOptionType dimOpt, double dimVal )
VB
Public Shared Function Create ( sectionViewId As ObjectId, pipeId As ObjectId, sectionNetworkId As ObjectId, partIndex As Integer, ratio As Double, direction As Vector3d, labelStyleId As ObjectId, dimOpt As DimensionAnchorOptionType, dimVal As Double ) As ObjectId
C++
public: static ObjectId Create( ObjectId sectionViewId, ObjectId pipeId, ObjectId sectionNetworkId, int partIndex, double ratio, Vector3d direction, ObjectId labelStyleId, DimensionAnchorOptionType dimOpt, double dimVal )
Parameters
- sectionViewId ObjectId
- The ObjectId of the SectionView in which the label is located.
- pipeId ObjectId
- The ObjectId of Pressure Pipe that is one of the sources of a SectionPressurePipeNetwork.
- sectionNetworkId ObjectId
- The ObjectId of a SectionPressurePipeNetwork.
- partIndex Int32
- The zero-based index of a part in the SectionPressurePipeNetwork with the specified Pressure Pipe source.
- ratio Double
- The relative position of the PressurePipeSectionLabel to the Pressure Pipe.
- direction Vector3d
- The direction of the PressurePipeSectionLabel to the Pressure Pipe.
- labelStyleId ObjectId
- The style id of a PressurePipeSectionLabel style to use.
- dimOpt DimensionAnchorOptionType
- The dimension anchor option.
- dimVal Double
- The dimension anchor value.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException |
Thrown when:
|