How to avoid "Save Modified Documents" popup?

I am using document manager to replace components in an assembly.  After the replacements are made I use OpenDoc6 to open the assembly.

 

aDoc = (( ModelDoc2)(swx.OpenDoc6(fileName, 2, 0, "", ref longstatus, ref longwarnings)));

When this line of code executes, the model is opened and the assembly regenerates.  At the end of the regeneration I am prompted to "Save Modified Documents".  Can I keep this from happening?  I don't want input from the user.  I am working in c#.

Thanks in advance,

Bryan

SolidworksApi macros