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

EPM Document, link to previous revision

SOLVED
Highlighted
Newbie

EPM Document, link to previous revision

Hi,

I have a current wt.epm.document object in wt.maturity.PromotionNotice.

Don't you know, how can I get the link to previous revision (to be exact, the latest iteration of previous revision)?

I'd like to compare this two versions via custom class but I have no idea how to get the previous version.

We are using Windchill 9.1.

Tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: EPM Document, link to previous revision

wt.fc.QueryResult qrPreviousVersions = wt.vc.VersionControlHelper.service.allVersionsOf(epmMasterCurrentVersion);

Will return ordered list of latest iterations of all revisions, from most recent one to the first one (eg. E.8; D.5; C.2; B.1; A.7).

View solution in original post

2 REPLIES 2

Re: EPM Document, link to previous revision

I've found some related stuff here:

http://communities.ptc.com/message/236558

http://communities.ptc.com/thread/53151

I hope I'll be able to use it.

Re: EPM Document, link to previous revision

wt.fc.QueryResult qrPreviousVersions = wt.vc.VersionControlHelper.service.allVersionsOf(epmMasterCurrentVersion);

Will return ordered list of latest iterations of all revisions, from most recent one to the first one (eg. E.8; D.5; C.2; B.1; A.7).

View solution in original post