My answer to the question How to get size of file geodatabase feature class on disk? shows how one can enable a column in ArcCatalog showing the file size of FGDB feature classes in the contents view.
Does anyone know how ArcCatalog is able to calculate this, and is there a method or property exposed in ArcObjects or another API to determine this programmatically?
I had a look through the esriGeodatabase
ArcObjects namespace and did not find anything relevant, nor in the file geodatabase API, but I may have missed something.
ESRI_GxObject_FileSize
but appears to be in a weird unit of measure. A 1.01MB feature class in ArcCatalog for example is reported by the property as105.6122
, so ~10 KB units (myriabytes? WTH?).Currency
data type which was a 64-bit integer scaled by a factor of 10,000 and presumably whatever Windows API call they used internally to get the file size returned 8-byte (4-byte double word) integers. Apparently this was a common hack before .NET came out :)