PDM task to remove old PDF

Installation, PDM, standards, training, support, part numbering, rev schemes, etc.
User avatar
VicFrauenfeld
Posts: 86
Joined: Fri Mar 12, 2021 9:27 am
Answers: 0
Location: Cleveland, Wisconsin USA
x 82
x 80

PDM task to remove old PDF

Unread post by VicFrauenfeld »

We currently have a PDM task that creates PDF files in a network location (not inside PDM vault). When the PDM task is run, the PDF files are saved with a revision letter in the file name (for example: 514447_C.pdf). In the folder that the new PDF file is saved, there may be an old revision of the file (for example: 514447_B.pdf).

Does anyone know of a way to remove the old version of the PDF from the network location automatically? I am hoping that this can be accomplished with the PDM task (or action in the PDM transition).
Be quick to listen, slow to speak and slow to become angry.
User avatar
bnemec
Posts: 1944
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2542
x 1400

Re: PDM task to remove old PDF

Unread post by bnemec »

One option may be to use a .cmd file that deletes the file from argument list. Then run that as a transition action.

Problem I can think of is getting the file name of the pdf to delete, I think you would need to do some string manipulation in the cmd file to get the pdf name for previous revision.

Are you using the Solidworks Task Add-in or some other PDF task?
User avatar
VicFrauenfeld
Posts: 86
Joined: Fri Mar 12, 2021 9:27 am
Answers: 0
Location: Cleveland, Wisconsin USA
x 82
x 80

Re: PDM task to remove old PDF

Unread post by VicFrauenfeld »

@bnemec, we are using the standard Task Addin for converting a file to PDF. We don't have any special script running it either.
Be quick to listen, slow to speak and slow to become angry.
User avatar
VicFrauenfeld
Posts: 86
Joined: Fri Mar 12, 2021 9:27 am
Answers: 0
Location: Cleveland, Wisconsin USA
x 82
x 80

Re: PDM task to remove old PDF

Unread post by VicFrauenfeld »

@artem, I saw you on our forum today. Do you have any suggestions for my issue?
Be quick to listen, slow to speak and slow to become angry.
Post Reply