loading
 
Robo API to connect to VB.NET Application
Baranidharan from India  [3 posts]
16 year


      Can any one tell me whether there is method to save the robo file after fine tuning the parameters through API using vb.net application.I can change the parameters using a method called Setparameter written in the robo API. But I could not save the robo file with updated parameters.

    Please Kindly help me to get rid of this issue.Thanks in advance.
Anonymous 16 year
Baranidharan,

We added a 'saveProgram' function similar to the loadProgram function into the API. This did not exist before so you will have to download the latest version of RoboRealm AND download the API.zip file again to get the new RR_COM_API.dll which now includes that function.

http://www.roborealm.com/downloads/API.zip

Let us know if you have any issues using this new method.

STeven.

Baranidharan from India  [3 posts] 16 year

  Dear STeven,

                       Thank you for your reply. As you suggested, I downloaded the API.ZIP file from the link you mailed.I have registered the API using regsvr32 and also i updated in the Vb.net reference.But i could not get the method called "saveprogram".

                        Awaiting for your response!!

Baranidharan.
Baranidharan from India  [3 posts] 16 year

  Dear STeven,

                       Thank you for your reply. As you suggested, I downloaded the API.ZIP file from the link you mailed.I have registered the API using regsvr32 and also i updated in the Vb.net reference.But i could not get the method called "saveprogram".

                        Awaiting for your response!!

Baranidharan.
Anonymous 16 year
Baranidharan,

Ok, looks like that new method did not get correctly added to the COM object. Please download API.zip again and repeat the same process.

http://www.roborealm.com/downloads/API.zip

To quickly test you can see the test_save.wbs script in the WScript  folder that you can run from the command prompt. It should cause whatever is being used in RoboRealm to be saved to c:\temp\red.robo. Note that RR needs to be running with the API turned on for this to work.

As that script is quite small it is repeated here.

'----//-----

set rr=CreateObject("RoboRealm.API.1")

' open RoboRealm if not already running
rr.Open "c:\www\RoboRealm\bin\RoboRealm.exe", 6060

if not rr.Connect("localhost") then
  WScript.Echo "Could not connect to RoboRealm Server"
  WScript.Quit(EXIT_INVALID_INPUT)
else

  ' run a .robo program
  rr.saveProgram "c:\temp\red.robo"

end if

'----//----

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index