Macro to export Cut-list?

Looking for a macro or way to export a weldment cut-list during a PDM state change.  Our MFG department would like an Excel document with the cutlist named filename-rev.

Would be nice to have it save to the document folder location into a sub-folder "Cut-lists" and check the file in.  Help?

SolidworksApi macros