RobotStudio event

How to resolve the error in try catch block ?

vikram6892
edited August 2018 in RobotStudio
I want to build a Robot based on the link http://developercenter.robotstudio.com/robotstudio/api_reference?Url=html/a63094bb-1e05-4d31-8686-1437eb34519c.htm

While debugging, I get an exception.


How to resolve this error ?

Answers

  • DenisFR
    DenisFR ✭✭✭
    Hello,
    You have to catch InvalidOperationException:
    <div>...<br></div><div>catch (InvalidOperationException e)</div><div>{</div><div>&nbsp; // Do what you want</div><div>}<br></div><div>catch</div><div>{</div><div>...</div>


    ☑️2024 - RobotStudio® User Group

  • vikram6892
    edited August 2018
    Hello Denis,

    Thank you for your answer. Now I can build the code. But I could not see any robot created in Robotstudio. I used Robotstudio Addin Template and to create the robot. Is it correct ? If not, what is the solution ? How the robot model should be created and viewed ?

    Thanks in advance
  • DenisFR
    DenisFR ✭✭✭
    Hello,
    RobotStudio AddIn is not to create new robot. Only to add some new features to RS.

    You don't need to develop AddIn to add robot. It's on the main RS.
    You can have a look to this video:
    Or search for RobotStudio tutorials.



    ☑️2024 - RobotStudio® User Group