Get 5 FREE macros to save clicks while performing your day-to-day operations in SOLIDWORKS
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.