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.4.2516.0

Syntax

C#
public static ObjectId Create(
	ObjectId sectionViewId,
	ObjectId pipeId,
	ObjectId sectionNetworkId,
	int partIndex,
	double ratio,
	Vector3d direction,
	ObjectId labelStyleId,
	DimensionAnchorOptionType dimOpt,
	double dimVal
)
Visual Basic
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
Visual 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
Type: ObjectId
The ObjectId of the SectionView in which the label is located.
pipeId
Type: ObjectId
The ObjectId of Pressure Pipe 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 Pressure Pipe source.
ratio
Type: System..::..Double
The relative position of the PressurePipeSectionLabel to the Pressure Pipe.
direction
Type: Vector3d
The direction of the PressurePipeSectionLabel to the Pressure Pipe.
labelStyleId
Type: ObjectId
The style id of a PressurePipeSectionLabel style to use.
dimOpt
Type: Autodesk.Civil..::..DimensionAnchorOptionType
The dimension anchor option.
dimVal
Type: System..::..Double
The dimension anchor value.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  • The sectionViewId, pipeId, sectionNetworkId or labelStyleId is invalid.
  • The SectionPressurePipeNetwork is not in the SectionView.
  • The Pressure Pipe is not the source of the SectionPressurePipeNetwork.
  • The partIndex is out of range.
  • The ratio is an invalid value.

See Also