Skip to content

Latest commit

 

History

History
 
 

SelectionRestriction

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Selection restriction evaluator

This sample demonstrates how to create a dynamic network evaluator that can be used by a restriction attribute in a network dataset. By using this sample, you can dynamically restrict network elements based on the currently selected network source features in ArcMap.

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

Resources

Usage

  1. Start Visual Studio, open the solution file, then build the solution. Be sure to open Visual Studio "As Administrator."
  2. Start ArcCatalog and select an appropriate network dataset to work with.
  3. Add a new restriction attribute to the network dataset.
  4. Set SelectionRestriction as the evaluator type for all participating network sources for this new restriction attribute.
  5. Start ArcMap and add your network dataset to the map.
  6. Click Yes when prompted, to add the network dataset's source feature classes to the map.
  7. Create a new network analysis layer and make sure that your new restriction is selected under the Analysis Settings tab of the analysis layer's property pages.
  8. Create a selection of the features that you want to restrict from your analysis.
  9. Solve your network analysis layer.

See Also

Programming with 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


Licensing

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