Minimum Volume Bounding Box

Hi, I'm trying to find a method to obtain the Bounding Box of a Part which has the minimum volume from all the possible bounding boxes. 

I've seen how to create a bounding box refered to the principal axis of inercia, and I've also seen the macro posted by @FP which let you pick a custom axis, but I couldn't find a method to obtain the minimum volume one.

Thank's in advance