ParcelSegmentLabelCreate(ObjectId, Double, ObjectId, ObjectId) Method |
Creates a new instance of a ParcelSegmentLabel on a feature object with the specified line label and curve label styles.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
ObjectId featureId,
double ratio,
ObjectId lineLabelStyleId,
ObjectId curveLabelStyleId
)
Public Shared Function Create (
featureId As ObjectId,
ratio As Double,
lineLabelStyleId As ObjectId,
curveLabelStyleId As ObjectId
) As ObjectId
public:
static ObjectId Create(
ObjectId featureId,
double ratio,
ObjectId lineLabelStyleId,
ObjectId curveLabelStyleId
)
Parameters
- featureId ObjectId
- The ObjectId of the ParcelSegment object.
- ratio Double
- The ratio that sets the relative position of the label to the feature.
- lineLabelStyleId ObjectId
- The ObjectId of the line Label style (object type LabelStyle) to use.
- curveLabelStyleId ObjectId
- The ObjectId of the curve Label style (object type LabelStyle) to use.
Return Value
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when:
- The featureId, lineLabelStyleId or curveLabelStyleId parameter is invalid.
- The ratio is out of range.
|
Remarks- featureId should be the ObjectId of a ParcelSegment.
- The ratio should be in the range [0, n], where n is the number of segments in the object.
See Also