I need help assigning the mass of an individual solid body to a global variable. Default assignment seems to have entire mass of part which includes two solid bodies.

I have a part that contains two solid bodies. Can someone help me with the syntax to assign the mass of an individual body to a global variable?

SolidworksParts And Features