How to set Layer alias with Python

401
2
Jump to solution
09-21-2020 06:56 AM
VHolubec
Esri Regular Contributor

Dear Python

is there a way how to via Python set Layer name alias in FGDB? In ArcPy it seems that this is still missing. CIM properties just works on aliases on fields, and I don´t see any way how to change the Alias for the layer name itself.

My use case is: I am copying lot of layer from SDE to FGDB via arcpy.CopyFeatures_management(path to origin layer, path to FGDB layer), unfortunately the alias of the of the SDE layer is not copied to FGDB layer (maybe because the FGDB layer has different name than the origin one), and I am unable to reach the alias with python.

Thank you,

Vladimir

Vladimir
0 Kudos
1 Solution

Accepted Solutions
JoeBorgione
MVP Esteemed Contributor

Does this do what you want?  AlterAliasName—ArcGIS Pro | Documentation 

That should just about do it....

View solution in original post

2 Replies
JoeBorgione
MVP Esteemed Contributor

Does this do what you want?  AlterAliasName—ArcGIS Pro | Documentation 

That should just about do it....
VHolubec
Esri Regular Contributor

Dear Joe Borgione‌,

this is exactly what I search for. Thank you. I had to overlooked this in documentation.

Thank you!

Vladimir
0 Kudos