SurfaceElevationLabelCreate(ObjectId, Point2d, ObjectId, ObjectId) Method

Creates a new instance of an OnePoint SurfaceElevationLabel.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.292
Syntax
public static ObjectId Create(
	ObjectId surfaceId,
	Point2d location,
	ObjectId labelStyleId,
	ObjectId markerStyleId
)

Parameters

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

Return Value

ObjectId
Exceptions
ExceptionCondition
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