Creates a new instance of a FlowSegmentLabel on the specified FlowSegment with the specified label style.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.4.208.0
Syntax
C#
public static ObjectId Create( FlowSegment flowSegment, ObjectId labelStyleId )
Visual Basic
Public Shared Function Create ( _ flowSegment As FlowSegment, _ labelStyleId As ObjectId _ ) As ObjectId
Visual C++
public: static ObjectId Create( FlowSegment^ flowSegment, ObjectId labelStyleId )
Parameters
- flowSegment
- Type: Autodesk.Civil.DatabaseServices.FlowSegment
The FlowSegment Object to create the label on.
- labelStyleId
- Type: ObjectId
The ObjectId of the FlowSegmentLabel style to use.
Exceptions
| Exception | Condition |
|---|---|
| System.ArgumentException | Thrown when labelStyleId is invalid. |