Individual Flow Direction Tool

Description:

The Individual Flow Direction tool illustrates how to get and set flow direction for individual edge elements in utility networks. When the user clicks on an edge element in ArcMap, this command opens a dialog box showing the current flow direction setting for that edge element. If an edit session is in progress, the user can also set the flow direction for this on edge element.

How to use:
  1. Start ArcMap and add a geometric network. Add the Utility Network Analyst toolbar.
  2. Browse and select the IndivFlowDirTool.dll using the 'Add From File' button on the customization dialog.
  3. From the 'Developer Samples' commands category, add the 'Individual Flow Direction Tool' to the Utility Network Analyst toolbar.
  4. If you wish to set flow direction, add the Editor toolbar, and start editing.
  5. Click the Individual Flow Direction tool and click on an edge element. A dialog opens showing you the following information about the edge element on which you clicked: Information at the geodatabase level: Feature Class Name, Feature Class ID, Feature ID, and Sub ID. Information at the logical network level: Network Element ID and Flow Direction.
  6. If an edit session is in progress, the flow direction for the clicked edge element can be set by clicking on the flow direction option buttons.
  7. Click Cancel to close the dialog without changing the flow direction, or click OK to close the dialog writing your flow direction changes to the edit session.

Application:
ArcMap

Requires: A geometric network. If you would like to set flow direction an edit session is also required.

Difficulty: Intermediate


Visual Basic
File Description
clsFlowDirTool.cls Class file containing the Individual Flow Direction tool.
frmFlowDirToolDialog.frm Form containing the GUI for the tool.
IndivFlowDirTool.res Resource file containing the tool icon and cursor.
IndivFlowDirTool.vbp The project file for the Individual Flow Direction tool.
IndivFlowDirTool.dll The compiled Individual Flow Direction tool.


Key CoClasses: UtilityNetworkAnalysisExt, UtilityNetwork, PointToEID, EIDHelper, EIDInfo
Key Interfaces: INetworkAnalysisExt, IUtilityNetwork, IPointToEID, INetElements, IEIDHelper, IEIDInfo, IUtilityNetworkAnalysisExtFlow
Key Members: INetworkAnalysisExt::CurrentNetwork, INetworkAnalysisExt::SnapTolerance, IUtilityNetwork::SetFlowDirection, IUtilityNetwork::GetFlowDirection, IPointToEID::GetNearestEdge, INetElements::IsValidElement, IEIDHelper::CreateEnumEIDInfo, IEIDInfo::Geometry, IUtilityNetworkAnalysisExtFlow::ShowFlow, IUtilityNetworkAnalysisExtFlow::ArrowSymbol, IUtilityNetworkAnalysisExtFlow::IndeterminateSymbol, IUtilityNetworkAnalysisExtFlow::UninitializedSymbol