Assume you have a parameter in your part called total_m
use a relation in the part to set it as total_m = mp_mass()
go to the drw and create a BOM with a repeat region.Use
in the repeat region use enter text asm>mbr>user defined ans type in total_m
Regenerate draft.
you must be sure to set the density of the parts and calculate the mass at least once.