Macro to add overall dimensions to drawing view (Length & Height)?

Does anyone have a macro that automatically adds the length and height dimension of a part in a drawing view?    I need this mainly for flat-patterns.

SolidworksApi macros