Set Flow Direction (Data Management)

License Level:BasicStandardAdvanced

Summary

Sets the flow direction for a geometric network based on either the digitized direction or the source/sink settings in the geometric network.

Usage

Syntax

SetFlowDirection_management (in_geometric_network, flow_option)
ParameterExplanationData Type
in_geometric_network

The geometric network for which flow will be set.

Geometric Network
flow_option

Indicates method by which flow direction will be established; there is no default value.

  • WITH_DIGITIZED_DIRECTIONEstablish flow direction along the digitized direction of edges.
  • AGAINST_DIGITIZED_DIRECTIONEstablish flow direction against the digitized direction of edges.
  • WITH_SOURCES_SINKSEstablish flow direction using sources and sinks.
  • RESET_FLOW_DIRECTIONReset flow direction on all edges to be uninitialized.
String

Code Sample

SetFlowDirection example (stand-alone script)

The following stand-alone Python script demonstrates how to use the SetFlowDirection in a Python script to set flow direction for a geometric network.

# Import arcpy module
import arcpy

# Local variables:
Water_Net = "C:/testing/GeometricNetworks/Montgomery.gdb/Water/Water_Net"

# Process: Set Flow Direction
arcpy.SetFlowDirection_management(Water_Net, "WITH_DIGITIZED_DIRECTION")

Environments

This tool does not use any geoprocessing environments

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013