network analyst directions only generate one route

434
3
Jump to solution
04-13-2017 06:40 PM
Highlighted
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

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
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

Reply
0 Kudos
3 Replies
Highlighted
MVP Esteemed Contributor

first or last or random one?

Reply
0 Kudos
Highlighted
MVP Esteemed Contributor

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

Reply
0 Kudos
Highlighted
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

Reply
0 Kudos