Body size

Hello,
I am trying to get the real width and height of a body. I only need the outer square.
For example for a gusset I need the maximum width and height (I can find the thickness).
I have used the outline to get the points but I can't do it correctly.

I need the maximum size because it used for ordering the metal, In the drawing the manafactur can see the exact cut and angles.
I will be glad to get some help about that :-)
Bnaya Livne

SolidworksApi macros