Creates a new instance of an SurfaceContourLabelGroup and adds it to the specified surface.

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

Syntax

C#
public static ObjectId Create(
	ObjectId surfaceId,
	Point2dCollection labelLinePoints,
	ObjectId majorContourlabelStyleId,
	ObjectId minorContourlabelStyleId,
	ObjectId userContourlabelStyleId
)
Visual Basic
Public Shared Function Create ( _
	surfaceId As ObjectId, _
	labelLinePoints As Point2dCollection, _
	majorContourlabelStyleId As ObjectId, _
	minorContourlabelStyleId As ObjectId, _
	userContourlabelStyleId As ObjectId _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId surfaceId, 
	Point2dCollection^ labelLinePoints, 
	ObjectId majorContourlabelStyleId, 
	ObjectId minorContourlabelStyleId, 
	ObjectId userContourlabelStyleId
)

Parameters

surfaceId
Type: ObjectId
The ObjectId of surface to which the label is attached.
labelLinePoints
Type: Point2dCollection
The place where the label is located.
majorContourlabelStyleId
Type: ObjectId
The object id of label style for the major contour label.
minorContourlabelStyleId
Type: ObjectId
The object id of label style for the minor contour label.
userContourlabelStyleId
Type: ObjectId
The object id of label style for the user contour label.

Remarks

There are at least 2 points to compose the label line.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when:
  1. The labelStyleId is not a valid label style of type: LabelStyleType::SurfaceContour.
  2. The surfaceId is invalid.
  3. The count of points is less than 2.

See Also