Creates a new instance of a StructureLabel on a Structure using the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.2.3892.0
Syntax
C#
public static ObjectId Create( ObjectId structureId, ObjectId labelStyleId, Point3d labelLocation )
Visual Basic
Public Shared Function Create ( _ structureId As ObjectId, _ labelStyleId As ObjectId, _ labelLocation As Point3d _ ) As ObjectId
Visual C++
public: static ObjectId Create( ObjectId structureId, ObjectId labelStyleId, Point3d labelLocation )
Parameters
- structureId
- Type: ObjectId
The ObjectId of the Structure on which the label is located.
- labelStyleId
- Type: ObjectId
The ObjectId of the stucture label style to use.
- labelLocation
- Type: Point3d
The position of the label text.
Exceptions
Exception | Condition |
---|---|
System.ArgumentException | Thrown when the structureId or labelStyleId is invalid. |