ArcObjects Library Reference (GeoDatabase)  

IUtilityNetwork2.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 ( _
    ByVal SourceCount As Integer, _
    ByRef sourceEIDs As Integer, _
    ByVal sinkCount As Integer, _
    ByRef sinkEIDs As Integer _
)
[C#]
public void PartialEstablishFlowDirection (
    int SourceCount,
    ref int sourceEIDs,
    ref int sinkCount,
    ref int sinkEIDs
);
[C++]
HRESULT PartialEstablishFlowDirection(
  long SourceCount,
  long* sourceEIDs,
  long sinkCount,
  long* sinkEIDs
);
[C++]

Parameters

SourceCount [in]   SourceCount is a parameter of type long sourceEIDs [in]   sourceEIDs is a parameter of type long sinkCount [in]   sinkCount is a parameter of type long sinkEIDs [in]   sinkEIDs is a parameter of type long

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 IUtilityNetwork::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.

[C#]

This method is not callable from C#.  Please use IUtilityNetworkGEN::PartialEstablishFlowDirection.

[Visual Basic .NET]

This method is not callable from VB.NET.  Please use IUtilityNetworkGEN::PartialEstablishFlowDirection.

See Also

IUtilityNetwork2 Interface