Script to check if superseded

Script to check if superseded

Ove_Sjögren_NTI
Participant Participant
196 Views
1 Reply
Message 1 of 2

Script to check if superseded

Ove_Sjögren_NTI
Participant
Participant

When I use "item.descriptor.dvi" in a script, I get 

Version: 1 Release: A Lifecycle: Production

 Even though the Item is superseded (Version 2 is latest released).

How can I get status to check if it's superseded an later released version exists?

 

Best Regards

Ove

0 Likes
Accepted solutions (1)
197 Views
1 Reply
Reply (1)
Message 2 of 2

sven.dickmans
Autodesk
Autodesk
Accepted solution

You can use item.descriptor.revisionList to access the list of all revisions of an item. Compare this array's list with item.descriptor.dvi to see it got superseded already. Or simply use item.descriptor.dvi.latest to see if this is the latest released version of an item. To prevent access to the working version, you may evaluate item.descriptor.dvi.working.