bartekent - I think you are confusing a feature layer and and a layer file (.lyr file), which are two different things. The Solve_na tool returns a feature layer, which is a fancy in-memory reference to a featureclass. A feature layer's spatial/attribute data is not necessarily stored in memory, it's refernce toa feature class is just "abstracted" in memory. By saving a layer file as a .lyr file, you are in effect writing the in memory "reference" information to a file. This includes things like SQL queries, symbols, etc.Anyway, like ksshannon says, just use the CopyFeatures tool (or another tool) to copy the feature layer to a feature class stored on disk. For example:arcpy.AddLocations_na("cfl", "Polygon Barriers", dnrHaulBarrierPolysFC, "", "", "", "", "", "", "", "", "", ""); showGpMessage()
arcpy.AddLocations_na("cfl", "Facilities", haulDestinationPntsFC, "", "", "", "", "", "", "", "", "", ""); showGpMessage()
arcpy.AddLocations_na("cfl", "Incidents", actDislvPntsFC, "", "", "", "", "", "", "", "", "EXCLUDE", ""); showGpMessage()
arcpy.Solve_na("cfl", "SKIP", "CONTINUE"); showGpMessage()
dnrHaulRoutesFC = fgdbPath + "\\dnr_haul_routes_least_time"
arcpy.env.outputMFlag = "DISABLED"
arcpy.CopyFeatures_management("cfl\\Routes", dnrHaulRoutesFC); showGpMessage()