PressureAppurtenanceSectionLabelCreate(ObjectId, ObjectId, ObjectId, Int32, Double, Vector3d, ObjectId, DimensionAnchorOptionType, Double) Method |
Creates a new instance of PressureAppurtenanceSectionLabel on a SectionPressurePipeNetwork with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
ObjectId sectionViewId,
ObjectId appurtenanceId,
ObjectId sectionNetworkId,
int partIndex,
double ratio,
Vector3d direction,
ObjectId labelStyleId,
DimensionAnchorOptionType dimOpt,
double dimVal
)
Public Shared Function Create (
sectionViewId As ObjectId,
appurtenanceId 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
public:
static ObjectId Create(
ObjectId sectionViewId,
ObjectId appurtenanceId,
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.
- appurtenanceId ObjectId
- The ObjectId of PressureAppurtenance 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 PressureAppurtenance source.
- ratio Double
- The relative position of the PressureAppurtenanceSectionLabel to the PressureAppurtenance.
- direction Vector3d
- The direction of the PressureAppurtenanceSectionLabel to the PressureAppurtenance.
- labelStyleId ObjectId
- The style id of a PressureAppurtenanceSectionLabel style to use.
- dimOpt DimensionAnchorOptionType
- The dimension anchor option.
- dimVal Double
- The dimension anchor value.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The sectionViewId, appurtenanceId, sectionNetworkId or labelStyleId is invalid.
- The SectionPressurePipeNetwork is not in the SectionView.
- The PressureAppurtenance is not the source of the SectionPressurePipeNetwork.
- The partIndex is out of range.
- The ratio is an invalid value.
|
See Also