Copy EPDM variables before opnening a file in Solidworks

Hello,

after spending a lot of hours searching for solution, I tend to believe it is impossible to achieve this without programming. The problem is this: the values of datacard variables in EPDM are not automatically copied into the Custom Properties of the Solidworks file. The "roots" of this question comes from here:

This means, that once a user forgets to go "Modify>Update>File attributes from database" in EPDM vault interface, he builds a drawing with an incorrect version number, leading to further problems.

So, I would like to ask some advice on how to copy all of EPDM variables in the data card, or those which are "marked for explorer", or similarly, into the Custom properties of the file just before opening the file in Solidworks?

SolidworksApi macros