Skip to main content
1-Visitor
Oct 14, 2013 1:36 PM UTC
Question

Remove attachments when doing Revision

We keep a dxf file as attachment to the drawing A. When doing revision the attachment of the A versionis copyed to the new B revision. If the process that should generate a new B-version dxf fails we end up with a wrong A version dxf file attached to the B version of the drawing. How can we automatically delete that attachment when doing revision ?


Regards,
Bernard

6 replies

14-Alexandrite
Oct 15, 2013 3:20 PM UTC

Not exactly what you are asking, but worth metioning and investigating.


There is a Windchill Preference to determine handling of secondary contentwhen Help Center.

Translate
1-Visitor
Oct 16, 2013 11:04 AM UTC

I don't find this in Windchill 9.1, is this only introduced from version 10 on maybe ?


Regards,
Bernard

Translate
1-Visitor
Oct 18, 2013 5:06 PM UTC

Bernard,


I don't think there is an OOTB way to do this however, I have coded our workflow such that inappropriate content (was well as inappropriate associations) are deleted.


To delete the content, either Primary of Secondary (attachments), you can delete either the HolderToContent link or the ApplicationData.


David Graham



In Reply to Bernard Wielfaert:



We keep a dxf file as attachment to the drawing A. When doing revision the attachment of the A versionis copyed to the new B revision. If the process that should generate a new B-version dxf fails we end up with a wrong A version dxf file attached to the B version of the drawing. How can we automatically delete that attachment when doing revision ?


Regards,
Bernard


Translate
1-Visitor
Oct 19, 2013 3:27 PM UTC

David,


Translate
1-Visitor
Oct 21, 2013 10:18 AM UTC


Bernard,


2 approaches could be

1) Have a workflow triggered from the initial state (state which the new revision goes into). Use code inside the workflow to delete the attachments.

2) Have an event listener on the revise event, which will delete the attachments.
Translate
12-Amethyst
Oct 10, 2016 5:07 PM UTC

We are looking for the same functionality: don't copy over the attached secondary documents at revise. Any solutions available that we can reuse without reinventing the wheel? I would be very interested!

Translate