Hi everybody,
I was trying to code an add-in, using VSTA on RS 5.12.
Just for trying, I was building the empty C# template (code pasted below).
using System;
using ABB.Robotics.Math;
using ABB.Robotics.RobotStudio;
using ABB.Robotics.RobotStudio.Stations;
using ABB.Robotics.RobotStudio.Environment;
namespace RobotStudioAddIn1
{
public partial class ThisApplication
{
// This method is called when the addin is loaded into RobotStudio.
public void AddInStartup()
{
// TODO: Add startup code here. Create toolbars, etc.
}
// This method is called when the addin is unloaded from RobotStudio.
public void AddInShutdown()
{
// TODO: Add cleanup code here. Remove toolbars, etc.
}
// Default sample Macro. Can be removed.
// Note: A Macro is defined as a “public void” method, with
// no arguments and with a name that starts with “Macro_”
// Other methods will not be visible from the Addin Browser.
public void Macro_Sample1()
{
// TODO: Define actions to perform when the Macro is invoked.
Logger.AddMessage(new LogMessage(“Macro_Sample1 output window message.”));
}
}
}
But when from RS “Add-ins” menu I try to “Load Add-In”, following error is displayed:
RobotStudio .NET exception: Unknown Error: Load Add-In
============================================
Base exception: FileNotFoundException
Could not load file or assembly ‘ABB.Robotics.RobotStudio.CustomContracts, Version=1.1.0.0, Culture=neutral, PublicKeyToken=d4b3480564cc872e’ or one of its dependencies. The system cannot find the file specified.
at ABBInternal.VstaServices.VstaAddIn.LoadAddInInProc()
at ABBInternal.VstaServices.VstaAddIn.Load()
at ABBInternal.StationManagement.VSTA.VstaCommands.VSTABrowser_ExecuteCommand(Object sender, ExecuteCommandEventArgs e)
at ABB.Robotics.RobotStudio.Environment.CommandBarButton.RaiseExecuteCommand()
Some hint?
Thanks.


