SectionViewDepthLabelCreate(ObjectId, Point2d, Point2d, ObjectId) Method |
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.8.0.292
Syntaxpublic static ObjectId Create(
ObjectId sectionViewId,
Point2d startPoint,
Point2d endPoint,
ObjectId labelStyleId
)
Public Shared Function Create (
sectionViewId As ObjectId,
startPoint As Point2d,
endPoint As Point2d,
labelStyleId As ObjectId
) As ObjectId
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
ObjectId
ExceptionsException | Condition |
---|
ArgumentException |
Thrown when sectionViewId or labelStyleId is invalid.
|
See Also