Evaluated custom properties and DM

Hi,

We are using SolidWorks 2010 and EPDM 2010.  I have written a program that uses the Document Manager to add custom properties to files.  For example, I add a custom property called "Part Number" to each file and set it's value to \$PRP:\"SW-File Name\".  This is working fine.  But when I add the file to EPDM, the Part Number shows up as this formula and not the evaluated value.  If I first open the file in SolidWorks, save it, then add the file to EPDM, the Part Number shows up as the evaluated value.  My question is, is there a way with Document Manager to force that evaluation to take place and saved in the file?  I don't want to have to open each file in SolidWorks just to do this.

I have tried calling "GetCustomPropertyValues" before saving the file and this returns the evaluated value, but it doesn't save it in the file.

Thanks,
Tom

SolidworksApi macros