Looking for a Program Calculates a Volume

Hello dear SOLIDWORKS users i would appreciate your helpabout the follow question:

First i have got dimensions from a existing piece, like it Volume(also all its dimensions), Density, etc. Also i have drawn thepiece in SOLIDWORKS 2007.

I´m looking for a method, program or something else that helpsme to Generate New Pieces after I introduce the Required weight. Imean, I think it could be possible to have a Kind of program thatcalculates (with iterations) the Volume (with all its dimensions)for any Weight.

I hope someone could help me to find relate information to thispoint.

Thank you so much for your attention.SolidworksApi macros