Not sure if SaveDialog is going to be an option for you
Run VBA macro automatically on document save
SolidWorks-Tools