Copy Primary file to attachment on check in and lifecyclestate
Version: Windchill 12.1
Use Case: For exporting packages/deliveries we want the filenaming to be consistent: number_iteration_name_lifecyclestatus This is currently achieved by using the afterEDRloader script, and works on all published files, that are renamed and set as an attachment. We would like to do the same with the files where there is not generated a representation (currently CSV and ZIP). Suggestions to do this would be appreciated.
Description:
For exporting packages/deliveries we want the filenaming to be consistent: number_iteration_name_lifecyclestatus
This is currently achieved by using the afterEDRloader script, and works on all published files, that are renamed and set as an attachment.
We would like to do the same with the files where there is not generated a representation (currently CSV and ZIP).
Suggestions to do this would be appreciated.
One suggestion that I would like to validate the idea of before starting on an implementation:
Could we utilize the Custom Publishing filtering method to call a function that will copy the primary file to an attachment (similar to the afterEDRloader scripts)?

