<?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: Need to Export a Simple Summary List of a GDB in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161403#M8983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is an example of the script.&amp;nbsp; I could not find a way to list networks (i.e. geometric, topology, etc) within the database.&amp;nbsp; The below script will list all feature datasets, feature classes (including geometry and data type), and tables and write the output to a txt file.&amp;nbsp; You will just need to change the 'env.workspace' variable to the path of your GDB and the 'outtable' variable to a directory.&amp;nbsp; The text file will automatically be created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"

outtable = open(r"C:\temp\python\results.txt", "w")

for dataset in arcpy.ListDatasets("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(dataset)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(dataset + " " + desc.datasetType + "\n")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in arcpy.ListFeatureClasses("*", "", dataset):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(fc + " " + desc.datasetType + " " + desc.featureType + " " + desc.shapeType + "\n")


for fc in arcpy.ListFeatureClasses("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(fc + " " + desc.dataType + " " + desc.featureType + " " + desc.shapeType + "\n")

for table in arcpy.ListTables("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(table)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(table + " " + desc.dataType + "\n")&amp;nbsp;&amp;nbsp;&amp;nbsp; 

outtable.close() &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:28:55 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-11T08:28:55Z</dc:date>
    <item>
      <title>Need to Export a Simple Summary List of a GDB</title>
      <link>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161401#M8981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a tool or script that produces a list, either as a table or text file, of all the classes of a GDB?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Feature classes, data model type (poly, line, point), anno classes, networks, etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 22:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161401#M8981</guid>
      <dc:creator>ChristopherStebbins1</dc:creator>
      <dc:date>2011-09-13T22:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Export a Simple Summary List of a GDB</title>
      <link>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161402#M8982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There was a recent thread on &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/39020-Counting-Feature-Classes-within-a-File-Geodatabase?p=132294&amp;amp;viewfull=1#post132294"&gt;counting feature classes&lt;/A&gt;&lt;SPAN&gt; -- the Python script could be trivially modified to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;display the objects counted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 00:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161402#M8982</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-09-14T00:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Export a Simple Summary List of a GDB</title>
      <link>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161403#M8983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is an example of the script.&amp;nbsp; I could not find a way to list networks (i.e. geometric, topology, etc) within the database.&amp;nbsp; The below script will list all feature datasets, feature classes (including geometry and data type), and tables and write the output to a txt file.&amp;nbsp; You will just need to change the 'env.workspace' variable to the path of your GDB and the 'outtable' variable to a directory.&amp;nbsp; The text file will automatically be created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
from arcpy import env
env.workspace = r"C:\temp\python\test.gdb"

outtable = open(r"C:\temp\python\results.txt", "w")

for dataset in arcpy.ListDatasets("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(dataset)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(dataset + " " + desc.datasetType + "\n")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in arcpy.ListFeatureClasses("*", "", dataset):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(fc + " " + desc.datasetType + " " + desc.featureType + " " + desc.shapeType + "\n")


for fc in arcpy.ListFeatureClasses("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(fc)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(fc + " " + desc.dataType + " " + desc.featureType + " " + desc.shapeType + "\n")

for table in arcpy.ListTables("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(table)
&amp;nbsp;&amp;nbsp;&amp;nbsp; outtable.write(table + " " + desc.dataType + "\n")&amp;nbsp;&amp;nbsp;&amp;nbsp; 

outtable.close() &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/need-to-export-a-simple-summary-list-of-a-gdb/m-p/161403#M8983</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T08:28:55Z</dc:date>
    </item>
  </channel>
</rss>

