Click or drag to resize
SmartComponent Class
Represents a GraphicComponent that contains Properties, I/O Signals, Assets and other GraphicComponents. The behavior of the component is implemented by Code Behind.
Inheritance Hierarchy

Namespace:  ABB.Robotics.RobotStudio.Stations
Assembly:  ABB.Robotics.RobotStudio.Stations (in ABB.Robotics.RobotStudio.Stations.dll) Version: 7.0.8747.636
Syntax
C#
public sealed class SmartComponent : GraphicComponent, 
	IAttachableParent, IHasGraphicComponents, IHasIOSignals, IHasIOConnections, IHasDynamicProperties, 
	IHasPropertyBindings, IHasAssets

The SmartComponent type exposes the following members.

Constructors
  NameDescription
Public methodSmartComponent
Creates and initializes a new SmartComponent object.
Top
Properties
  NameDescription
Public propertyAssets
Gets an AssetCollection that represents all the assets of this SmartComponent object.
Public propertyAttributes
Returns a collection of dynamic attributes attached to the object
(Inherited from ProjectObject.)
Public propertyBindings
Gets an PropertyBindingCollection object that represents all the bindings of this SmartComponent object.
Public propertyCanBeSimulated
Gets or sets a value that indicates whether this SmartComponent object can be simulated, e.g. if the code behind implements the SimTime methods.
Public propertyChildren
Enumerates all child objects.
(Inherited from ProjectObject.)
Public propertyClipPlane
Gets or sets a ClipPlane that will hide all geometry in the negative z space of its transform.
(Inherited from GraphicComponent.)
Public propertyCodeBehindLocation
Gets or sets the the location of the SmartComponentCodeBehind class associated with this component.
Public propertyCode exampleColor
Gets or sets the color of the object in the graphics.
(Inherited from GraphicComponent.)
Public propertyConnections
Gets an IOConnectionCollection that represents all the I/O connections on this SmartComponent object.
Public propertyContainingProject
Returns the Project that this object is a part of, or null if it is not part of a Project.
(Inherited from ProjectObject.)
Public propertyDescription
Gets a localized description for this SmartComponent object.
Public propertyDetectable
Gets or sets a value indicating the the component can be detected by sensors.
(Inherited from GraphicComponent.)
Public propertyDisplayName (Overrides ProjectObjectDisplayName.)
Public propertyFrames
Gets a FrameCollection object that represents all the Frames on this object.
(Inherited from GraphicComponent.)
Public propertyGraphicComponents
Gets a GraphicComponentCollection that represents all the graphic components in this SmartComponent object.
Public propertyIcon
Gets a Image associated with this SmartComponent object.
Public propertyIOSignals
Gets an IOSignalCollection that represents all the I/O signals on this SmartComponent object.
Public propertyIsBaseComponent
Returns true if this is a built-in base component.
Public propertyIsEditable
Returns true if IsProtected is false and IsBaseComponent is false and Library is null.
Public propertyIsProtected
Gets or sets a value that indicates if the internal structure of this component should be hidden in the GUI, and if the component should be locked for editing.
Public propertyLanguageOverride
Forces this component to use the specified language for resources rather than the language set in Options.
Public propertyLibrary
Returns the GraphicComponentLibrary that contains the definition of this component, or null.
(Inherited from GraphicComponent.)
Public propertyName
Gets or sets the name of the object
(Inherited from ProjectObject.)
Public propertyOpacity
Gets or sets the opacity of the object.
(Inherited from GraphicComponent.)
Public propertyCode exampleParent
The Parent property returns a reference to the parent GraphicComponent object.
(Inherited from GraphicComponent.)
Public propertyCode examplePickingEnabled
Gets or sets if the component can be picked and selected in 3D graphic windows.
(Inherited from GraphicComponent.)
Public propertyProperties
Gets a DynamicPropertyCollection that represents all the properties of this SmartComponent object.
Public propertyRoleObject
Gets or sets an object that defines the role of this SmartComponent.
Public propertySavedStates
Gets a SavedStateCollection that contains saved states for this object.
Public propertyStateCache
Returns a collection that can be used by code behind to cache state information for this SmartComponent object.
Public propertyCode exampleTransform
Gets the Transform of the object.
(Inherited from GraphicComponent.)
Public propertyTypeDisplayName
Gets a localized name for the type of this object.
(Inherited from ProjectObject.)
Public propertyUIVisible
Gets or sets a value that indicates if this object should be displayed in GUI such as an object browser.
(Inherited from ProjectObject.)
Public propertyUniqueId
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.)
Public propertyCode exampleVisible
Gets or sets whether the object should be displayed in the graphics or not.
(Inherited from GraphicComponent.)
Top
Methods
  NameDescription
