I would like to write a looping script which solves an x minute catchment in Network Analyst and then exports it to a shapefile. I am trying to get one iteration to work at first and following example #3 ArcGIS help file:
It's possible the export solution as a group .lyr file (layer_object.saveACopy(output_layer_file)) but I can't understand how to grab one of the children of the group lyr (polygons) and export it to polygons. Layers are often items without attributes, but these produced by NA do have them and are easy to export in ArcMap (right click=> export). In arcpy, CopyFeatures and FeatureLayer do not work seem to work grouped layers.
I have tried
for lyr in ListLayers(layer):
but get the error
'str' object has no attribute '_arc_object'