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.4.2516.0

Syntax

C#
public static ObjectId Create(
	ObjectId sectionViewId,
	ObjectId sectionProjectionId,
	ObjectId labelStyleId
)
Visual Basic
Public Shared Function Create ( _
	sectionViewId As ObjectId, _
	sectionProjectionId As ObjectId, _
	labelStyleId As ObjectId _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId sectionViewId, 
	ObjectId sectionProjectionId, 
	ObjectId labelStyleId
)

Parameters

sectionViewId
Type: ObjectId
The ObjectId of a SectionView in which the label is located.
sectionProjectionId
Type: ObjectId
The ObjectId of a feature object projected into the SectionView to label (object type SectionProjection, CogoPoint, FeatureLine or SurveyFigure).
labelStyleId
Type: ObjectId
The ObjectId of a SectionProjectionLabel style to use (object type LabelStyle).

Remarks

sectionProjectionId must be the ObjectId of a SectionProjection, CogoPoint, FeatureLine or SurveyFigure.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the sectionViewId, sectionProjectionId or labelStyleId is invalid.

See Also