AnsweredAssumed Answered

Lock file with Solidworks API or Document Manager API

Question asked by Kellan O'Connor on Jan 19, 2020
Latest reply on Apr 12, 2020 by Artem Taturevych

I have a solidwork add-in which is reading and writing 3rd party data into the files with the help of IModelDoc2::IGet3rdPartyStorage and ModelDoc.Save3 methods. 


Everything is working fine but the users who are also using Solidworks PDM, getting the error while writing with save3.



I know it is possible to lock and unlock file with the EPDM.Interop.epdm library but when I tried to lock (check out) file which is checked In by PDM, I am getting following error.


- {"An attempt was made to access a file that is exclusively opened by another application."}

I know, I am getting the correct errors as I am trying to accessing files as a 3rd party and my add-in is not a PDM add-in.

Is it possible to lock file with normal Solidworks API or Document Manager API ?