RsInstructionCollection Class |
Namespace: ABB.Robotics.RobotStudio.Stations
public class RsInstructionCollection : IList<RsInstruction>, ICollection<RsInstruction>, IEnumerable<RsInstruction>, IEnumerable, ICollection
The RsInstructionCollection type exposes the following members.
Name | Description | |
---|---|---|
Count | ||
IsReadOnly | ||
IsSynchronized | ||
Item | ||
Parent | ||
SyncRoot |
Name | Description | |
---|---|---|
Add(RsInstruction) |
Add an instruction to a path procedure.
| |
Add(RsInstruction, RsInstruction) |
Add an instruction to a path procedure.
| |
Clear | ||
Contains | ||
CopyTo(Array, Int32) | ||
CopyTo(RsInstruction, Int32) | ||
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | ||
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | ||
Insert | ||
MemberwiseClone | (Inherited from Object.) | |
Remove |
Removes an instruction from a path procedure.
| |
RemoveAt | ||
ToArray | ||
ToString | (Inherited from Object.) |
Project.UndoContext.BeginUndoStep("RsMoveInstructionCreate"); try { Station station = Station.ActiveStation; // First import a robot (a mechanism) and add it to the station. // NOTE: Uncomment the following lines and use them insted of the third line with the load command. // NOTE: Be sure to change the path if this is not RobotStudio's installation directory. // string lib = @"C:\Program Files\ABB Industrial IT\Robotics IT\RobotStudio 5.13\ABB Library\Robots\IRB140_5_81__01.rslib"; // GraphicComponentLibrary mechLib = GraphicComponentLibrary.Load(lib, true); GraphicComponentLibrary mechLib = GraphicComponentLibrary.Load(Path.Combine(RobotStudioAPI.DataDirectory, "ABB Library\\Robots\\IRB140_5_81__01.rslib"), true); Mechanism mechGfx = (Mechanism)mechLib.RootComponent.CopyInstance(); mechGfx.Name = "IRB140_5_81__01"; station.GraphicComponents.Add(mechGfx);