How to access Network Analyst output sublayers using python

1929
0
11-06-2011 08:54 AM
MelindaMorang1
New Contributor III
I'm trying to figure out how to grab and manipulate Network Analyst output sublayers using python.

For instance, I've successfully run an OD cost matrix calculation using python geoprocessing.  I get the "Lines" output sublayer.  This is probably just a stupid problem, but I can't seem to figure out how to work with the Lines sublayer in python after I create it.

I want to:
- Create fields in the Lines layer corresponding to my unique stop ids that I put in the origin and destination sublayers and then join the Lines layer to the origin and destination layers so I can grab the stop ids.
- Export the Lines layer attributes table, including the new fields with the stop id, to a csv

I can do all this by hand, but I want to do it in python, and I'm really stuck.

Thanks.
0 Kudos
0 Replies