RobotStudio event

Need Assistance for using makro

Options
im had a problem using makro to load a part from library,if anyone who could assist me to overcome these problem,im using RS11 for simulation and programming.

Comments

  • Anders S
    Options
    Hi,
    Here is an example:

                    Station actStn = Project.ActiveProject as Station;
                    string myFolderPath = C:\MyPart.rslib";
                    GraphicComponentLibrary library = GraphicComponentLibrary.Load(myFolderPath, true);
                    GraphicComponent gfxComp = library.RootComponent.CopyInstance();
                    actStn.GraphicComponents.Add(gfxComp);
    Best regards,
    Anders Spaak
    ABB Robotics