ArcGIS File Geodatabase – Programmatically Determining Size of Feature Class

arcgis-10.0arcobjectsesri-geodatabasefile-geodatabase

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.

Best Answer

AFAIK, the columns (like size) that appear in the right hand pane in ArcCatalog correspond to properties in IGxObjectProperties for the item selected in the treeview control in the left hand pane.

http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IGxObjectProperties_Interface/001400000159000000/

Related Question