<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can you list feature classes' aliases with arcpy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578444#M73629</link>
    <description>&lt;P&gt;Thank you, Dan!&amp;nbsp; The Describe documentation &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/featureclass-properties.htm" target="_self"&gt;for feature classes&lt;/A&gt; only listed 8 properties for feature classes - so, only a small portion of the ones you accessed.&amp;nbsp; And it hadn't "clicked" for me that arcpy.da.Describe produces a dictionary and that the dictionary could be explored like that.&lt;/P&gt;&lt;P&gt;For anyone else who may be wondering about this, here is how I got the feature class's alias into a variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
arcpy.env.workspace = "\\\\my\\file\\geodatabase"
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
    desc = arcpy.da.Describe(fc)
    alias = desc['aliasName']

# Then print alias or put it in a list of things to write to a csv.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 21:31:55 GMT</pubDate>
    <dc:creator>AllenDailey1</dc:creator>
    <dc:date>2025-01-23T21:31:55Z</dc:date>
    <item>
      <title>Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578390#M73626</link>
      <description>&lt;P&gt;Is there a way to use Python/arcpy to access/list a feature class's alias?&amp;nbsp; I'm talking about the name of the feature class, not field aliases (which I already figured out how to do).&lt;/P&gt;&lt;P&gt;Based on my searching of Esri's documentation, there doesn't seem to be a way to do this via Describe or ListFeatureClasses.&amp;nbsp; Is there some other way?&lt;/P&gt;&lt;P&gt;I ask because I'm trying to create a CSV file that contains many feature classes' names, fields, and field aliases. I will use the file to review the field names and stuff and write notes about things I want to change when I migrate the data from a file geodatabase to an enterprise geodatabase.&amp;nbsp; It would also be helpful to be able to see the feature class alias in this CSV file.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 20:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578390#M73626</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2025-01-23T20:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578434#M73628</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
fc1 = r"C:\arcpro_npg\Project_npg\TestShapes.gdb\clp"
desc = arcpy.da.Describe(fc1)

dir(desc)
#-- snip ---
# big list of properties
# alternately

desc.keys()
Out[7]: dict_keys(['catalogPath', 'FIDSet', 'size', 'dateCreated',
 'dateAccessed', 'dateModified', 'workspace', 'supportsBigObjectID',
 'supportsBigInteger', 'supportsTimeOnly', 'supportsDateOnly',
 'supportsTimestampOffset', 'aliasName', 'areaFieldName', 'attributeRules',
 'baseName', 'canVersion', 'changeTracked', 'children', 'childrenExpanded',
 'createdAtFieldName', 'creatorFieldName', 'dataElementType', 'datasetType',
 'dataType', 'defaultSubtypeCode', 'DSID', 'editedAtFieldName', 
'editorFieldName', 'editorTrackingEnabled', 'extension', 
'extensionProperties', 'extent', 'featureType', 'fields', 'file', 
'fullPropsRetrieved', 'geometryStorage', 'globalIDFieldName', 'hasGlobalID',
 'hasM', 'hasOID', 'hasOID64', 'hasSpatialIndex', 'hasZ', 'indexes',
 'isCOGOEnabled', 'isCompressed', 'isTimeInUTC', 'isVersioned',
 'lengthFieldName', 'metadataRetrieved', 'MExtent', 'modelName', 'name',
 'OIDFieldName', 'path', 'rasterFieldName', 'relationshipClassNames',
 'representations', 'shapeFieldName', 'shapeType', 'spatialReference',
 'subtypeFieldName', 'versionedView', 'ZExtent'])

# ----
desc['aliasName']
''

# == my fc doesn't have an alias set&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give it try with your data&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 21:13:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578434#M73628</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-01-23T21:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578444#M73629</link>
      <description>&lt;P&gt;Thank you, Dan!&amp;nbsp; The Describe documentation &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/featureclass-properties.htm" target="_self"&gt;for feature classes&lt;/A&gt; only listed 8 properties for feature classes - so, only a small portion of the ones you accessed.&amp;nbsp; And it hadn't "clicked" for me that arcpy.da.Describe produces a dictionary and that the dictionary could be explored like that.&lt;/P&gt;&lt;P&gt;For anyone else who may be wondering about this, here is how I got the feature class's alias into a variable:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
arcpy.env.workspace = "\\\\my\\file\\geodatabase"
fcs = arcpy.ListFeatureClasses()
for fc in fcs:
    desc = arcpy.da.Describe(fc)
    alias = desc['aliasName']

# Then print alias or put it in a list of things to write to a csv.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 21:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578444#M73629</guid>
      <dc:creator>AllenDailey1</dc:creator>
      <dc:date>2025-01-23T21:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578462#M73630</link>
      <description>&lt;P&gt;For a geodatabase table or feature class, "aliasName" is an inherited &lt;SPAN&gt;from &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/gdb-table-properties.htm" target="_self"&gt;Geodatabase Table properties - ArcGIS Pro | Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 21:56:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1578462#M73630</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-01-23T21:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1585780#M73747</link>
      <description>&lt;P&gt;Just a warning, the da.Describe can get really expensive. Describing a geo database takes a few milliseconds with regular Describe, and everything else is lazy loaded as you access it, but da.Describe will parse the whole tree and can take seconds sometimes.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 06:32:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1585780#M73747</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-02-15T06:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1585792#M73748</link>
      <description>&lt;P&gt;Alternate Perspective:&lt;/P&gt;&lt;P&gt;Of course "seconds" would probably be important in emergency uses of GIS&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For others it provides a welcome respite from an otherwise harrowing day.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2025 12:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1585792#M73748</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-02-15T12:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1585939#M73750</link>
      <description>&lt;P&gt;Absolutely agree, there have been tons of times that I've bitten the bullet and allowed operations to drag on because the alternative is spending a day or two doing that same thing by hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just remember the first time I discovered da.Describe and foolishly re-wrote several processes to use it because it saved me a ton of boilerplate only to be shocked that those processes were now taking 10x as long and my co-workers were understandably upset!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 04:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1585939#M73750</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2025-02-17T04:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can you list feature classes' aliases with arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1611462#M74126</link>
      <description>&lt;P&gt;No idea how I would have&amp;nbsp;&lt;EM&gt;EVER&lt;/EM&gt; dug that up. Thanks for asking the question!&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 15:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-list-feature-classes-aliases-with-arcpy/m-p/1611462#M74126</guid>
      <dc:creator>RandyMcGregor_BMcD</dc:creator>
      <dc:date>2025-05-04T15:47:16Z</dc:date>
    </item>
  </channel>
</rss>

