Is it possible to get center of mass in respect to specific origin?

Is it possible to get center of mass in respect to specific origin? With this origin axis directions.

SolidworksApi macros