ArcObjects Library Reference (GeoDatabase)  

IUtilityNetworkGEN.EstablishFlowDirection Method

Sets the flow direction of all edge elements based on the placement of sources and sinks.

[Visual Basic .NET]
Public Sub EstablishFlowDirection ( _
    ByRef sourceEIDs As Int32[]&, _
    ByRef sinkEIDs As Int32[]& _
)
[C#]
public void EstablishFlowDirection (
    ref Int32[]& sourceEIDs,
    ref Int32[]& sinkEIDs
);
[C++]
HRESULT EstablishFlowDirection(
  sourceEIDs* sourceEIDs,
  sinkEIDs* sinkEIDs
);
[C++]

Parameters

sourceEIDs [in]   sourceEIDs is a parameter of type sinkEIDs [in]   sinkEIDs is a parameter of type

Product Availability

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

Remarks

EstablishFlowDirection will set the flow direction for the entire network based on the input sources (starting points) and/or sinks (collection points).  In the majority of cases your network will have either sources or sinks, but not both.  Having both sources and sinks in your network will often lead to indeterminate flow on the edge elements.  Any edge elements that cannot be reached from the specified sources and/or sinks will have uninitialized flow.

The flow direction established on the edges will be based on these possible values:

esriFDAgainstFlow
esriFDIndeterminate
esriFDUninitialized
esriFDWithFlow

This operation requires that you make the network editable. You can do this either through an edit session using the Editor, or you can use the IWorkspaceEdit interface to edit the workspace of the logical network.

See Also

IUtilityNetworkGEN Interface