Creates a new instance of a SectionProjectLabel 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, ObjectId sectionProjectionId, ObjectId labelStyleId )
VB
Public Shared Function Create ( sectionViewId As ObjectId, sectionProjectionId As ObjectId, labelStyleId As ObjectId ) As ObjectId
C++
public: static ObjectId Create( ObjectId sectionViewId, ObjectId sectionProjectionId, ObjectId labelStyleId )
Parameters
- sectionViewId ObjectId
- The ObjectId of a SectionView in which the label is located.
- sectionProjectionId ObjectId
- The ObjectId of a feature object projected into the SectionView to label (object type SectionProjection, CogoPoint, FeatureLine or SurveyFigure).
- labelStyleId ObjectId
- The ObjectId of a SectionProjectionLabel style to use (object type LabelStyle).
Return Value
ObjectIdExceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when the sectionViewId, sectionProjectionId or labelStyleId is invalid. |