On Error Resume Next
Set iRose = GetObject(, "Rose.Application")
If iRose Is Nothing Then
' Set roseApp = CreateObject("Rose.Application")
MsgBox "Rose not launched!"
Exit Sub
End If
iRose.ExecuteScript "C:\Temp\test.ebs"
Set iRose = GetObject(, "Rose.Application")
If iRose Is Nothing Then
Set iRose = CreateObject("Rose.Application")
End If
If Option1.Value = True Then
iRose.Visible = True
End If
'Create a couple of hidden properties for "Logical View" package for my parameters
Dim pkgLV As Object
Set pkgLV = iRose.CurrentModel.RootCategory ' RootCategory is the Logical View package
If Not pkgLV.CreateProperty("myParams", "Param1", strParam, "String") Then
MsgBox "ERROR: Failed to create Param1"
End If
If Not pkgLV.CreateProperty("myParams", "Param2", "Param2 Value", "String") Then
MsgBox "ERROR: Failed to create Param2"
End If
iRose.ExecuteScript "C:\Temp\test.ebs"
MsgBox RoseApp.CurrentModel.RootCategory.GetPropertyValue("myParams", "Param1")
MsgBox RoseApp.CurrentModel.RootCategory.GetPropertyValue("myParams", "Param2")
End Sub
From: Dan Liu [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 10:29 AM
To: 'Kennedy, Patrick'; [EMAIL PROTECTED]
Subject: RE: (ROSE) RoseScript and VB
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kennedy, Patrick
Sent: Thursday, November 21, 2002 8:17 PM
To: 'Dan Liu'; [EMAIL PROTECTED]
Subject: RE: (ROSE) RoseScript and VBCheck out the following, might help,
http://solutions.rational.com/solutions/
Solution Id: 9832
WINDOWS: How to pass parameters to Rational Rose scripts?Patrick Kennedy
Rational Support-----Original Message-----
From: Dan Liu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: (ROSE) RoseScript and VB
Hi, all
I am execute a RoseScript file from a VB program, using method call
RoseApp.ExecuteScript .
Is there any way to pass a parameter from the VB program to the RoseScript,
so the RoseScript can use the parameter while runing.Appreciate your helps. /dan
************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* 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
*************************************************************************
