Learn how to streamline SOLIDWORKS add-in development using C# and VB.NET via free and open-source SwEx.AddIn Framework
ISwDMDocument SOLIDWORKS Document Manager API 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.