FrameCollection Class |
Namespace: ABB.Robotics.RobotStudio.Stations
public class FrameCollection : ICollection, IEnumerable, IEnumerable<Frame>
The FrameCollection type exposes the following members.
Name | Description | |
---|---|---|
Add | ||
Contains | ||
CopyTo(Array, Int32) | ||
CopyTo(Frame, Int32) | ||
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | ||
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Remove | ||
ToArray | ||
ToString | (Inherited from Object.) |
Project.UndoContext.BeginUndoStep("FrameProperties"); try { Station station = Station.ActiveStation; // Create a frame. Frame myFrame = new Frame(); myFrame.Name = "MyFrame_1"; // Add the frame to the station. station.Frames.Add(myFrame); // Make the frame twice as big. myFrame.FrameSize = myFrame.FrameSize * 2; // Make sure the name of the frame and the frame itself is displayed in the graphics. myFrame.ShowName = true; myFrame.Visible = true; // Move the frame 100 mm along the X-axis. myFrame.Transform.X = myFrame.Transform.X + 0.1; // Output the transform of the frame. Logger.AddMessage(new LogMessage("Transform: x:" + myFrame.Transform.X.ToString() + " y:" + myFrame.Transform.Y.ToString() + " z:" + myFrame.Transform.Z.ToString() + " Rx:" + myFrame.Transform.RX.ToString() + " Ry:" + myFrame.Transform.RY.ToString() + " Rz:" + myFrame.Transform.RZ.ToString())); } catch { Project.UndoContext.CancelUndoStep(CancelUndoStepType.Rollback); throw; } finally { Project.UndoContext.EndUndoStep(); }