renaming aliasName

332
1
09-19-2011 12:31 PM
JoseFunes
New Contributor
Hi all,
I have looked for useful material that could illustrate the way to change aliasName using geoprocessing tools since I have more than 200 variables that I wish I could rename; however I have failed finding useful information. I would appreciate if you could share your thoughts in how write a script the does this kind of job.
Thanks,
Jose
Tags (2)
0 Kudos
1 Reply
KimOllivier
Occasional Contributor III
You can do this by defining new fields with the fieldinfo parameter when you create a layer and then save back to a featureclass. see MakeFeatureLayer_management(fc,"layer","whereclause","workspace",fieldinfo)

The help is useless here. I suggest you run the tool and then right-click the result to get a Python snippet to see the syntax, the replicate for each field change you require in a script.

You need to set up a ; delimited string containing four space separated values. (Who thought that was a good idea? What about a nested Python list??)

eg "From_name To_name Hidden_Flag Ratio;From_name To_name Hidden_Flag Ratio;...."
0 Kudos