Provides access to the network analysis context.
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.
Members
All
Properties
Methods
Description
Agents
The collection of agents associated with the analysis.
Locator
The locator used for finding network locations for class items.
NAClasses
The collection of classes associated with the analysis.
Name
The name of the analysis.
NetworkDataset
The associated network dataset.
NetworkDatasetName
The associated network dataset name.
Result
The result for the analysis.
Solver
The function used for the analysis.
SpatialReference
The spatial reference of the analysis.
CoClasses that implement INAContext
CoClasses and Classes
Description
NAContext
The analysis and problem definition container.
Remarks
The INAContext interface can be used to obtain references to the constellation of objects used during network analysis. This includes references to the NetworkDataset , NASolver , NAClasses , NATraversalResult , NALocator , and any extra objects that implement INAAgent .
.NET Snippets
Load Network Locations |
Create OD Cost Matrix Layer |
Create Route Layer |
Clear NAClass |
Create Vehicle Routing Problem Layer |
Clear Active Analysis Layer |
Create Service Area Layer |
Create Location Allocation Layer |
Create Closest Facility Layer |
.NET Samples
Closest facility solver (Code Files:
frmClosestFacilitySolver ) |
Export any network analysis class to a text file (Code Files:
NAClassToTextfileCmd ) |
Location-allocation solver (Code Files:
frmLocationAllocationSolver ) |
Network Analyst barrier location editor (Code Files:
EditorForm ) |
Network Analyst Engine application (Code Files:
cmdClearAnalysisLayer frmLoadLocations frmNALayerProperties ) |
Origin-destination cost matrix solver (Code Files:
frmODCostMatrixSolver ) |
Route layer (Code Files:
Program ) |
Service area solver (Code Files:
frmServiceAreaSolver ) |
Subset network evaluators (Code Files:
AutoUpdateNetworkElementArrayParametersCommand SubsetHelperUI ) |
Using the traversal result to select source features (Code Files:
SelectFeaturesTool ) |
Vehicle routing problem solver (Code Files:
frmVRPSolver ) |
.NET Related Topics
How to generate directions |
How to load data into a network analysis problem |
How to set up a Network Analyst solve to work with the undo/redo stack |