Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Industrial Graphic Editor

Owning object scenario 1

  • Last UpdatedJan 31, 2025
  • 2 minute read

You need to monitor several similar field devices at run time, but don't want all the object windows open at the same time, as this consumes system resources and clutters the display. You can use ShowGraphic() with the OwningObject feature to rapidly switch back and forth between displays using a single interface element — a pushbutton configured with ShowGraphic() script function.

You can use the following script for the purpose:

Dim graphicInfo as aaGraphic.GraphicInfo;

graphicInfo.Identity = "Overview_" + Cp1;

graphicInfo.GraphicName = "Reactor_001.Overview";

graphicInfo.OwningObject = cp1;

ShowGraphic( graphicInfo );

Where cp1 = "Reactor_001", "Reactor_002", or "Reactor_003". Object Reactor_001, Reactor_002, and Reactor_003 derive from the same template $Reactor.

At run time, click the ShowGraphicOverview pushbutton to open the graphic. You can change Reactor_001 to Reactor_002 to switch between the two graphics, as illustrated in the following sequence.

Setting upt a run-time process on a graphic's display

Displaying "Reactor_001":

Setting up "Display a reactor"

Switched to display "Reactor_002" using the configured button:

Setting up display a second reactor

TitleResults for “How to create a CRG?”Also Available in