Creates a new instance of SectionViewDepthLabel on the specified SectionView with the specified label style.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public static ObjectId Create( ObjectId sectionViewId, Point2d startPoint, Point2d endPoint, ObjectId labelStyleId )
VB
Public Shared Function Create ( sectionViewId As ObjectId, startPoint As Point2d, endPoint As Point2d, labelStyleId As ObjectId ) As ObjectId
C++
public: static ObjectId Create( ObjectId sectionViewId, Point2d startPoint, Point2d endPoint, ObjectId labelStyleId )
Parameters
- sectionViewId ObjectId
- The ObjectId of a section view in which the label is located (object type SectionView).
- startPoint Point2d
- The startPoint (station and elevation) at which to insert SectionViewDepthLabel. This is a Point2d object, where startPoint.X is the station value, and startPoint.Y is the elevation.
- endPoint Point2d
- The endPoint (station and elevation) at which to insert SectionViewDepthLabel. This is a Point2d object, where endPoint.X is the station value, and endPoint.Y is the elevation.
- labelStyleId ObjectId
- The ObjectId of the SectionViewDepthLabel style to use (object type LabelStyle).
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when sectionViewId or labelStyleId is invalid. |