ISwDMDocument interface represents the stream for SOLIDWORKS file (part, assembly and drawing). Document can be opened for read-only access or for write access. This option is controlled by allowReadOnly parameter of ISwDMApplication::GetDocument method.

When document is opened read-only any modification won’t be saved.