RSSDK: How to create a VB.NET RobotStudio add-in
Got this question on support so I thought I would make a short topic on it.
In this example I will do it in Visual Studio 2010, but it
works the same in 2012.
Start Visual Studio
File > New > Project (select a Visual Basic ?_" Class
Library ?_" project)
<?: prefix = v ns = "urn:schemas-microsoft-com:vml" />
<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" />
In the Solution Explorer right click the project and select
[Add Reference]
Click the [Browse] tab and browse to
C:Program FilesABB Industrial ITRobotics ITRobotStudio 5.15Bin
and add the following:
ABB.Robotics.Math.dll
ABB.Robotics.RobotStudio.dll
ABB.Robotics.RobotStudio.Environment.dll
ABB.Robotics.RobotStudio.Stations.dll
ABB.Robotics.RobotStudio.Stations.Forms.dll
Now we need to use those references, in VB that is ?_oImports?__
put it at the top.
Imports
ABB.Robotics.Math
Imports ABB.Robotics.RobotStudio
Imports ABB.Robotics.RobotStudio.Environment
Imports ABB.Robotics.RobotStudio.Stations
Imports ABB.Robotics.RobotStudio.Stations.Forms
Then add this comment text for clarity:
' To
activate this Add-In you have to copy the dll to the RobotStudio Add-In
directory, typically
' C:Program FilesCommon FilesABB
Industrial ITRobotics ITRobotStudioAddIns
Last we need the entry point (this is the only part that tells RS that it
is actually an addin.
Public Class
Class1
'This is the entry point for the Add-In
Public Shared Sub AddinMain()
'Logger.AddMessage("Hello World!")
End Sub
End Class
Now if you don?_Tt want to do that every time you can make it
into a template:
File > Export Template
Developer Center
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings