RobotStudio event

Finding example code for building SmartComponents

Maxim Riabichev
edited April 2020 in Developer Tools
When I did my bachelor thesis (find the report attached), I created a SmartComponent for Virtual Commissioning. I used the existing SmartComponents available in RobotStudio as inspiration for it.

In this post I'll explain how to find their source code, a.k.a. CodeBehind.

In Visual Studio there's an extension called ILSpy. With it you can browse DLL-files directly in Visual Studio.

It looks like this:

As you can see in the screenshot the CollisionSensor SC's CodeBehind can be found on the right.

The DLL-file containing the CodeBehind can be located in this location C:\Program Files (x86)\ABB\RobotStudio 2019\Bin and it is called RobotStudio.Services.SmartComponents.dll

The respective SmartComponents .xml file can unfortunately not be browsed in a similar manner (as far as I know).

The .xml which I created for my thesis can be found here: Perhaps it can be used as inspiration.

Maxim Riabichev
PC Software Support Engineer