Bill,

property Category.Classes : ClassCollation
- returns all Classes exactly in this package
operation Category.GetAlllClasses : ClassCollection
- returns all Classes of the package _and_ all classes 'below'.

NOTE: same applies for (children) Packages:
Category.Categories : CategoryCollection
Category.GetAllCategories() : CategoryCollection

Every Collection object has a method FindFirst(Search:String) that
returns an Integer for the location in the collection.
Then, use GetAt(Index:Integer) to get exactly the object 
you want to have.

The way to go would be:
- Get the desired Category
- Get the class within the category

Best regards,
Volker
PS: a good example to traverse a model is the script metrics.ebs, included
  in the <RoseInst>/Scripts directory.


-----Ursprungliche Nachricht-----
Von: Bill Richmond [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 28. November 2001 22:28
An: [EMAIL PROTECTED]
Betreff: (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
*
*************************************************************************

Reply via email to