How do you retrieve the latest revision of an item_id in NXOpen(CS)?
Solution
ListingWindow lw = theSession.ListingWindow; Tag partTag; Tag[] revs; int count; string revid;
theUFSession.Ugmgr.AskPartTag("000108", out partTag); theUFSession.Ugmgr.ListPartRevisions(partTag, out count, out revs); theUFSession.Ugmgr.AskPartRevisionId(revs[count - 1], out revid); lw.Open(); lw.WriteLine("Count="+count+" LATEST REV="+revid);
Output from information window ItemRevision in RAC
Hardware/Software Configuration
Platform: AMD64 OS: windows OS Version: 10-2004 Product: NX Application: SYSENG Version: V1926 Function: NXOPEN