PDM Copy Task
SOLIDWORKS Forums
10 days ago

Hi all,

I'm setting up a task in PDM that will copy a set of files to another folder outside PDM.

I am not very familiar with VBA, so I need to know the best way to go about this.

 

  1. Should the task run from solidworks, or from another program? (swApp option)
  2. I just need to take a given set of files, put them in PDM, and put it through a transition that will trigger the task. The files will then be added to any files previously in the external folder.
  3. Also, I need the task to only copy the selected folder, so some sort of variable will have to account for that
  4. If you all could give me direction on the code, that would be very appreciated!

Categories: Data Management, SOLIDWORKS PDM∕Enterprise PDM

Comments
Last comment By: Ulf Stockburger   Sat, 12 Jan 2019 16:45:50 GMT
Re: PDM Copy Task

Why are you going to create a custom Task? Copy Tree will copy files from the vault to an outside folder.

By: Michael Dekoning  Fri, 11 Jan 2019 19:12:51 GMT
Re: PDM Copy Task

You're right, thank you. I didn't realize that function was already so close to what I need. Is there a way to better automate the copy tree function?

By: Caleb Theriault  Fri, 11 Jan 2019 19:19:44 GMT
Re: PDM Copy Task

Access to the Copy Tree function is available in the API in the 2018 version. There is example code in the API documentation.

By: Michael Dekoning  Fri, 11 Jan 2019 19:24:29 GMT
Re: PDM Copy Task

Ok, that helps.

Can you or anyone else give me a brief example of the coding?

By: Caleb Theriault  Fri, 11 Jan 2019 20:31:54 GMT
You are not authorized to view this page No results found! Suggestions: Check spelling, try a different search, or browse topics below.