This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IU > IUtilityNetwork Interface > IUtilityNetwork.EstablishFlowDirection Method (ArcObjects .NET 10.5 SDK) |
Sets the flow direction of all edge elements based on the placement of sources and sinks.
[Visual Basic .NET] Public Sub EstablishFlowDirection ( _ ByVal SourceCount As Integer, _ ByRef sourceEIDs As Integer, _ ByVal sinkCount As Integer, _ ByRef sinkEIDs As Integer _ )
[C#] public void EstablishFlowDirection ( int SourceCount, ref int sourceEIDs, ref int sinkCount, ref int sinkEIDs );
[C++]
HRESULT EstablishFlowDirection(
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
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.
This method is not callable from C#. Please use IUtilityNetworkGEN::EstablishFlowDirection.
This method is not callable from VB.NET. Please use IUtilityNetworkGEN::EstablishFlowDirection.