How can I embed my macro so that it automatically runs at rebuild in SW2015?

I am not at all well versed in programming or the Solidworks API.

I downloaded a macro to create a boundary box within a part and save the max values in the custom properties for export into our material calculator.

Ideally this macro would run automatically upon rebuild of the part, thus capturing any changes without the user needed to remember to hit a button every time.

I've toyed with the equation driven macros but SW2015 seems to want to part of that.

Does anyone know how I can set this up so the macro will run automatically upon rebuild?

Thanks!

SolidworksApi macros