Flag Management

Description:

The FlagMananger.dll allows you to add two commands to the Utility Network Analysis extension. One commands allows you to save the flags and barriers on the current network in the extension to a file. The second command allows you to load flags and barriers from a file to the current network.

How to use:
  1. Browse and select the FlagManager.dll using the 'Add From File' button on the customization dialog.
  2. From the 'Developer Samples' commands category, add the 'Add flags and barriers from a file' and 'Save flags and barriers to a file' buttons to a toolbar.
  3. Add flags and/or barriers to your network using the Utility Network Analysis Toolbar.
  4. Click on the 'Save flags' button to save the current flags and/or barriers to a file.
  5. Clear the flags and barriers from the map through the Utility Network Analysis Toolbar.
  6. Click on the 'Add flags' button to add your flags back to the map.

Application:
ArcMap

Requires: A geometric network

Difficulty: Intermediate


Visual Basic
File Description
SaveFlagsBarriers.cls Class file demonstrating how to save flags and barriers to a file.
AddFlagsBarriers.vbp Class file demonstrating how to load flags and barriers from a file.
FlagManager.vbp The project file for the two commands.
FlagManager.dll The compiled project.


Key CoClasses: UtilityNetworkAnalysisExt
Key Interfaces: INetworkAnalysisExt, INetworkAnalysisExtBarriers, INetworkAnalysisExtFlags
Key Members: INetworkAnalysisExtBarriers::AddEdgeBarrier, INetworkAnalysisExtBarriers::AddJunctionBarrier, INetworkAnalysisExtFlags::AddEdgeFlag, INetworkAnalysisExtFlags::AddJunctionFlag