On 11/20/00 15:19:32 you wrote:
>
>
>****** Message from InterScan E-Mail VirusWall NT ******
>
>** No virus found in attached file noname.htm
>
>***************** End of message ***************
>
>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
>
>--
>D rthe Kretschmer mailto:[EMAIL PROTECTED]
>sd&m AG http://www.sdm.de
>software design & management
>Thomas-Dehler-Str. 27 , D-81737 Muenchen, Germany
>Tel +49 89 63812-488 Fax -555
>
>
>
>* 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
>
************************************************************************
* 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
*
*************************************************************************