Get xyz occupance volume of a model/assembly

Hi everybody,

I need to get from a model or an assembly the dimensions in the 3 axes, to evaluate for example the volume occupance for shipping, so not the volume of the assembly but the minimum volume of a box that can contain the assembly.

In the example made with two generic parts I need the occupance of the assembly, I like to have the information like "dimensions x*y*z = 57*56.32*58 mm - volume 186193.9 mm3", is there a property that can be used for this pourpose? I remember a command "Box" but I did not found it, maybe I'm wrong.

Thank you for your help!

Roberto

SolidworksApi macros