Display the Enterprise PDM File Version in a SolidWorks Drawing

Enterprise PDM uses two different items to keep track of a file's latest version. The first is by using "revisions". Any time a file is checked out of the vault, modified, saved and checked back into the vault, a new revision of that file is created. The second is a revision scheme. Each time a document goes through the necessary approval process a new revision is created. Usually this revision is populated on the drawing or document to ensure that the recipient is viewing the latest released version. This is controlled via the Enterprise PDM workflow set up and may vary to contain minor revisions as well.

Another available option is to add the versions kept by Enterprise PDM to be added to the drawing itself. In order to do this, you will first need to have a note set on the drawing that is set to link to a property, such as "Version", inside of that file.

This is the linked note in the drawing that I am using:


You will also need to have the Dispatch Add In installed and a new action will need to be created. In order for the version to appear properly, you will actually need to read the current version, then add one to that number just before the check in as we cannot update the drawing after it has already been checked in.

Here is the dispatch action:


Here are the dispatch activation conditions:


Here is the command to set the "Version" variable:


As the command shows, to get the version to appear correctly, the current version needs to be increased by one to match the new version that is created when the file is checked in as EPDM cannot modify a file that is not checked out.

If the Dispatch Add In has not yet been installed, please follow this link to the SolidWorks EPDM help article explaining how to do so;


2 comments on “Display the Enterprise PDM File Version in a SolidWorks Drawing

  1. Thank you for a great advice.
    Doing as described, it leaves me with one question: after the file is checked out, EPDM variables are not written to the Custom Properties of the SW file, therefore they can not be inserted in to the drawing. It has to be done by manually going “Modify>Update>File attributes from database” before opening the file in Solidworks. Can this be automated, that after the “Check out” all the variables (e.g. on the datacard) would be populated into the solidworks document’s Custom Properties?

  2. Thank you for the feedback, Valdas. It should be able to populate the note on the drawing, but I realize that one aspect not mentioned here are the attributes of the “Version” variable. If the variable has an attribute to link to a custom property called version for the file extensions .sldprt, .sldasm and .slddrw, then everything should update accordingly.

Leave a Reply