Solve (Network Analyst) |
|
Release 9.3
Last modified December 23, 2008 |
![]() ![]() ![]() Print all topics in : "Tools" |
Performs the analysis appropriate to the network analysis layer on which it is executed
Usage tips
Be sure to specify all the parameters necessary to perform the analysis before running Solve.
The following environment setting affects this tool: workspace.
If the input network analysis layer parameter is a vehicle routing problem layer, ignore invalid locations parameter is disabled as the vehicle routing problem solver requires that the invalid locations are not ignored.
Command line syntax
An overview of the Command Line window
Solve_na <in_network_analysis_layer> {SKIP | HALT}
Parameter | Explanation | Data Type |
<in_network_analysis_layer> |
The network analysis layer on which analysis will be computed. |
Network Analyst Layer |
{SKIP | HALT} |
Invalid stops are those that cannot be reached by a solve. These occur when the stops are not near an edge or fall on a restricted edge.
|
Boolean |
Solve MyNetworkAnalysisLayer HALT
Scripting syntax
About getting started with writing geoprocessing scripts
Solve_na (in_network_analysis_layer, ignore_invalids)
Parameter | Explanation | Data Type |
in_network_analysis_layer (Required) |
The network analysis layer on which analysis will be computed. |
Network Analyst Layer |
ignore_invalids (Optional) |
Invalid stops are those that cannot be reached by a solve. These occur when the stops are not near an edge or fall on a restricted edge.
|
Boolean |
# Solve_halt.py # Description: Solve on a network, unless there are invalid stops # Author: ESRI # Create the Geoprocessor import arcgisscripting gp = arcgisscripting.create() # Set the workspace gp.workspace = "d:/workspace" # Run the command gp.Solve(MyNetworkAnalysisLayer, "HALT")