Creates a new instance of an OnePoint SurfaceElevationLabel.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.2516.0

Syntax

C#
public static ObjectId Create(
	ObjectId surfaceId,
	Point2d location,
	ObjectId labelStyleId,
	ObjectId markerStyleId
)
Visual Basic
Public Shared Function Create ( _
	surfaceId As ObjectId, _
	location As Point2d, _
	labelStyleId As ObjectId, _
	markerStyleId As ObjectId _
) As ObjectId
Visual C++
public:
static ObjectId Create(
	ObjectId surfaceId, 
	Point2d location, 
	ObjectId labelStyleId, 
	ObjectId markerStyleId
)

Parameters

surfaceId
Type: ObjectId
The object id of surface to which the label is attached.
location
Type: Point2d
The place in which the label is located.
labelStyleId
Type: ObjectId
The object id of label style for the label.
markerStyleId
Type: ObjectId
The object id of anchor marker style for the label.

Exceptions

ExceptionCondition
System..::..ArgumentException Thrown when the surfaceId,markStyleId is invalid, or location is not on the surface. Thrown when the labelStyleId is not a valid label style of type: LabelStyleType::SurfaceElevation.

See Also