SurfaceContourLabelGroupCreate(ObjectId, Point2dCollection, ObjectId, ObjectId, ObjectId) Method

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.8.0.292
Syntax
public static ObjectId Create(
	ObjectId surfaceId,
	Point2dCollection labelLinePoints,
	ObjectId majorContourlabelStyleId,
	ObjectId minorContourlabelStyleId,
	ObjectId userContourlabelStyleId
)

Parameters

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

Return Value

ObjectId
Exceptions
ExceptionCondition
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.
Remarks
There are at least 2 points to compose the label line.
See Also