You must use RoseCategory like this :

Dim newPackage As RoseCategory
Set LogicalView.AddCategory("newPackage")

You can consult the library RationalRose.tlb for details about the API
Rose.

Regards,
B. Johra



                                                                                       
          
                    gebhard.ebeling@delp                                               
          
                    hiauto.com                  Pour :  [EMAIL PROTECTED]        
          
                    Envoy� par :                cc :                                   
          
                    owner-rose_forum@rat        Objet :      (ROSE) Rose API, how 
tocreate a new 
                    ional.com                   package                                
          
                                                                                       
          
                                                                                       
          
                    26/07/01 10:23                                                     
          
                    Veuillez r�pondre �                                                
          
                    gebhard.ebeling                                                    
          
                                                                                       
          
                                                                                       
          






Hi all,
I try to create a nre package in the logical view via the Rose API (VB).

The sub function looks like:
...
Private Sub createSubPackage_Click()
Dim theModel   As RoseModel
Dim LogicalView As RosePackage
Dim newPackage As New RosePackage



If projectName.Text = "" Then
    MsgBox "Please insert the project name"
    projectName.SetFocus
    Exit Sub
End If
    Set theModel = lRoseApp.CurrentModel
    Set LogicalView = theModel.GetAllCategories.GetFirst("Logical View")
    ????????????
    newPackage.Name = "newPackage"
    LogicalView.Add newPackage
End Sub
...

The problem is how to create the new package, the help in Rose is not very
satisfiing.
Does anybody know how to create the new package ???

CU
Gebhard

Gebhard Ebeling
Software Developement
Delphi Delco Electronics GmbH
Mobile Multimedia Design Center
Tec Center
D-31162 Bad Salzdetfurth
Germany
Phone   +49 (0)5063 990-369
email:[EMAIL PROTECTED]


************************************************************************
* 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
*
*************************************************************************

Reply via email to