Hi!
Trying to import a SmartComponent but I cant find how.
Want something like: (but for SmartComponent or .rslib file instead)
String fileName = @“C:Program FilesABB Industrial ITRobotics ITRobotStudio 5.15ABB LibraryTraining ObjectsTable.sat”;
GraphicComponent gc = null;
if (File.Exists(fileName))
{
gc =
Part.Load(fileName);
gc.Name =
Path.GetFileNameWithoutExtension(fileName);
station.GraphicComponents.Add(gc);
if (station.GraphicComponents.TryGetGraphicComponent(gc.Name, out gc))
{
station.Selection.Add(gc);
}
}
Best Regards,
Jens