Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

revision_list property

Hi,

 

my requirement is to get the latest ItemRevision from Item using SOA if an itemRevision is input.

 

My question is: will the last revision in revision_list property always give the latest revision ?

 

In other words, does revision_list property always returns itemRevision in sequence of creation ?

 

Thanks!

4 REPLIES
Solution
Solution
Accepted by topic author xplm2005
‎02-16-2017 08:02 AM

Re: revision_list property

I think "sequence of creation" are the right words to use. Revisions are ordered by creation date.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Solution
Solution
Accepted by topic author xplm2005
‎02-16-2017 08:02 AM

Re: revision_list property

Something like this works for me but I never checked if I really get the lastest revision if users are doing some weird things on revising in TC.

 

ItemRevision lastRev = item.Revision_list[item.Revision_list.Length - 1]

 

Re: revision_list property

Thank you for your responses.

 

@xtof: That's what concerns me and therefore want to make sure if there could be such a case.

 

I could not find anything in TC Doc about this, do you guys have an idea ?

Re: revision_list property

After the discussion with my colleague today the requirement was clarified and as the requirement does not demand that accuracy regarding creation date.

 

So I can conclude this discussion here. Thanks again for your responses Smiley Happy