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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

EPMDocument new Iteration from previous

ChristopheLaudo
1-Newbie

EPMDocument new Iteration from previous

Hi,

I am struggling with a Windchill Batch that would do the following:
Basically if the CAD Documents has 2 iterations:
19 and 6 I would like to create an iteration 20 made of the iteration 6.

I thought that the merge() Method would be great: "Creates a new iteration of srcVersion and re-parents it as the latest iteration of destVersion" but in reality

the rollback() is also interesting but I do not want to delete any iteration
If I create a newIteration which Method will then commit it in the system?

Source code of Batch attached here
3 REPLIES 3

well merge came back with:
error 7(wt.vc.vcResource/42) wt.vc.VersionControlException: Cannot apply merge with non-latest source iteration: wt.epm.EPMDocument:795134

Hi All,

I am opting for the checkout/checking instead of merge/rollbackup

I am having some troubles with the following:
CheckoutLink myCheckOutLink = wt.vc.wip.WorkInProgressHelper.service.checkout(myworkable,
wt.vc.wip.WorkInProgressHelper.service.getCheckoutFolder(),"Batch",true);


It seems that the boolean parameter "allowNonLatestCheckout" set to true is not working:

error 7(wt.vc.wip.wipResource/31) wt.vc.wip.NonLatestCheckoutException:
CAD Part - test.prt, A.1 can not be checked out because it is not the latest iteration.

Anyone used the 9.0 M030/M060 code has the checkout of non latest iteration should be working?
Other suggestions?

Thanks

Well as simple as not forgetting to change the preference setting to allow checkout of non latest iteration also
Top Tags