Skip to content

Genies

A genie is a named drawing whose string properties contain %Name% substitutions. One genie serves every instance of a piece of equipment.

Genie parameters

Create a genie in the project tree, draw the equipment and put a substitution such as %Tag%.Run in its tag fields. Parameters need no separate declaration: they are all the %…% names found in the elements.

Drag the genie onto a screen and set its parameters. A value can be a prefix (Pump1, so %Tag%.Run becomes Pump1.Run) or a full tag name. Double-click an instance to open its parameters.

The ShowGeniePopup function opens a genie in a pop-up with substitutions:

Genie: PumpControl
Substitutions: Tag=Pump1; Title=Pump 1

From a script:

HMI.SysFct("ShowGeniePopup", "PumpFace", "Tag=Pump2; Title=Pump 2");

Pump control window