Starting with SW 2025, a new option allows exporting HTML files directly from SolidWorks (requires eDrawings 2025 to be installed).
I created a macro that lets a user export HTML along with PDF, DWG, and other formats at the click of a button. The macro works correctly and places all exported files into the designated folder inside the PDM Standard vault.
However, there’s an issue: a non-admin user can see the exported PDF, DWG, etc., in the vault, correctly appearing as checked out by that user but the HTML file does not appear. The user have to log out of the vault, log in as an admin to check in the HTML file, then log out again and log back in as a normal user to check it out. Only then does the HTML file become visible. Interestingly, if the same user manually saves the HTML file from SolidWorks, it appears normally and shows as checked out.
I’ve checked the Knowledge Base and API documentation but haven’t found the root cause or a solution. I’m posting here in case anyone else has encountered this behavior and has identified a workaround or fix.
Is it adding to the vault automaticallly or are you manually adding? There is that user/group setting to list filetypes to add automatically, just a guess though.
The macro adds the other file format to the vault, with the status as checked out by the user. But in case of HTML, the file is not visible at all. Hence user has to login as admin, check in the file to the vault, and then login back as normal user, and then check out the file.
I’ve had this issue directly saving some non Solidworks files into the vault. Instead, I’ve resorted to saving outside the vault and using IEdmFolder8.AddFile2 to have the vault copy it in. That seems to work a bit better from my experience.
This is correct. And as @AlexB has noted, saving directly to a folder in the vault from a ‘third party’ app such as a macro may not work. I had a similar problem with PDF files save from SW drawings via the SW API. They would be saved as local files in the vault which I then had to add to the vault via the PDM API.
@gupta9665: Are the files that are not visible to the regular user really ‘in’ the vault? When you log in as admin, what does the State column in Explorer say for those HTML files? Can we see a screen shot?
Thank you everyone for your time, the problem has been resolved. Turned out that it was a settings issue, and the local user was not allowed to add the HTML file. Once the file type was added under settings for that user, the HTML file showed up as needed.