how to get geometric center of a part in solidworks

hi,i want to get geometric center of a part in solidworks, how to do it?

is there a api ot a macro that can do it ? 

thank you !

SolidworksApi macros