Hello,
My process require me to convert a drawing to PDF and save it outside the vault with the new version. Ex: PartA_R1.pdf
When we re-approve this file, the Convert Task will create a new PDF outside the vault and name it PartA_R2.pdf
We do not want to leave PartA_R1.pdf in the directory... we only want to keep the latest version in the folder.
In the vault, the latest file name would be for exemple, PartA.SLDDWR and by using the Dispatch tool, I am able to display the full name of the file on the local drive using a combination of strings and arithmetics functions stored in the %CurrentPDFVersion% variable with the OK MessageBox.
EX: The file %CurrentPDFVersion% will be deleted => will display The file PartA_R2.pdf will be deleted
Why does the Delete File Function with the argument filename: c:\test\%CurrentPDFVersion% does not work???
the file PartA_R2.pdf is stored in c:\test\
and I try to change the argument of the Delete File Function to c:\test\PartA_R2.pdf, then it Does work! so I assume I am not far away from an answer...
please help!
Thank you,
Eric
SolidworksSolidworks Pdm enterprise Pdm