How to map the calculated Mass value to the Weight PLM attribute?

I'm trying to find a reliable way to map the calculated Mass value (derived from the 3D geometry) to the Weight attribute stored in the PLM database, so that it is visible on the platform without manual entry.