Share

StructureLabel.Create(ObjectId, ObjectId, Point3d) Method

Creates a new instance of a StructureLabel on a Structure using 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 structureId,
	ObjectId labelStyleId,
	Point3d labelLocation
)

VB

Public Shared Function Create ( 
	structureId As ObjectId,
	labelStyleId As ObjectId,
	labelLocation As Point3d
) As ObjectId

C++

public:
static ObjectId Create(
	ObjectId structureId, 
	ObjectId labelStyleId, 
	Point3d labelLocation
)

Parameters

structureId  ObjectId
The ObjectId of the Structure on which the label is located.
labelStyleId  ObjectId
The ObjectId of the stucture label style to use.
labelLocation  Point3d
The position of the label text.

Return Value

ObjectId

Exceptions

ExceptionCondition
ArgumentException Thrown when the structureId or labelStyleId is invalid.

See Also

Reference

Was this information helpful?