I have feature class that contains many fields.
I'm using MakeFeatureLayer tool in arcpy to make a new layer that would contain selected fields with different names.
Here's the code I've written to make the new layer:
arcpy.MakeFeatureLayer_management("Firebreak","Firebreaks","","","OBJECTID OBJECTID VISIBLE NONE;FIREBREAKSUBTYPE TYPE VISIBLE NONE;SHAPE Shape VISIBLE NONE;FNUMBER FNUMBER HIDDEN NONE;GPSSATAVG GPSSATAVG HIDDEN NONE;GPSCOLLECTUSED GPSCOLLECTUSED HIDDEN NONE;SURVEYER SURVEYER HIDDEN NONE;GLOBALID GLOBALID HIDDEN NONE;LVMDISTRICTCODE LVMDISTRICTCODE HIDDEN NONE;BLOCKKEY BLOCKKEY HIDDEN NONE;LASTCHANGEAPP LASTCHANGEAPP HIDDEN NONE;LASTCHANGEDATE LASTCHANGEDATE HIDDEN NONE;SHAPE.LEN SHAPE_Leng VISIBLE NONE")
The new layer contains the fields I selected, but unfortunately, those fields aren't renamed, i.e., fields of new layer have the same names as fields in original layer.
How can I make MakeFeatureLayer to rename the fields of new layer?