vba macro to get thickness of a part

Hi all,

Is there a way to get the thickness of a part? I don't know on which face it was sketched on (top, front, etc.).

Also some part have cuts that are not through all, is there a way to get all thicknesses?

Maybe there is a way to retrieve this information from a solid drawing?

Thank you

SolidworksApi macros