Creates a new instance of a ParcelSegmentLabel at a specified location on a feature object with the default line label style and curve label style.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public static ObjectId Create(
	ObjectId featureId,
	double ratio
)
Visual Basic
Public Shared Function Create ( _
	featureId As ObjectId, _
	ratio As Double _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId featureId, 
	double ratio
)

Parameters

featureId
Type: ObjectId
The ObjectId of the feature object to label.
ratio
Type: System..::..Double
The ratio that sets the relative position of the label to the feature.

Remarks

  • featureId should be the ObjectId of a ParcelSegment.
  • The ratio should be in the range of [0, n], where n is the number of segments.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  • The featureId, lineLabelStyleId or curveLabelStyleId parameter is invalid.
  • The ratio is out of range.

See Also