Select to view content in your preferred language

Change featureclass name alias

3447
2
Jump to solution
04-25-2014 12:26 AM
MartinEgger
Occasional Contributor
Hi
The 'featureclass name alias' and 'the featureclass name' are not equal for all of my featureclasses in a filegeodatabase.
Is there an easy way to change/replace the 'alias name' with the featureclass name using python?
In the attached eksample I want to get rid of 'SDE.'
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JamesCrandall
MVP Alum
http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008v000000

Final edit (lol):

This will alter the AliasName of your FeatureClass with the name of the FeatureClass.

fc = r'H:\Documents\ArcGIS\Default.gdb\MyFeatClass' desc = arcpy.Describe(fc) arcpy.AlterAliasName(fc, desc.name)

View solution in original post

0 Kudos
2 Replies
JamesCrandall
MVP Alum
http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008v000000

Final edit (lol):

This will alter the AliasName of your FeatureClass with the name of the FeatureClass.

fc = r'H:\Documents\ArcGIS\Default.gdb\MyFeatClass' desc = arcpy.Describe(fc) arcpy.AlterAliasName(fc, desc.name)
0 Kudos
MartinEgger
Occasional Contributor
Hi James.
Thanks a lot. That was really easy.
0 Kudos