SurfaceContourLabelGroupCreate(ObjectId, Point2dCollection, ObjectId, ObjectId, ObjectId) Method |
Creates a new instance of an SurfaceContourLabelGroup and adds it to the specified surface.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntaxpublic static ObjectId Create(
ObjectId surfaceId,
Point2dCollection labelLinePoints,
ObjectId majorContourlabelStyleId,
ObjectId minorContourlabelStyleId,
ObjectId userContourlabelStyleId
)
Public Shared Function Create (
surfaceId As ObjectId,
labelLinePoints As Point2dCollection,
majorContourlabelStyleId As ObjectId,
minorContourlabelStyleId As ObjectId,
userContourlabelStyleId As ObjectId
) As ObjectId
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
ExceptionsException | Condition |
---|
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.
|
Remarks
There are at least 2 points to compose the label line.
See Also