Average Part Thickness

I am searching for a way to export the average thickness of a part file to a spread sheet.  The parts I am working with are injection molded components and most of them have fairly uniform wall thicknesses.  In some cases this is not true.  Is anyone aware of a method to do this?

SolidworksApi macros