ArcObjects Library Reference (NetworkAnalysis)  

ITraceFlowSolverGEN.FindFlowEndElements Method

Finds all reachable network end elements based on the specified flow method.

[Visual Basic .NET]
Public Sub FindFlowEndElements ( _
    ByVal flowMethod As esriFlowMethod, _
    ByVal flowElements As esriFlowElements, _
    ByRef junctionEIDs As IEnumNetEID, _
    ByRef edgeEIDs As IEnumNetEID _
)
[C#]
public void FindFlowEndElements (
    esriFlowMethod flowMethod,
    esriFlowElements flowElements,
    ref IEnumNetEID junctionEIDs,
    ref IEnumNetEID edgeEIDs
);
[C++]
HRESULT FindFlowEndElements(
  esriFlowMethod flowMethod,
  esriFlowElements flowElements,
  IEnumNetEID** junctionEIDs,
  IEnumNetEID** edgeEIDs
);
[C++]

Parameters

flowMethod [in]

  flowMethod is a parameter of type esriFlowMethod

flowElements [in]

  flowElements is a parameter of type esriFlowElements

junctionEIDs [out]

  junctionEIDs is a parameter of type IEnumNetEID

edgeEIDs [out]

  edgeEIDs is a parameter of type IEnumNetEID

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The FindFlowEndElements method returns those network elements stopping the trace. Network elements stopping a trace are those elements past which a trace cannot continue. These include network elements in a disabled element class (specified by INetSolver::DisableElementClass), and network elements that are connected to only one other network element.

The FlowMethod parameter determines whether the trace solver traces upstream, downstream, or on all connected edges.  If you would like to allow or restrict tracing on edges with indeterminate or uninitialized flow, be sure to set the TraceIndeterminateFlow property prior to calling this trace solver.

The flowElements parameter determines whether edge elements, junction elements, or both are returned by the trace solver.

The trace solver will return the traced junction and edge element IDs in the junctionEIDs and edgeEIDs parameters respectively.

See Also

ITraceFlowSolverGEN Interface

.NET Samples

Custom upstream trace task (Code Files: CustomUpstreamTraceTaskVBNet) |