Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Import library/smartcomponent

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

Comments




  • Solved using GraphicComponentLibrarylibrary = GraphicComponentLibrary.Load(smartComponent_path, true);
     
    /Jens

    Jens Kullberg2013-03-14 04:02:06