Is there a way to measure the max length, width, and depth of a part without having to use the measuring tool?

I'm trying to create a custom property for a part that auto fills with the max length, max width, & max height of a part.  Similar to [SW-Material].  I don't want to use a dimension to control this because if you added something on to the part to might not be captured by that dimension.  I was hoping it was something i could pull from mass properties, but it does not give you any overall dimensions.  Any thoughts

SolidworksParts And Features