Looking for a macro

Before I spend time starting from scratch I am wondering if anyone has a macro i could modify and save some time.

I have a very repetative task for my drawings, saiving the BOM as a text file and save the drawing as a DWG with a suffix.

I would like the macro to run in this way.

Find bom

save bom as "Desktop folder" / "file name"".txt" desktop folder

save drawing as "Desktop folder" / "filename" + "_SWcopy" .DWG

Close drawing

next drawing... repeat

Any help will be greatly appreciated

SolidworksApi macros