Frame Class |
Namespace: ABB.Robotics.RobotStudio.Stations
public sealed class Frame : ProjectObject, IHasTransform, IAttachableChild, IAttachableParent
The Frame type exposes the following members.
Name | Description | |
---|---|---|
Attributes |
Returns a collection of dynamic attributes attached to the object
(Inherited from ProjectObject.) | |
Children |
Enumerates all child objects.
(Inherited from ProjectObject.) | |
ContainingProject |
Returns the Project that this object is a part of, or null if it is
not part of a Project.
(Inherited from ProjectObject.) | |
DisplayName |
Gets the name of the the object that should be displayed in the GUI.
(Inherited from ProjectObject.) | |
FrameSize |
Gets or sets the size of the graphical frame.
| |
FrameType |
Gets or sets a value indicating how the frame is used.
| |
Name |
Gets or sets the name of the object
(Overrides ProjectObjectName.) | |
Parent |
Returns a reference to the parent Station.
(Overrides ProjectObjectParent.) | |
ShowName |
Gets or sets a value indicating whether the name of the frame will
be displayed in the graphics.
| |
Transform |
Gets the transform of the Frame.
| |
TypeDisplayName |
Gets a localized name for the type of this object.
(Inherited from ProjectObject.) | |
UIVisible |
Gets or sets a value that indicates if this object should be displayed in GUI
such as an object browser.
(Inherited from ProjectObject.) | |
UniqueId |
Gets a persisted, globally unique identifier for this object, that can be used
to find the object using the GetObjectFromUniqueId(String) method.
(Inherited from ProjectObject.) | |
Visible |
Gets or sets a value indicating whether the frame will
be displayed in the graphics.
|
Name | Description | |
---|---|---|
Attach |
Attaches an IAttachableChild to this frame.
| |
CanAttachChild |
Checks if an IAttachableChild can be attached to this frame.
| |
Detach |
Detaches an attached object from this frame.
| |
Equals | (Inherited from Object.) | |
FindObjects |
Recursively finds object that satisfy a condition.
(Inherited from ProjectObject.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Highlight |
Sets the highlight color of the frame to the default highlight color.
| |
Highlight(Color) |
Sets the highlight color of the frame.
| |
ResetHighlight |
Resets the highlight color of the target to the default color.
| |
ToString | (Inherited from ProjectObject.) |
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(); }