Hey everyone, just wondering if anyone would be willing to help me.
I would like to move files from one folder to another when that file is transitioned in PDM.
Anyone have any thoughts on how I can set this up?
I think it will need to be a dispatch addin that is run by a task. Would anyone be willing to share the addin text that they have running?
Thanks in advance for any help.
PDM Transition that will move files from one folder to another?
- VicFrauenfeld
- Posts: 86
- Joined: Fri Mar 12, 2021 9:27 am
- Location: Cleveland, Wisconsin USA
- x 82
- x 80
PDM Transition that will move files from one folder to another?
Be quick to listen, slow to speak and slow to become angry.
Re: PDM Transition that will move files from one folder to another?
I think this is what you might be looking for, but IIRC there's some concern about what exactly happens when any of the where used files are checked out, at any level of the where used tree. Or if the file happens to be open in Solidworks when the task is triggered, which is normal if the user is using the PDM add-in to do PDM actions.
https://www.javelin-tech.com/blog/2017/ ... move-file/
The help page has a link to related KB articles that you might want to skim through before trying this. Moving/Renaming files in vault can work in the right scenario but requires care.
https://help.solidworks.com/2019/englis ... f7e2e8#Pg0
https://kbsw.3ds.com/mashup-ui/page/sld ... portal_enu
https://www.javelin-tech.com/blog/2017/ ... move-file/
The help page has a link to related KB articles that you might want to skim through before trying this. Moving/Renaming files in vault can work in the right scenario but requires care.
https://help.solidworks.com/2019/englis ... f7e2e8#Pg0
https://kbsw.3ds.com/mashup-ui/page/sld ... portal_enu
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: PDM Transition that will move files from one folder to another?
We do this with a dispatch script that triggers after a transition on our workflow. Pretty simple.
The catch is if you have these files open in SolidWorks, then it will cause an error. For us this is done at the end of a workflow for files that we no longer use so it's not likely the user would have them open.
The catch is if you have these files open in SolidWorks, then it will cause an error. For us this is done at the end of a workflow for files that we no longer use so it's not likely the user would have them open.
Jason
-
- Posts: 2
- Joined: Fri Oct 14, 2022 7:57 am
Re: PDM Transition that will move files from one folder to another?
hello, any help possible on this - we are wanting to get files that go from WIP to archive, or Eng released to obsolete to be moved to an archive folder within the project...
im struggling to get it to do anything other than drop then in the root folder archive folder..
cant find any help with the actual path links online atall...
thanks in advance!
im struggling to get it to do anything other than drop then in the root folder archive folder..
cant find any help with the actual path links online atall...
thanks in advance!
- jcapriotti
- Posts: 1869
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1214
- x 1999
Re: PDM Transition that will move files from one folder to another?
@andrew.gunstone Are you trying this with Dispatch or the API?
Jason
- VicFrauenfeld
- Posts: 86
- Joined: Fri Mar 12, 2021 9:27 am
- Location: Cleveland, Wisconsin USA
- x 82
- x 80
Re: PDM Transition that will move files from one folder to another?
Here is a little update on my situation.
I originally needed this ability because we are looking at migrating a lot of CAD data to our PDM vault from a network folder location. I didn't want to worry about moving the files into other folders within the PDM system during the migration (long story, don't ask).
I found a free tool from EquivaQ Software that moves a file during transitions. I have set this up in a test vault and it seems to be working great. We have not migrated the data into the production vault, but I don't think there will be any issues.
Here is a link to the website for the add-in: https://equivaq.com/product/move-file-tool
I will note that the documentation for the add-in is out of date. I contacted their support and got help through emails.
I originally needed this ability because we are looking at migrating a lot of CAD data to our PDM vault from a network folder location. I didn't want to worry about moving the files into other folders within the PDM system during the migration (long story, don't ask).
I found a free tool from EquivaQ Software that moves a file during transitions. I have set this up in a test vault and it seems to be working great. We have not migrated the data into the production vault, but I don't think there will be any issues.
Here is a link to the website for the add-in: https://equivaq.com/product/move-file-tool
I will note that the documentation for the add-in is out of date. I contacted their support and got help through emails.
Be quick to listen, slow to speak and slow to become angry.
-
- Posts: 2
- Joined: Fri Oct 14, 2022 7:57 am
Re: PDM Transition that will move files from one folder to another?
Hello sorry i didnt see your response.
im trying dispatch - we have project folders like this:
Project 1
01mechanical CAD
02electrical CAD
Project 2
01
02
etc..
we want dispatch to chuck all files that are obsolete or archived into the archive folder that is within 01mechanical CAD folder
What i was trying to do was use %CurrentFolderPath%\02 CAD FILES\01 MECHANICAL CAD\ARCHIVE\%NameOfSelectedFile%
but it chucks the files at the vault root folder in an archive folder..
im trying dispatch - we have project folders like this:
Project 1
01mechanical CAD
02electrical CAD
Project 2
01
02
etc..
we want dispatch to chuck all files that are obsolete or archived into the archive folder that is within 01mechanical CAD folder
What i was trying to do was use %CurrentFolderPath%\02 CAD FILES\01 MECHANICAL CAD\ARCHIVE\%NameOfSelectedFile%
but it chucks the files at the vault root folder in an archive folder..