network analyst directions only generate one route

778
3
Jump to solution
04-13-2017 06:40 PM
MichaelPorter1
New Contributor III

I am using network analyst in ArcMap 10.2 to generate multiple routes (appx 100). When I export directions as xml using arcpy.Directions_na it only produces directions for one of the 100 routes not all 100. Any ideas?

Thanks

0 Kudos
1 Solution

Accepted Solutions
MichaelPorter1
New Contributor III

Thanks Joe and Dan. I figured out the issue. For style name it was defaulting to "NA Desktop" which outputs only the first route. To output all routes you need to set the style to "NA Navigation".

View solution in original post

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

first or last or random one?

0 Kudos
JoeBorgione
MVP Emeritus

I've never exported directions to xml, but is it possible you have just one route selected?

That should just about do it....
0 Kudos
MichaelPorter1
New Contributor III

Thanks Joe and Dan. I figured out the issue. For style name it was defaulting to "NA Desktop" which outputs only the first route. To output all routes you need to set the style to "NA Navigation".

0 Kudos