Hello everyone,
I restart in the Dispatch scripts.
In my file data card, I have a PROJECT variable.
When a file is created, the value of this variable is inherited from the PROJECT variable of the data card of the parent folder.
The problem is that project managers and marketers like to change the name of the project under development...
So I'm looking to write a script that would allow me to change the value of a file data card variable.
So far, I have:
For all documents START of the block
Get the %PathToSelectedFile%%NameOfSelectedFile% file
Extract the %PathToSelectedFile%%NameOfSelectedFile% file
Editing Area NEW_PROJECT_NAME
Set map variables Variables...
(.) Selected file or folder
Destination Card Variable = (X) PROJECT
Variable Dispatch to use as variable value = PROJECT_NAME
Archive the %PathToSelectedFile%%NameOfSelectedFile% file
Message OK Rename ok
End for all documents END of the block
In defining dispatch variables:
PROJECT_NAME // Type: Static String // Value: %NEW_PROJECT_NAME%
It seems clean to me, except that it gets stuck from the first step. I can't get/extract the target file.
I get an error message: Error getting the file The process was run successfully, but returned ' false '.
Does anyone have an idea?
Thank you,
Jerome
Config: SolidWorks 2023 SP3 / PDM 2023