PressureFittingSectionLabelCreate(ObjectId, ObjectId, ObjectId, Int32, Double, Vector3d, DimensionAnchorOptionType, Double) Method

Creates a new instance of PressureFittingSectionLabel on a SectionPressurePipeNetwork with the default label style.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	ObjectId sectionViewId,
	ObjectId fittingId,
	ObjectId sectionNetworkId,
	int partIndex,
	double ratio,
	Vector3d direction,
	DimensionAnchorOptionType dimOpt,
	double dimVal
)

Parameters

sectionViewId  ObjectId
The ObjectId of the SectionView in which the label is located.
fittingId  ObjectId
The ObjectId of PressureFitting 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 PressureFitting source.
ratio  Double
The relative position of the PressureFittingSectionLabel to the PressureFitting.
direction  Vector3d
The direction of the PressureFittingSectionLabel to the PressureFitting.
dimOpt  DimensionAnchorOptionType
The dimension anchor option.
dimVal  Double
The dimension anchor value.

Return Value

ObjectId
Exceptions
ExceptionCondition
ArgumentException Thrown when:
  • The sectionViewId, fittingId or sectionNetworkId is invalid.
  • The SectionPressurePipeNetwork is not in the SectionView.
  • The PressureFitting is not the source of the SectionPressurePipeNetwork.
  • The partIndex is out of range.
  • The ratio is an invalid value.
See Also