When I use the MakeFeatureLayer and SaveToLayer functions the resulting layer file does not maintain the symbology. The code below will create the .lyr file, but the file does not have any symbology in it. No errors are thrown. In ArcMap, if I select "Save As Layer File", from the Input Feature Layer, it creates a .lyr file with the symbology. But I need to create this .lyr file programmatically from the selected input. Please let me know how to fix it. Thanks.
# Import arcpy module
import arcpy, os
from arcpy import env
from os import path
# Set workspace
mxd = arcpy.mapping.MapDocument("CURRENT")
text = mxd.filePath
basepath = path.dirname(text)
env.workspace = basepath
# Script arguments
InputFile = arcpy.GetParameterAsText(0)
arcpy.MakeFeatureLayer_management(InputFile, "Input_Layer", "", "", "FID FID VISIBLE NONE;Shape Shape VISIBLE NONE;cell_id cell_id VISIBLE NONE;Scenario1 Scenario1 VISIBLE NONE")
arcpy.SaveToLayerFile_management("Input_Layer", "Input_Layer.lyr", "RELATIVE", "CURRENT")
# Import arcpy module
import arcpy, os
from arcpy import env
from os import path
# Set workspace
mxd = arcpy.mapping.MapDocument("CURRENT")
text = mxd.filePath
basepath = path.dirname(text)
env.workspace = basepath
# Script arguments
InputFile = arcpy.GetParameterAsText(0)
arcpy.MakeFeatureLayer_management(InputFile, "Input_Layer", "", "", "FID FID VISIBLE NONE;Shape Shape VISIBLE NONE;cell_id cell_id VISIBLE NONE;Scenario1 Scenario1 VISIBLE NONE")
arcpy.SaveToLayerFile_management("Input_Layer", "Input_Layer.lyr", "RELATIVE", "CURRENT")