Controlling Path Using Task Add-in

I have currently setup tasks in EPDM to automatically create PDF's in a network drive once they are approved for production.  I would like to have it setup so the network drive location (used by our manufacturing group) has the same folder structure as our vault.  In order to do this I think I need to create a new variable that can be used in specifying the folder path.  Currently I can only set it up so all the pdf's go to the same two folders.  This ends up being very poorly organized.  Is it possible to create new variables that can be used to specify the path?

If not should I start looking towards using dispatch or should I go straight to learning the API.

SolidworksSolidworks Pdm enterprise Pdm
Answers 4
CN
CN 2010-01-18 Best Answer

Is there anything in the filename which would indicate the destination folder, i.e. 02-1234.pdf would go to folder C:\02\, and 19-4213.pdf would go to C:\19\?

If so, it may be easier to set up a program to monitor the output directory and redistribute the files to the appropriate directory.

Otherwise, I would look into the API and then maybe use Dispatch to kick off the routine, b/c Dispatch may not be enough to get you there.

Calvin

SF
SF 2010-01-18

In the Tasks area of the ADMIN tool you can right click on the Convert task and pick copy. This will give you a “Copy of Convert” task you can then rename it and use this one for your manufacturing directory.

DB
DB 2010-02-09

I thought I would update this thread as I have figured out how to do what I needed.

I am using the Advanced scripting options and a replace function to change the filepath from the internal vault path to the external network path.

It's not the cleanest solution since the output path shown is not the actual place it ends up.  It does the job though.

SF
SF 2011-10-04

I would like to add code the the Convert Script to copy the PDF just created to another folder, perhaps even an EPDM folder.  I am not sure if I can automatically check in.

Can you post your API "script" code?