How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
Adding the button to ArcMap
- Open the .sln file in Visual Studio and compile it.
- Start ArcMap and make the Utility Network Analyst toolbar visible.
- Click the Customize menu and click Customize Mode. The Customize dialog box opens.
- Click the Commands tab.
- In the Categories list, click Add-in Developer Samples. Set Flow by Digitized Direction is listed under Commands.
- Drag the command button onto the Utility Network Analyst toolbar.
Using the button to set the flow direction
- Add a geometric network to ArcMap.
- Start editing.
- Click the button to set the flow according to the digitized direction of the features.
- Stop editing and save your edits.
SetFlowByDigitizedDirectionCSharp.cs | Class file containing the custom flow direction solver. |
SetFlowByDigitizedDirectionVBNET.vb | Class file containing the custom flow direction solver. |
Download the files for all languages
Development licensing | Deployment licensing |
---|---|
ArcGIS for Desktop Standard | ArcGIS for Desktop Standard |
ArcGIS for Desktop Advanced | ArcGIS for Desktop Advanced |