Does anybody know how to get the dimensions from a bounding rectangle around the current piece on the screen?

I need to get the length and width from the piece that I am working on so I was looking for bounding rectangle information. This is all free-form surface geometry so I don't have any dimensions associated with the length and width. I am trying to create a quick formula to grade up a size run of insoles for a boot. I am tired of doing it manually all the time. I would really like to automate the process. I would need the dimensions from the bounding rectangle to have a variable assigned to them in SW somewhere.

Chris

SolidworksParts And Features