API to force mass

Hi,

I'm trying to write an API that will force mass of a part. It's a transformer part that is made of many materials (copper, steel, resin). I exaclty know the mass of this part. Component is also configurable.

Is there an API to force part mass ? Does it work with configurations (i.e. each configuration has a different value of forcee mass) ?

thanks,

alex

SolidworksApi macros