Dismissing "Save Modified Documents" Dialog Box using API/Settings

Is there a setting I can change or a piece of code I can implement from SOLIDWORKS API to stop the dialog box "Save Modified Documents" from popping up when my model is being updated by a macro?

I also tried looking at API help to dismiss the dialog box once it pops up but I could not find anything. This dialog up box is requiring user intervention which I don't want. SOLIDWORKS  also does not seem to wait for the dialog box to disappear before running the rest of the code which is annoying as well.

SolidworksApi/macros