Rational Rose, I got the libraries, but I can t reach the model from VBasic !

irisbenji
09-05-2003, 09:00 AM
My problem seems general, not specific to the software im adding Add-Ins in.
I have problems connecting Visual Basic to Rational Rose Realtime.

I manage to display a MsgBox after a right click somewhere in RoseRT, but if in my visual basic script, there is something about elements from the model of RoseRT, using the RoseRT libraries, it compiles well, and when I run it , i get things like

Object required
Variable or ...not set

If I try this
Dim RoseRT As Object
Set RoseRT = GetObject("D:\Programme\Rational\Rose RealTime\bin\win32\", "RoseRT.exe")


I get ActiveX can t create object


Please help me

irisbenji
09-05-2003, 09:09 AM
I don t know what to do, if i need to create an object to manipulates elemnts from an application (rational rose)from Visual basic.

I tried once with GetObject, but I got ActiveX can t create objects.

Thank u for telling me a bit more

irisbenji
09-06-2003, 04:08 AM
I m using a library for rational rose realtime.
There are elements called Capsules.
I can t command from VBasic 6, the creation of a capsule, although I have the good references.

I don't know how to use objects to solve my problem, i guess i should ?????

I tried lots of things (after getting "Object required") but when i got "Object variable or with block not set" or "ActiveX can't create objects"...I sdpent a lot of time with no progress.

Thanks in advance for telling me

Iceplug
09-06-2003, 07:10 AM
You need to set your objects to a new instance.
Dim X As Capsule
Set X = New Capsule
and then when you are finished with it:
Set X = Nothing
:)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum