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.

NOTE:

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:

  1. In the workspace draw a textbox or rectangle, select Snippet, and then select Status(Stroke).
  2. NOTE: The Status(Stroke) snippet can used for other components as well.

  3. Drag and drop the Status(Stroke) snippet over the selected object in the workspace. For example:
  4. Right-click the component and select Configure.
  5. Select the configuration for the component:
    1. Select the Sources.
    2. Select the Managers.
    3. Select the Modules.
    4. Select the Registers.
  6. Select Apply.
  7. Enter a file name, and then select Save.

To view the snippet behavior:

  1. In a web browser, log in to PME Web Applications, and then navigate to Diagrams > Graphic Diagrams.
  2. Select the new TGML file from the left panel Diagram Library. The following windows appear for each device status:
    • OFF
    • ON
    • Disconnected