This sample demonstrates how to load polygon and polyline barrier values programmatically, while also providing a way to visualize and edit the underlying network element values that make up a polygon or polyline barrier.
This sample also illustrates how to flash the geometry of a network element (with a corresponding digitized direction arrow) and how to set up a context menu command for the NAWindow.
Language: C#, VB
Subject: Networks
Organization: Esri, http://www.esri.com
Date: 3/28/2017
ArcObjects SDK: 10.5
Visual Studio: 2013, 2015
.NET Target Framework: 4.5
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
- Compile the application. In non-XP Windows operating systems, be sure to open Visual Studio with "As Administrator."
- Start ArcMap.
- Create or load a network analysis layer.
- Create or load a polygon or polyline barrier.
- Right-click the barrier. On the context menu, choose Edit.
- Follow the directions on the Editing dialog box to edit the edge ranges and junctions that make up the barrier.
Programming with the ArcGIS Network Analyst extension
What is ArcGIS Network Analyst extension?
What is a network dataset?
Geodatabase
About the ArcGIS Network Analyst extension tutorial
NetworkAnalyst
ArcGIS Network Analyst extension Object Model Diagram
An overview of the network analyst toolbox
Development licensing | Deployment licensing |
---|---|
ArcGIS Desktop Basic: Network Analyst | ArcGIS Desktop Basic: Network Analyst |
ArcGIS Desktop Standard: Network Analyst | ArcGIS Desktop Standard: Network Analyst |
ArcGIS Desktop Advanced: Network Analyst | ArcGIS Desktop Advanced: Network Analyst |