Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have an arcmap with ~200 layers from the same sde feature class. After I finished adding all the layers it was brought to my attention that we need to add field alaises for the attribute table. Does any one have a python script that will loop through all the layers in a map and add the aliases?

Thanks Bobby

share|improve this question
    
Possible duplicate: gis.stackexchange.com/questions/255/… –  blah238 Apr 5 '12 at 21:39
add comment

1 Answer

You need to use ArcObjects to modify aliases as they aren't exposed to the python API. How to change feature class and field aliases in bulk? has a 3 methods for changing the field aliases at the feature class level. One using arcobjects via dot net, one using arcobjects using python via an unsupported backdoor, and the third through geoprocessing, but this last duplicates data.

A person should be able to build something to modify map layer (.mxd) or layer file (.lyr) field aliases using those examples; it will take some software development smarts.

share|improve this answer
    
ok, then I will have to have one of our developers help me. Thanks –  Bobby Apr 6 '12 at 15:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.