Load Mechanism from .rslib file
Bene
✭
Hello,
I´m currently working on the integration of the functionality of the ABB.Robotics.PC API into a plugin for our main workflow software.
For the ABB.Robotics.PC API this made no problem so far.
Furthermore, I tried to calculate the inverse kinematic with the Mechanism.CalculateInverseKinematics Method.
So I wanted to create a Mechanism from a robot .rslib file with the GraphicComponentLibrary.
But this never relay worked ... just occasionally ( I can not think of any causal relation when it worked) I could access the DocumentInfo of the Loaded Robot File.
Most of the time it gives me this Error:
1. Solution exception:The type initializer for 'ABB.Robotics.RobotStudio.Stations.GraphicComponentLibrary' threw an exception.
So my question would be:
Is it actually possible to Load a Mechanism from a .rslib file and calculate the InverseKinematic as a Plugin of a different (c#) Software?
And if Yes, how? what do I miss?
Thank you in advance
Grüße
Benedikt
Here is the part of the very basic code:
using System;
using System.Collections.Generic;
using ABB.Robotics.RobotStudio;
using ABB.Robotics.RobotStudio.Stations;
protected override void SolveInstance()
{
string filePath = "the .rslib";
ABB.Robotics.RobotStudio.Stations.Mechanism mecha = (Mechanism) GraphicComponentLibrary.Load(filePath, true).RootComponent.Copy();
}
0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings