Executing network analyst task

2449
6
12-25-2012 11:08 PM
Highlighted
by
Occasional Contributor II
Hi,

I have created a network analyst task (find route with specified stops), by the model builder tool.
When I execute the task nothing happens and in the output window I get the success message:

Here is a screenshot of the model I created:
[ATTACH=CONFIG]20194[/ATTACH]

Do you have any explanation to that?

Regards.
Tags (2)
Reply
0 Kudos
6 Replies
Highlighted
Esri Regular Contributor
Make the results of the Solve be a model parameter. Read more here on how to display the results of a model.
http://resources.arcgis.com/en/help/main/10.1/#/Displaying_model_data/002w0000003q000000/

Jay Sandhu
Reply
0 Kudos
Highlighted
by
Occasional Contributor II
Nop!
It seems that the display of the route layer in the output is completely arbitrary. Sometimes it works, sometimes it doesn't. Maybe it's another bug in the unstable model builder!
Both Add to Display and Model Parameter are checked for the output of the solve operation, and still, the route result isn't displayed on the map.
I don't know where it hides!
Reply
0 Kudos
Highlighted
Regular Contributor
Make the results of the Solve be a model parameter. Read more here on how to display the results of a model.
http://resources.arcgis.com/en/help/main/10.1/#/Displaying_model_data/002w0000003q000000/

Jay Sandhu



I'm also interested in displaying the results form a network Solve in either a AGO map or a web app. Haven't been successful in either platform. I've put together a python script tool and published as a GP tool for use in a Flex app. It runs and generates a solve layer and directions text file on the ArcGIS Server.  How might I leverage this into AGO?
Reply
0 Kudos
Highlighted
Esri Regular Contributor
One other thing you can make sure to check is in the ArcMap top menu, click on Geoprocessing and select Geoprocessing options and make sure that the "Add results of geoprocessing operations to the display" is also checked on.

Jay Sandhu
Reply
0 Kudos
Highlighted
Regular Contributor III
Hi, you might also try to go through the step-by-step tutorial on publishing a GP service with (10.1 though):

Geoprocessing service example: Shortest route on a street network

It gives you the output layer with the route as well as directions in the specified format (.html, .xml, .txt).

The GP services that are based on 10.1 Network Analyst core GP tools work fine and I've been using them almost daily recently.
Reply
0 Kudos
Highlighted
Regular Contributor
Thanks for the suggestions. I'm able to display the results  from the script tool in ArcMap, but no such luck with getting results to display via a geoprocessing service in a flex app. Apparently it's a bug with the Flex api. Now I'm wondering how I might be able to leverage and use a network data set in ArcGIS Online.  Any suggestions or ideas?
Reply
0 Kudos