RobotStudio event

RobotStudio 6.0 AddIn not loaded

Hello ,
I´m new to create a RobotStudio AddIn. I downloaded RS6.0 and the RS 6.0 SDK / PC SDK 6.0. I´m using Visual Studio Express 2013. I created a new project using the RobotStudio Sample Add-In template and just compiled it. (.NetFramework 4.5). I placed the dll in the AddIn folder , however when starting RobotStudio the Add-In is not loaded. I get the following exception.

RobotStudio .NET exception: Exception has been thrown by the target of an invocation.
============================================
Base exception: TargetInvocationException
Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at RobotStudio.ExtensionManagement.Addin.TryLoad()
Inner exception: NullReferenceException
Object reference not set to an instance of an object.
   at RobotStudioSampleAddin1.Class1.RegisterCommand(String id)
   at RobotStudioSampleAddin1.Class1.AddinMain()

I´m using Windows 7 / 32 Bit and running a full version of Robotstudio

Answers

  • <font face="Arial, Verdana"><span style="font-size: 10pt; line-height: normal;">Have you create the .rsaddin file ? </span></font><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;">This is a sample, you can create it with notepad.</div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div><div style="font-family: Arial, Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"><br></div><div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><?xml version="1.0" encoding="utf-8" ?></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><RobotStudioAddIn xmlns="urn:abb-robotics-robotstudio-addin"</span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">                  autoLoad="true"></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <!--DisplayName>Addin </DisplayName--></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <!--DisplayVersion>1.0.0.1</DisplayVersion--></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <!--Description>My new Addin.</Description--></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <!--Image>MyAddin.png</Image--></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <!--StartPage show="false"--></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  </span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <AddInType>General</AddInType></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <Platform>Any</Platform></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <Assembly></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">    <FileName>Addin.dll</FileName></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  </Assembly></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">  <Dependencies>None</Dependencies></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"></RobotStudioAddIn></span></font></div></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">After create this file, rename the .txt on .rsaddin.</span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">Just put this file with your .dll</span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">Try it,</span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;"><br></span></font></div><div><font face="Arial, Verdana"><span style="font-size: 13.3333330154419px; line-height: normal;">best regards</span></font></div>