API for renaming a Solidworks drawing

Good day All,

Is it possible to have an API that takes the metadata stored with a Solidworks drawing in the PDM Vault and append it to the drawing filename? I am looking to take a basic part number which is also the drawing filename and append the desription and revision to the drawing filename. This is counter to the proper use of PDM, but these files need to go into our SAP system.

Here's an example before with description and revision shown in the vault tree:

500M000045_e.SLDDRW

And after:

500M000045_e_Assembly_Top_Level_Widget-rA1.SLDDRW

-Lou

SolidworksApi macros