Hi ,
thanks for your advice, but in my environment "SendKeys" didn't work.
I'm using Rose under NT. I tried "Wait", but this also didn't work.
Again, thanks for your help.
Doerthe
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet am: Montag, 20. November 2000 17:07
> An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: Re: (ROSE) REI: Relocating a use case?
>
>
> On 11/20/00 15:19:32 you wrote:
> >
> >Hi everybody,
> >
> >Very urgent problem:
> >I'm trying to reorganize a model with rose script. Is there
> any way to
> >move a use case from one category into another? I only found
> a method
> >for classes (category.relocateClass aClass), but nothing similar for
> >use cases.
> >Thanks for your help,
> > D rthe
>
> Guten Tag,
> There is unfortunately no command to relocate usecases.
> However, you can use the following method which calls the menubar to
> do it for you using sendkeys:
>
> Sub RelocateUseCase(x As usecase, cat As category)
> Dim cd As classDiagram
> Set cd = cat.classDiagrams.getat(1)
> added = cd.adduseCase(x)
> cd.activate
> cd.Update
> Dim vistas As Itemviewcollection
> Set vistas = cd.Itemviews
> For i = 1 To vistas.count
> vistas.getat(i).setselected FALSE
> Next i
> cd.getViewFrom(x).setselected TRUE
>
>
> SendKeys "^L"
> End Sub
>
************************************************************************
* 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/products/rose/usergroups/rose_forum.jtmpl
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*
* To: [EMAIL PROTECTED]
* Subject:<BLANK>
* Body: unsubscribe rose_forum
*
*************************************************************************