Break an existing segment and add a new flow segment.
Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.8.0.280
Syntax
C#
public FlowSegment AddSegment( int indexOfOriginalSegment, double distanceFromFlowSegmentStartPoint )
VB
Public Function AddSegment ( indexOfOriginalSegment As Integer, distanceFromFlowSegmentStartPoint As Double ) As FlowSegment
C++
public: FlowSegment^ AddSegment( int indexOfOriginalSegment, double distanceFromFlowSegmentStartPoint )
Parameters
- indexOfOriginalSegment Int32
- distanceFromFlowSegmentStartPoint Double
Return Value
FlowSegmentExceptions
Exception | Condition |
---|---|
InvalidOperationException | When the flow type already has the maximum of 3 flow segments. |
ArgumentException | Thrown when the index is out of range, or distanceFromFlowSegmentStartPoint is not in (0.0, length of segment). |