netshop21
The SolidWorks API can return the mass properties for a part or assembly.
retval = ModelDoc2.GetMassProperties2 ( &status )
or
retval = SldWorks.GetMassProperties ( filePathName, configurationName )
Returns this variant
[ CenterOfMassX, CenterOfMassY, CenterOfMassZ, Volume, Area...