Hi guys,
I justed started to create add-ins for Robot Studio.
For my first add-in (in C#) I’m trying to create an add-in that converts coordinates from CSV to rob targets.
Everthing works fine when I test it from Visual Studio, but I can’t get it to work on another pc however.
I followed all the steps from “Packing an Add-In” (http://developercenter.robotstudio.com/robotstudio/api_reference).
- I have a folder called “RobTargetCreatorCSV”
- In the folder are the folders “Documentation”, “Information”, “Robotstudio”, manifest.xml and thumbnail.png.
- In the robotstudio is an folder Add-In that contains the created dll file and rsaddin file.
- I zipped the complete folder and changed the extension to .rsaddin
Running the add-in on another computer results in the following error:
RobotStudio
.NET exception: Data at the root level is invalid. Line 1, position 1.
============================================
Base
exception: XmlException
Data
at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XsdValidatingReader.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at RobotStudio.ExtensionManagement.AddinManager.TryAddRsAddin(String
rsaddinPath)
My manifest file looks like the example file.
Maybe the problem could be in the rsaddin file from the robotstudio/add-in folder.
I changed the path to the location of the add-in, but I’m not sure that is necessary? The path is:
<Path>c:\Program Files (x86)\ABB Industrial IT\Robotics IT\RobotStudio 6.05\Bin\Addins</Path>
The complete rsaddin file:
<?xml version="1.0" encoding="utf-8" ?>
<RobotStudioAddIn xmlns="urn:abb-robotics-robotstudio-addin"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:abb-robotics-robotstudio-addin file:///C:\Program%20Files%20(x86)\ABB%20Industrial%20IT\Robotics%20IT\SDK\RobotStudio%20SDK%206.05\RobotStudioAddin.xsd"
autoLoad="false">
<!-- Make sure the ApplicationId is unique -->
<ApplicationId>com.mycompany.RobTargetCreatorCSV</ApplicationId>
<!--DisplayName>RobTargetCreatorCSV</DisplayName-->
<!--DisplayVersion>1.0.0.1</DisplayVersion-->
<!--Description>RobTargetCreatorCSV description</Description-->
<AddInType>General</AddInType>
<Assembly>
<FileName>RobTargetCreatorCSV.dll</FileName>
<!-- In a production scenario, change Path to the directory where your add-in is installed -->
<Path>c:\Program Files (x86)\ABB Industrial IT\Robotics IT\RobotStudio 6.05\Bin\Addins</Path>
</Assembly>
<!-- By default, the minimum host version is equal to the SDK version -->
<!-- You can change this if your add-in supports older RobotStudio versions -->
<MinimumHostVersion>6.05</MinimumHostVersion>
<Dependencies>Station</Dependencies>
<!-- Change Platform to x86 if your add-in uses any native x86 components -->
<Platform>Any</Platform>
</RobotStudioAddIn>
In my plugin I also added an image to a button. Do I need to place that image somewhere in the folder structure before packing the add-in?
What steps am I missing here? Any ideas?
Thanks in advance.
cheers,
Wessel