Hi,
You can use qualifiedName to check whether it's the one you want. Check out following from rose help menu: Description This function retrieves the qualified name of a model element. The qualified name includes the names of the packages to which the element belongs. This allows the name to resolve to a specific class, since Rational Rose allows multiple classes of the same name to exist in a model, as long as they are in different packages Examples: �The qualified name of the SubsystemView Class is: Logical View::Physical Classes::SubsystemView Syntax Set theName = theElement.GetQualifiedName () Hope it helps. / dan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Richmond Sent: Wednesday, November 28, 2001 4:28 PM To: [EMAIL PROTECTED] Subject: (ROSE) RoseScript help needed - traversing packages Greetings, I know this is an easy question, but I haven't been able to track it down. I would greatly appreciate any help! I want to (using REI) work with classes that are in a certain package that is several packages deep. For example: "Logical View::Package Alpha::Package Beta::Participating Classes" Also note that there are other packages in the model named "Participating Classes" and several of the class names in this package are listed elsewhere so I can't simply search for one of these names. What I am looking for is a way to get a hold of a given class (say class1) that resides in the above mentioned package structure. Any help would be greatly appreciated. Thanks in advance, Bill _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ************************************************************************ * 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 * *************************************************************************
