Calculating the size of a model, accounting for rotation

I am aware of how to calculate this myself, but I was wondering if there was any built in function that would provide the dimensions of a model, accounting for its rotation, as if it was bounded by a box.

Take for example this crate:

image

Thanks.

Read the answer to this post: