Hello, I am using PDM Pro and I am writing some c# code that let me rename a filename both from Explorer(outside Solidworks) or from the PDM Addin(Inside Solidworks). In a very basic way let's say that I click a datacard button and the file is renamed with a new serial number.
The problem I am facing is that, from inside Solidworks, when i click the button of fatacard opened by PDM Addin, the RenameEX method of IEdmFile6 interface fails throwing and Exception that the file is open in another application (which i believe is solidworks itself, and the PDM service is complaining that the file is not accessible).
I know well that Solidworks has its own API method swModel.Extension.RenameDocument(newName) but i am uncertain how I should proceed...maybe the SE API renaming methods are ok and when saving the renamed file, the PDM catch the difference and update the references automatically, or maybe not...
Anybody has some advice on this. I guess that, more generally, the fact that the datacard can be opened and used by two different programs (Solidworks and PDM service) there may be some good practice to keep in mind.