Creates a new instance of an SurfaceContourLabelGroup and adds it to the specified surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.3.1717.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
Exception | Condition |
---|---|
System.ArgumentException |
Thrown when:
|