Class FrameCollection
Represents a collection of Frames in a Station.
Inheritance
FrameCollection
Assembly: ABB.Robotics.RobotStudio.Stations.dll
Syntax
public class FrameCollection : ICollection, IEnumerable<Frame>, IEnumerable
Examples
Get FramesCollection.
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();
}
Properties
Count
Declaration
public virtual int Count { get; }
Property Value
IsSynchronized
Declaration
public virtual bool IsSynchronized { get; }
Property Value
Item[Int32]
Declaration
public Frame this[int index] { get; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
Parent
Declaration
public ProjectObject Parent { get; }
Property Value
SyncRoot
Declaration
public virtual object SyncRoot { get; }
Property Value
Methods
Add(Frame)
Declaration
public void Add(Frame frame)
Parameters
Type |
Name |
Description |
Frame |
frame |
|
Contains(Frame)
Declaration
public bool Contains(Frame obj)
Parameters
Type |
Name |
Description |
Frame |
obj |
|
Returns
CopyTo(Frame[], Int32)
Declaration
public void CopyTo(Frame[] array, int index)
Parameters
CopyTo(Array, Int32)
Declaration
public virtual void CopyTo(Array array, int index)
Parameters
GetEnumerator()
Declaration
public virtual IEnumerator GetEnumerator()
Returns
Remove(Frame)
Declaration
public void Remove(Frame frame)
Parameters
Type |
Name |
Description |
Frame |
frame |
|
ToArray()
Declaration
Returns