If a routine needs the file to be saved before the function can continue, then the routine should SAVE the file itself in the background and then process the routine.
One such routine is Import Styles. Another is Attaching an XREF with a Relative path. Not every routine is Civil based as noted. But what a pain.
That is all.