ArcObjects Library Reference (GeoDatabase)  

IUtilityNetworkGEN.PartialEstablishFlowDirection Method

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

[Visual Basic .NET]
Public Sub PartialEstablishFlowDirection ( _
    ByRef sourceEIDs As Int32[]&, _
    ByRef sinkEIDs As Int32[]& _
)
[C#]
public void PartialEstablishFlowDirection (
    ref Int32[]& sourceEIDs,
    ref Int32[]& sinkEIDs
);
[C++]
HRESULT PartialEstablishFlowDirection(
  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

PartialEstablishFlowDirection will set the flow direction for the 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.

PartialEstablishFlowDirection is very similar to IUtilityNetworkGEN::EstablishFlowDirection.  The difference is in those edge elements that cannot be reached from the specified sources and/or sinks.  In EstablishFlowDirection, these edges will be set to uninitialized flow.  In PartialEstablishFlowDirection, these unreachable edges will retain their original flow direction value.

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