Passing data from network analyst layer

3795
2
01-27-2015 11:44 AM
LauraBlackburn
New Contributor III

I have python code that will solve a Vehicle Routing Problem and save the NA layer to a layer file.  I am trying to grab the TotalTravelTime and TotalDistance from the solved Routes layer and export this along with a few other variables to a csv file.  However, I can't seem to figure out how to access the routes layer.  Every technique I try leaves me with a Queue.empty error.  It's acting like the NA/Routes layer doesn't exist.  Any help with doing this is much appreciated.  I have attached my code, it didn't seem to paste in properly when I tried to insert as python script.


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
2 Replies
LauraBlackburn
New Contributor III

Does anyone have experience saving route time/distance information out of a NA layer file?  Any help on how to do this is greatly appreciated.

0 Kudos
JoeBorgione
MVP Emeritus

Laura- if you are looking for a Python Solution, may I suggest you cross post it in the Python space?  I think you'll get a a faster response there.

That should just about do it....