cancel
Showing results for 
Search instead for 
Did you mean: 

revision_list property

Phenom
Phenom

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

Re: revision_list property

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
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

Re: revision_list property

Siemens Phenom Siemens Phenom
Siemens Phenom

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

Phenom
Phenom

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

Phenom
Phenom

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