Click or drag to resize
FrameCollection Class
Represents a collection of Frames in a Station.
Inheritance Hierarchy
SystemObject
  ABB.Robotics.RobotStudio.StationsFrameCollection

Namespace:  ABB.Robotics.RobotStudio.Stations
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public class FrameCollection : ICollection, 
	IEnumerable, IEnumerable<Frame>

The FrameCollection type exposes the following members.

Properties
Methods
Examples
Get FramesCollection.
Frame Properties Example
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();
}
Version Information

Supported in: 1.0.0.0
See Also