RFLP_2DRepresentation
General Information
This opening ID is invoked every time an object is displayed in the 2D graph to customize the 2D representation graphic properties.
Important: To avoid impact on performances (too many server calls), the RFLP_2DRepresentation business rule must not be defined in the Data Setup. |
The table below provides you with information related to the definition of the Opening ID.
PLM Opening ID: | RFLP_2DRepresentation |
Customization intent: | Computation |
Execution context: | Client |
Input Objects
Input objects must be of the following type:ThisObject
.
They must be function or logical
component. The script is
called in computation mode. That means that ThisObject
cannot be
modified by the rule, so only methods to read attributes are
authorized on ThisObject
(otherwise an error message is
displayed).
Context Object Parameters
Parameters: Object providing contextual information of the opening (current user identification, role, project, organization and message) and allowing the specification of the graphic properties to overwrite.
Parameter Name | Type | Read/Write | Comments |
---|---|---|---|
SetAttributeString | String | Compute | To valuate the graphic properties to be applied on the 2D graph without modifying ThisObject |
Sample
In this sample, we apply a red background color to the 2D representation if the value of the attribute "V_description" is equal to "Critical":
If (ThisObject.V_description=="Critical"
Parameters->SetAttributeString("BackgroundColor","255 | 0 | 0
Definition:
ThisObject
: Current function or logical component.V_description
: Attribute on ThisObject.Parameters
: All graphic properties are valuated on this object and applied on the 2D graph without modifying ThisObject.SetAttributeString
: Knowledge method to valuate the attribute.BackgroundColor
: Keyword for the background color.255 | 0 | 0
: RGB color code.