Creates a new instance of an SurfaceContourLabelGroup and adds it to the specified surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: 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
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when:
- The labelStyleId is not a valid label style of type: LabelStyleType::SurfaceContour.
- The surfaceId is invalid.
- The count of points is less than 2.
|
See Also