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.
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.
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.