Hi,

Rose packages are represented by the Category object in the REI. Make sure
you dim your package variables as RoseCategory and try the AddCategory
method:
Set newPackage = LogicalView.AddCategory("newPackage")

Very sincerely,
Rose Grissinger
Technical Writer
Rational Software

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 3:24 AM
To: [EMAIL PROTECTED]
Subject: (ROSE) Rose API, how tocreate a new package




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