cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove attachments when doing Revision

Regular Member

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 6

RE: Remove attachments when doing Revision

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


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

RE: Remove attachments when doing Revision

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


Regards,
Bernard

RE: Remove attachments when doing Revision

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


RE: Remove attachments when doing Revision

David,


RE: Remove attachments when doing Revision


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.

Re: Remove attachments when doing Revision

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!

Announcements
LiveWorx Call For Papers Happening Now!