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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Version sync in Workflow

smcvr
15-Moonstone

Version sync in Workflow

I want to customize the version synchronizations for the part, cad and drawing data we use in windchill. I don't want to do this manually. Is it possible to create a flow for this process and take part data codes from users in this flow and synchronize these codes to the most current version in the workflow? If we do the version synchronization process in the workflow, will there be a problem in connecting the data with each other?

 

3 REPLIES 3

Yes, this is possible.

 

I created a workflow that not only synchronizations the revision of the WTPart, WTDocument and CAD Documents but it also cleaned up all incorrect links that linked the WTPart to the CAD Documents and/or the WTDocument.

 

It worked like this.

The WTPart's number and rev were used to find WTDocument with same number and rev and/or CAD Documents with same number (less extension) and rev.

If WTDocument with same number was found but no match rev existed the WTDoc was automatically revised to the same rev as the WTPart and that new WTDoc was linked to the WTPart.  The same happened for CAD Documents (Drawing and Model).

 

All iterations of the  WTPart rev were then checked to make sure none of the iterations were linked to a WTDocument with same number but not the same rev.  If such a link was found the link was automatically deleted. The same happened for the CAD Documents.

 

All of this ensured company standards were followed without relying on humans to get it right 100% of the time. I think we all know that will never happen. I'm certainly not going to bet the ranch on it.

 

Obviously, this required writing Java code to achieve but hey, that was the fun part.😀

Code was bombproof.  Problem solved.

smcvr
15-Moonstone
(To:d_graham)

Thank you very much @d_graham 

I will ask you something. If I send my private e-mail address, can you send me a screenshot of the codes and workflow? I understood what you said in the abstract, but I need to see an example.

@smcvr 

Yes, feel free to send me your work email address in a private message.

 

David

Announcements
Top Tags