Public methodAttach
Attaches a child object to this SmartComponent.
Public methodCanAttachChild
Test if the supplied child can be attached.
Public methodCode exampleCopy
Creates a deep copy of the object.
(Inherited from GraphicComponent.)
Public methodCode exampleCopyInstance
Creates a copy but keeps a connection to the definition of the GraphicComponent, typically in a Library definition.
(Inherited from GraphicComponent.)
Public methodDelete
Deletes this object permanently.
(Inherited from GraphicComponent.)
Public methodCode exampleDeleteGeometry
Recursively deletes all CAD geometry.
(Inherited from GraphicComponent.)
Public methodDeleteGeometry(Boolean) Obsolete. (Inherited from GraphicComponent.)
Public methodDetach
Detaches a child object from this SmartComponent.
Public methodCode exampleDisconnectFromLibrary
Moves the definition to the Station or Project. This causes the Library property to return Null.
(Inherited from GraphicComponent.)
Public methodEquals (Inherited from Object.)
Public methodExportXml(String)
Exports this to an XML file
(Inherited from GraphicComponent.)
Public methodExportXml(String, String)
Exports this to an XML file
(Inherited from GraphicComponent.)
Public methodFindObjects
Recursively finds object that satisfy a condition.
(Inherited from ProjectObject.)
Public methodGetBoundingBox(Boolean)
Computes the (axis-aligned) bounding box for this object.
(Inherited from GraphicComponent.)
Public methodCode exampleGetBoundingBox(Boolean, Vector3, Vector3) Obsolete.
Computes the (axis-aligned) bounding box for this object.
(Inherited from GraphicComponent.)
Public methodGetBoundingBox(Boolean, IntPtr, IntPtr) Obsolete. (Inherited from GraphicComponent.)
Public methodStatic memberGetCollectionObjects
Returns the objects contained by a SmartComponent that represents a collection.
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetNormalToSurface Obsolete.
Calculates the closest point and the corresponding normal.
(Inherited from GraphicComponent.)
Public methodGetResourceString
Returns a localized resource string
Public methodGetType (Inherited from Object.)
Public methodCode exampleHighlight(Boolean)
Highlights the object using the default highlight style and color.
(Inherited from GraphicComponent.)
Public methodHighlight(Boolean, Color)
Highlights the object using a specified color.
(Inherited from GraphicComponent.)
Public methodInitializeCodeBehind
Initializes the associated SmartComponentCodeBehind, if it exists. If this Smart Component has an associated Code Behind Assembly is necessary to call this method before a Smart Component is saved to library. The Code Behind assembly will be loaded, if its not already loaded, and the OnInitialize(SmartComponent) method will be called.
Public methodCode exampleMoveDefinitionToLibrary
Moves the definition to a new Library.
(Inherited from GraphicComponent.)
Public methodRaiseIOSignalChanged
Raises the IOSignalChanged event. Call this method to force update of the GUI of a signal.
Public methodRaisePropertyChanged
Raises the PropertyChanged event. Call this method to force update of the GUI of a property.
Public methodSetMaterial
Sets the material of the object.
(Inherited from GraphicComponent.)
Public methodToString (Inherited from ProjectObject.)
Public methodCode exampleTryGetNormalToSurface
Calculates the closest point and the corresponding normal.
(Inherited from GraphicComponent.)
Top
Events
  NameDescription
Public eventIOSignalChanged
Raised when any property except Value changes on one of the signals in the IOSignals collection
Public eventIOSignalValueChanged
Raised when the Value property changes on one of the signals in the IOSignals collection
Public eventPropertyChanged
Raised when any property except Value changes on one of the properties in the Properties collection
Public eventPropertyValueChanged
Raised when the Value property changes on one of the properties in the Properties collection
Top
Version Information

Supported in: 1.0.0.0
See Also