Share

SurfaceContourLabelGroup.Create(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.7.0.1276

Syntax

C#

public static ObjectId Create(
	ObjectId surfaceId,
	Point2dCollection labelLinePoints,
	ObjectId majorContourlabelStyleId,
	ObjectId minorContourlabelStyleId,
	ObjectId userContourlabelStyleId
)

VB

Public Shared Function Create ( 
	surfaceId As ObjectId,
	labelLinePoints As Point2dCollection,
	majorContourlabelStyleId As ObjectId,
	minorContourlabelStyleId As ObjectId,
	userContourlabelStyleId As ObjectId
) As ObjectId

C++

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

Reference

Was this information helpful?