Definition of the mass of a product in BI-ESSENTIAL using automation (VBA)

Hello, 

I would like to affect a specific mass and an inertia to a solid defined in a product.

To do so I used the definition of the mass in BI ESSENTIAL. I have a lot of solids on which I would like to affect different properties, I would like to know if I could do that using automation (VBA) or any other method that could allow me to avoid doing it manually. 

Thank you.