Creates a new instance of SectionViewDepthLabel on the specified SectionView with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0
Syntax
C# |
---|
public static ObjectId Create(
ObjectId sectionViewId,
Point2d startPoint,
Point2d endPoint,
ObjectId labelStyleId
) |
Visual Basic |
---|
Public Shared Function Create ( _
sectionViewId As ObjectId, _
startPoint As Point2d, _
endPoint As Point2d, _
labelStyleId As ObjectId _
) As ObjectId |
Visual C++ |
---|
public:
static ObjectId Create(
ObjectId sectionViewId,
Point2d startPoint,
Point2d endPoint,
ObjectId labelStyleId
) |
Parameters
- sectionViewId
- Type: ObjectId
The ObjectId of a section view in which the label is located (object type SectionView).
- startPoint
- Type: 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
- Type: 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
- Type: ObjectId
The ObjectId of the SectionViewDepthLabel style to use (object type LabelStyle).
Exceptions
Exception | Condition |
---|
System..::..ArgumentException |
Thrown when sectionViewId or labelStyleId is invalid.
|
See Also