ParcelSegmentLabel.Create(ObjectId, Double) Method

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.8.0.1516

Syntax

C#

public static ObjectId Create(
	ObjectId featureId,
	double ratio
)

VB

Public Shared Function Create ( 
	featureId As ObjectId,
	ratio As Double
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectId featureId, 
	double ratio
)

Parameters

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

Return Value

ObjectId

Exceptions

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

Remarks

See Also

Reference

ParcelSegmentLabel Class
Create Overload
Autodesk.Civil.DatabaseServices Namespace