SOLIDWORKS PDM Professional: You have chosen to load a .Net Add-in? Well, what do you do next ?

Amen Jlili

SOLIDWORKS PDM Professional employs a server-client architecture. Your files and metadata is stored on the server (Archive server is where your files and stored and everything else go in the SQL db).

You push all of your changes to the server from your local PDM client and you also pull any updates from the server.

This applies to PDM add-ins. When you update an existing with a new version, that version is not automatically updated on each connected client machine. All users that want use the latest version have to log out of PDM and re-login again.

PDM will actually warn you to this effect when you update an add-in from the administration tool.

You have chosen to load a .Net add-in. SOLIDWORKS PDM cannot force a reload of .Net add-ins. This means that if the add-in is an updated version of an already installed addin, all clients machines will have to be restarted to ensure that the new version of the add-in is used.

To ensure a proper restart of your PDM session, you can use this nice little script that will kill both Explorer.exe and EdmServer.exe and restart them again.

taskkill /f /im edmserver.exe
taskkill /f /im explorer.exe
start explorer.exe
start “Path_To_Vault”

You can save these lines as a bas script by opening Notepad.exe, copy pasting the code above (make sure to replace the last line with the vault) and then saving it as a bas file.

The bas file works very well for a single user environment. If your add-in has a large audience, a good idea for a PDM admin is to do the following:

  • Change the path of the vault to “.” without the double quotes.
  • Save the script above as a bas file in the vault.
  • Make sure the file is accessible by all users. You only need the read-content permission.
  • Whenever you upgrade the add-in, send a message to all users like follow:

  • Where :
    • blubyte is replaced by your vault name.
    • projectid is replaced by the folder id where the bas file resides
    • documentid is the SQL db id of the file.

Having issues with your SOLIDWORKS PDM add-ins? Blue Byte Systems, Inc is here to help with your PDM customization needs. Reach out to us via contact page for a free 30-min consultation.


Leave a Reply

More great articles

Export Bill Of Materials to Excel with thumbnails

This macro exports Bill of Materials to Excel with thumbnails. You definitely need this one if you are on SOLIDWORKS 2018…

Read Story

Traverse Assembly Tree Recursively -SOLIDWORKS API

This topic is most definitely a recurring one. I find myself having to go back to old pieces of code…

Read Story

Delete all properties for the active configuration – SOLIDWORKS MACRO

The following macro deletes all the properties from the active configuration. The macro is written used late-binding so it is…

Read Story