CrossingPressurePipeProfileLabelCreate Method |
Creates a new instance of a CrossingPressurePipeProfileLabel on the specified ProfileViewPart with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccPressurePipesMgd (in AeccPressurePipesMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectIdCollection Create(
ObjectId profileViewPartId,
ObjectId profileViewId,
double ratio,
ObjectId labelStyleId
)
Public Shared Function Create (
profileViewPartId As ObjectId,
profileViewId As ObjectId,
ratio As Double,
labelStyleId As ObjectId
) As ObjectIdCollection
public:
static ObjectIdCollection^ Create(
ObjectId profileViewPartId,
ObjectId profileViewId,
double ratio,
ObjectId labelStyleId
)
Parameters
- profileViewPartId ObjectId
- The ObjectId of a ProfileViewPart on which the label is located.
- profileViewId ObjectId
- The ObjectId of the ProfileView in which the label is located.
- ratio Double
- The relative position of the label to the ProfileViewPart.
- labelStyleId ObjectId
- The ObjectId of a PipeProfileLabel style to use.
Return Value
ObjectIdCollection
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The profileViewPartId, profileViewId or labelStyleId is invalid.
- The pipeProfile is not in the profileView.
- The ratio is out of range.
|
Remarks
The ratio should be in the range [0, 1].
See Also