Macro that run when checking-in a drawing

I am trying to find a Macro that runs whenever I check a drawing into the PDM works vault. When it runs it needs to saves the drawing as a DWG to a specified folder. Does any body know where I could find one of these?

SolidworksSolidworks Pdm enterprise Pdm