Kenja824
Automotive
- Nov 5, 2014
- 949
I have a journal that was given me to copy one file attribute and create a new attribute with the same value. The problem with what I need to use it for now is that it creates the new attribute as a linked expression. For this new project it cannot be linked.
My goal ---
I need to have a journal go into File Attributes, create TOOL_ID2 attribute, and make its value match whatever the TOOL_ID attribute's value has.
I then need to change the TOOL_ID attribute's value to a specific number. "HMS12345S_123S" would work.
The user needs to then run a program on the file
Then I am guessing it would be another journal would reverse the process of the first Journal. Change the existing TOOL_ID value back to the original number that is now in TOOL_ID2.
Next it wouldn't be necessary but I would like to delete the TOOL_ID2 attribute at the end of the second attribute.
The problem is we have a program we run our files to do something. A new customer we have uses completely different types of TOOL_ID values and our program needs a specific format to the value. So we are looking to change the TOOL_ID to a number that will allow the program to run, then after we run it, change the TOOL_ID back to the original number again.
With my current journal for copying an attribute it is linked to the original and so when we change the TOOL_ID to a value that works, the TOOL_ID2 automatically changes and we lose the original number.
I am not any good with code but if I can add to the journal I have to break the link, I think I might be able to make the rest work with two separate journals. One before the program is ran and a second journal to change the attribute back after the program is run.
My goal ---
I need to have a journal go into File Attributes, create TOOL_ID2 attribute, and make its value match whatever the TOOL_ID attribute's value has.
I then need to change the TOOL_ID attribute's value to a specific number. "HMS12345S_123S" would work.
The user needs to then run a program on the file
Then I am guessing it would be another journal would reverse the process of the first Journal. Change the existing TOOL_ID value back to the original number that is now in TOOL_ID2.
Next it wouldn't be necessary but I would like to delete the TOOL_ID2 attribute at the end of the second attribute.
The problem is we have a program we run our files to do something. A new customer we have uses completely different types of TOOL_ID values and our program needs a specific format to the value. So we are looking to change the TOOL_ID to a number that will allow the program to run, then after we run it, change the TOOL_ID back to the original number again.
With my current journal for copying an attribute it is linked to the original and so when we change the TOOL_ID to a value that works, the TOOL_ID2 automatically changes and we lose the original number.
I am not any good with code but if I can add to the journal I have to break the link, I think I might be able to make the rest work with two separate journals. One before the program is ran and a second journal to change the attribute back after the program is run.