<?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: Get feature class/raster file size in file geodatabase from standalone script in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1668944#M13281</link>
    <description>&lt;P&gt;I wrote (with LLM) something up for this using python and Fiona library. It d&lt;SPAN class=""&gt;oes not rely on arcpy or arcgis sdk - so no warranties, YMMV, etc. It works for me and is &lt;EM&gt;much&lt;/EM&gt; lighter and faster than using native esri tooling.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uv run GDB/get-fgdb-stats.py "D:\work\Nat_Hydro_Network\yt_nhn-nov-2025.gdb" --csv original_inventory.csv
Scanning D:\work\Nat_Hydro_Network\yt_nhn-nov-2025.gdb...

  Name                             Type                             Geometry   Date Modified              Size KB 
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  NHN_HD_SLWATER_1                 File Geodatabase Feature Class   Line       2025-11-25 08:52:41 AM   2,722,484
  NHN_TO_NAMEDFEA_2                File Geodatabase Feature Class   Polygon    2025-11-25 08:52:41 AM   2,334,932
  NHN_HD_MANMADE_1                 File Geodatabase Feature Class   Line       2025-11-25 08:52:41 AM   1,757,635
  ...
  NHN_HN_DELIMITER_1               File Geodatabase Feature Class   Line       2025-11-25 08:52:41 AM          12
  NHN_HE_OBSTACLEPT_6              File Geodatabase Feature Class   None       2025-11-25 08:52:40 AM           8
  NHN_HE_MANMADEPT_6               File Geodatabase Feature Class   None       2025-11-25 08:52:40 AM           6&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If I ever update it, the change is most likely to show up in&amp;nbsp;&lt;A href="https://github.com/maphew/mhwcode/tree/master/gis," target="_blank" rel="noopener"&gt;https://github.com/maphew/mhwcode/tree/master/gis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Edit: apparently I'm not allowed to attach a script even if it ends .txt, here's a direct link:&amp;nbsp;&lt;A href="https://github.com/maphew/mhwcode/blob/master/gis/get-fgdb-stats.py" target="_blank" rel="noopener"&gt;https://github.com/maphew/mhwcode/blob/master/gis/get-fgdb-stats.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 22:30:13 GMT</pubDate>
    <dc:creator>MattWilkie3</dc:creator>
    <dc:date>2025-11-26T22:30:13Z</dc:date>
    <item>
      <title>Get feature class/raster file size in file geodatabase from standalone script</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1316153#M10157</link>
      <description>&lt;P&gt;Hello everyone, I'm currently trying to make a standalone script to list the file size of data present in a file geodatabase such as feature classes and rasters. I know this information is available when in the catalog view of ArcGIS Pro where one of the column shows the size of datasets in kilobytes.&lt;/P&gt;&lt;P&gt;I've began looking at acquiring this information via arcpy but from my research it seems this type of information can only be acquired via the sdk.&lt;/P&gt;&lt;P data-unlink="true"&gt;So far I've found this property &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic27573.html" target="_self"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic27573.html&lt;/A&gt;&amp;nbsp; but, correct me if I'm wrong, it seems to be only accessible when executing code as an add-in and not as a standalone script.&lt;/P&gt;&lt;P data-unlink="true"&gt;My question would thus be if I'm on the right path or there's another way to get file sizes of datasets in a file geodatabase.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 18:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1316153#M10157</guid>
      <dc:creator>NicolasRacine</dc:creator>
      <dc:date>2023-08-07T18:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get feature class/raster file size in file geodatabase from standalone script</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1316578#M10162</link>
      <description>&lt;P&gt;You are correct, those classes that you need are only available through ArcGIS Pro API assemblies that are accessible via Add-ins.&amp;nbsp; &amp;nbsp;When you create a Pro SDK console standalone application (referred to as a CoreHost application) the assemblies you need are not accessible.&amp;nbsp; &amp;nbsp;Corehost applications only have access to the ArcGIS.Core and ArcGIS.CoreHost assemblies.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 18:49:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1316578#M10162</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-08-08T18:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get feature class/raster file size in file geodatabase from standalone script</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1668944#M13281</link>
      <description>&lt;P&gt;I wrote (with LLM) something up for this using python and Fiona library. It d&lt;SPAN class=""&gt;oes not rely on arcpy or arcgis sdk - so no warranties, YMMV, etc. It works for me and is &lt;EM&gt;much&lt;/EM&gt; lighter and faster than using native esri tooling.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uv run GDB/get-fgdb-stats.py "D:\work\Nat_Hydro_Network\yt_nhn-nov-2025.gdb" --csv original_inventory.csv
Scanning D:\work\Nat_Hydro_Network\yt_nhn-nov-2025.gdb...

  Name                             Type                             Geometry   Date Modified              Size KB 
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  NHN_HD_SLWATER_1                 File Geodatabase Feature Class   Line       2025-11-25 08:52:41 AM   2,722,484
  NHN_TO_NAMEDFEA_2                File Geodatabase Feature Class   Polygon    2025-11-25 08:52:41 AM   2,334,932
  NHN_HD_MANMADE_1                 File Geodatabase Feature Class   Line       2025-11-25 08:52:41 AM   1,757,635
  ...
  NHN_HN_DELIMITER_1               File Geodatabase Feature Class   Line       2025-11-25 08:52:41 AM          12
  NHN_HE_OBSTACLEPT_6              File Geodatabase Feature Class   None       2025-11-25 08:52:40 AM           8
  NHN_HE_MANMADEPT_6               File Geodatabase Feature Class   None       2025-11-25 08:52:40 AM           6&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If I ever update it, the change is most likely to show up in&amp;nbsp;&lt;A href="https://github.com/maphew/mhwcode/tree/master/gis," target="_blank" rel="noopener"&gt;https://github.com/maphew/mhwcode/tree/master/gis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Edit: apparently I'm not allowed to attach a script even if it ends .txt, here's a direct link:&amp;nbsp;&lt;A href="https://github.com/maphew/mhwcode/blob/master/gis/get-fgdb-stats.py" target="_blank" rel="noopener"&gt;https://github.com/maphew/mhwcode/blob/master/gis/get-fgdb-stats.py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 22:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/get-feature-class-raster-file-size-in-file/m-p/1668944#M13281</guid>
      <dc:creator>MattWilkie3</dc:creator>
      <dc:date>2025-11-26T22:30:13Z</dc:date>
    </item>
  </channel>
</rss>

