Status(Stroke) snippet example
When a TGML graphic has a configured Status(Stroke) snippet, the status of the device is displayed in the TGML graphic as follows:
- OFF: Default color is Green
- ON: Default color is Red
- DisConnected: Default color is Yellow
Use this snippet to change the border color of a target object.
For Text or Textbox control, you can edit the status text to be displayed.
For example, by default the below text will be available:
- OFF Text: Inactive
- ON Text: Active
- DisConnected Text: DisConnected
This topic uses an example to illustrate how to configure a Status(Stroke) snippet.
To configure a Status(Stroke) snippet:
- In the workspace draw a textbox or rectangle, select Snippet, and then select Status(Stroke).
- Drag and drop the Status(Stroke) snippet over the selected object in the workspace. For example:
- Right-click the component and select Configure.
- Select the configuration for the component:
- Select the Sources.
- Select the Managers.
- Select the Modules.
- Select the Registers.
- Select Apply.
- Enter a file name, and then select Save.
NOTE: The Status(Stroke) snippet can used for other components as well.
To view the snippet behavior:
- In a web browser, log in to PME Web Applications, and then navigate to Diagrams > Graphic Diagrams.
- Select the new TGML file from the left panel Diagram Library. The following windows appear for each device status:
- OFF
- ON
- Disconnected