Skip to main content
1-Visitor
May 19, 2014
Solved

EPM Document, link to previous revision

  • May 19, 2014
  • 2 replies
  • 2331 views

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.

Best answer by Stanley

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

2 replies

Stanley1-VisitorAuthor
1-Visitor
May 19, 2014

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.

Stanley1-VisitorAuthorAnswer
1-Visitor
May 20, 2014

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