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

We are happy to announce the new Windchill Customization board! Learn more.

EPM Document, link to previous revision

Stanley
1-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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

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.

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).

Top Tags