Creates a new instance of an AlignmentCurveLabel and adds it to the specified database.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId Create( ObjectId alignmentId, ObjectId labelStyleId, ObjectId markerStyleId, Point2d location )
VB
Public Shared Function Create ( alignmentId As ObjectId, labelStyleId As ObjectId, markerStyleId As ObjectId, location As Point2d ) As ObjectId
C++
public: static ObjectId Create( ObjectId alignmentId, ObjectId labelStyleId, ObjectId markerStyleId, Point2d location )
Parameters
- alignmentId ObjectId
- The object id of alignment to which the label is attahed.
- labelStyleId ObjectId
- The object id of label style for the label.
- markerStyleId ObjectId
- The object id of marker style for the label.
- location Point2d
- The place in which the label is located.
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the labelStyleId is not a valid label style of type: LabelStyleType::AlignmentStationOffset. |