This document is archived and information here might be outdated.  Recommended version.


IUtilityNetworkGEN.EstablishFlowDirection Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IU > IUtilityNetworkGEN Interface > IUtilityNetworkGEN.EstablishFlowDirection Method
ArcGIS Developer Help

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(
  SAFEARRAY(System.Int32)* sourceEIDs,
  SAFEARRAY(System.Int32)* sinkEIDs
);
[C++]
Parameters
sourceEIDs [in]

sourceEIDs is a parameter of type SAFEARRAY(long)* sinkEIDs [in]
sinkEIDs is a parameter of type SAFEARRAY(long)*

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