Set Flow by Digitized Direction Command


The Set Flow by Digitized Direction command illustrates how to create a custom flow direction solver for utility networks. This command sets the flow direction for each edge feature in the network along the direction in which the feature was digitized.

How to use:
  1. Start ArcMap and add a geometric network. Add the Utility Network Analyst toolbar.
  2. Browse and select the MyFlowDirectionSolver.dll using the 'Add From File' button on the customization dialog.
  3. From the 'Developer Samples' commands category, add the 'Set Flow by Digitized Direction' command to the Utility Network Analyst toolbar.
  4. Add the Editor toolbar, and start editing.
  5. Click the command to set the flow according to the digitized direction of the features.


Requires: A geometric network; an edit session.

Difficulty: Intermediate

Visual Basic
File Description
clsFlowDirectionSolver.cls Class file containing the custom flow direction solver.
frmResources.frm Form containing bitmap resource for the command.
frmResources.frx Form binary file.
MyFlowDirectionSolver.vbp The project file for the custom flow direction solver.
MyFlowDirectionSolver.dll The compiled flow direction solver.

Key CoClasses: UtilityNetworkAnalysisExt, UtilityNetwork
Key Interfaces: INetworkAnalysisExt, INetwork, IUtilityNetwork
Key Members: INetworkAnalysisExt::CurrentNetwork, INetwork::CreateNetBrowser, IUtilityNetwork::SetFlowDirection, IUtilityNetwork::GetFlowDirection