AnsweredAssumed Answered

Passing data from network analyst layer

Question asked by laurablackburn on Jan 27, 2015
Latest reply on Feb 4, 2015 by jborgion

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.

Outcomes