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

How to Prevent Attachments from being Duplicated During Save As on CAD Documents?

Highlighted
Moonstone

How to Prevent Attachments from being Duplicated During Save As on CAD Documents?

Is there a way to prevent attachments from being duplicated when performing a Save As action on a CAD Document in Windchill? 

 

When publishing secondary content such as PDF or STEP as an attachment to the CAD Document, the Save As process moves the source object's attachments forward to the new object. This results in old attachment(s) with the old name(s). When the CAD drawing or CAD model is checked in again, it will have multiple attachments; the old one(s) and the new one(s).

 

Maybe there is a more elegant way of removing the old attachment when publishing the new PDF or STEP attachment? In some cases, the CAD document also contains other attachments, so removing all attachments while creating the new attachment would not be the best solution. 

 

There is an existing idea for this functionality if you'd like to vote it up.

https://community.ptc.com/t5/Windchill-Ideas/Prevent-Remove-attachments-from-copying-over-in-Save-As... 

1 REPLY 1
Highlighted

Re: How to Prevent Attachments from being Duplicated During Save As on CAD Documents?

There is a way to achieve the desired effect but it’s not OOTB.

 

Here’s the big picture. Definitely works.

 

You probably know that OOTB you can display the Save As History on an EPMDoc. That’s where you start. A listener could be written to detect when an object has been created by Save As.

When a Save As is detected code can automatically run that would delete the published data from the newly created CAD Document.

 

If you want to filter to keep (or delete) published data files based on the published data's file format, filename and/or role (or whatever) that too is very doable.

 

Announcements