FlowPathAddSegment Method |
Note: This API is now obsolete.
Namespace: Autodesk.Civil.DatabaseServicesAssembly: AeccDbMgd (in AeccDbMgd.dll) Version: 13.9.0.960
Syntax[ObsoleteAttribute("Use FlowPath.AddFlowSegment() instead.", false)]
public FlowSegment AddSegment(
int indexOfOriginalSegment,
double distanceFromFlowSegmentStartPoint
)<ObsoleteAttribute("Use FlowPath.AddFlowSegment() instead.", false)>
Public Function AddSegment (
indexOfOriginalSegment As Integer,
distanceFromFlowSegmentStartPoint As Double
) As FlowSegmentpublic:
[ObsoleteAttribute(L"Use FlowPath.AddFlowSegment() instead.", false)]
FlowSegment^ AddSegment(
int indexOfOriginalSegment,
double distanceFromFlowSegmentStartPoint
)
Parameters
- indexOfOriginalSegment Int32
-
- distanceFromFlowSegmentStartPoint Double
-
Return Value
FlowSegment
Exceptions| 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).
|
Remarks
The original segment will end by the input distance,
and a new segment will be created from here to the end of original segment.
The new segment will keep the same FlowType as the previous one.
See Also