AnsweredAssumed Answered

Alter aliases of ObjectID, Shape, Shape_Length, Shape_Area with arcpy

Question asked by panos78 on Mar 24, 2017

How can I alter the aliases of the required fields (ObjectID, Shape, Shape_Length, Shape_Area) in a GDB with Python?

For example I have this code:

# -*- coding: utf-8 -*-
rf = ur'D:\Δοκιμές\Tester'
gdb = rf+'\\Ant.gdb'
p = ['Parcels','Parts']
for a in range(2):
    RFields = OrderedDict([(arcpy.Describe(gdb+'\\'+p[a]).OIDFieldName,u'Α/Α'),(u'Shape',u'Γεωμετρία'),(arcpy.Describe(gdb+'\\'+p[a]).lengthFieldName,u'Περίμετρος'),(arcpy.Describe(gdb+'\\'+p[a]).AreaFieldName,u'Εμβαδόν')])
    for key in RFields.keys():

But it produces an error.

Is it possible to do what I want?