Don't know of an existing script, but you can use getUniqueID to retrieve the ID. You would then need to flag the duplicates. Here's a short example of retrieving the IDs for classes:
' script to print out ID's of Classes Sub Main viewport.open viewport.clear Dim cc As classCollection Dim c As class Set cc = Roseapp.currentmodel.getallclasses For i = 1 To cc.count Set c = cc.getat(i) Print c.name, c.getUniqueID Next i End Sub Patrick Kennedy Rational Support > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, November 14, 2001 6:14 AM > To: [EMAIL PROTECTED] > Subject: Re: (ROSE) Duplicate IDs > > > > > Is there a script available that will actually list out the > objects with > conflicting IDs? > > It is very time-consuming to have to go through the .mdl and > .cat files to > find the conflicts and sort them out. Also, I don't trust > the auto-fix > stuff anyway, as no doubt problems will arise in the model as > a result of > Rose attempting to sort them out. > > Haydn > > > > > > > Annamalai > > Viswanathan To: > [EMAIL PROTECTED] > <vishu@ration cc: > [EMAIL PROTECTED] > al.com> Subject: Re: > (ROSE) Duplicate IDs > > > 13/11/2001 > > 14:00 > > > > > > > > > > Haydn, > > You must set FixDuplicateIds to Yes the first time. This will fix the > duplicate ids. > Then when you shut Rose down be sure to set FixDuplicteIds to > No. If you > dont then Rose > will attempt to reset the ids each time the model is loaded. > > Vishu > > > > [EMAIL PROTECTED] wrote: > > > Hi all, > > > > I have a model which contains a controlled unit. > Unfortunately, when I > > start up Rose I get the good ol' duplicate ID warning in > the log when the > > controlled unit loads. Having used the > "FixDuplicateIds=Yes" option, the > > log kindly informs me that it has given all the duplicates new Id's. > > However, if I then save the model without doing anything > else, Rose does > > not save anything and I am constantly getting the log > message stating > that > > the duplicate ids are being fixed as the controlled unit > loads each time > I > > start up. Surely the fact that the ids have changed should > force a save > > and remove these warnings once and for all. > > > > Why does Rose not save the new ids out? > > > > TIA, > > > > Haydn > > > > -- > > Haydn Robinson, Software Engineer Sophos > Anti-Virus > > email: [EMAIL PROTECTED] > http://www.sophos.com > > US Support: +1 888 SOPHOS 9 UK Support: +44 1235 > 559933 > > > > > ************************************************************** > ********** > > * Rose Forum is a public venue for ideas and discussions. > > * For technical support, visit http://www.rational.com/support > > * > > * Admin.Subscription Requests: [EMAIL PROTECTED] > > * Archive of messages: > http://www.rational.com/support/usergroups/rose/rose_forum.jsp > > * Other Requests: [EMAIL PROTECTED] > > * > > * To unsubscribe from the list, please send email > > * > > * To: [EMAIL PROTECTED] > > * Subject:<BLANK> > > * Body: unsubscribe rose_forum > > * > > > ************************************************************** > *********** > > -- > --- > Annamalai "Vishu" Viswanathan -- [EMAIL PROTECTED] > Rose Technical Support Engineer > Rational WW Customer Service > > We value your feedback and encourage you to respond to the Rational > Customer Service survey you may receive regarding this case. > > --- > > > > > -- > Haydn Robinson, Software Engineer > Sophos Anti-Virus > email: [EMAIL PROTECTED] http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Admin.Subscription Requests: [EMAIL PROTECTED] * Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * * To: [EMAIL PROTECTED] * Subject:<BLANK> * Body: unsubscribe rose_forum * ************************************************************************* ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Admin.Subscription Requests: [EMAIL PROTECTED] * Archive of messages: http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * * To: [EMAIL PROTECTED] * Subject:<BLANK> * Body: unsubscribe rose_forum * *************************************************************************
