SetScreen

Parent Previous Next

SetScreen

This function opens a Graphic Document in the Screen specified object.


Function Definition:


void SetScreen(String GraphicName);


Set the Graphic Document that will be opened in the determined Screen Object.

.     string GraphicName: A String parameter containing the name of the Graphic Document that will be opened in the Screen.



void SetScreen(String GraphicName, String tag);


Set the Graphic Document that will be opened in the determined Screen Object and a tag that will be set as Screen Tag of the Document.


.     string GraphicName: A String parameter containing the name of the Graphic Document that will be opened in the Screen.

.     string tag: A String parameter containing the name of the Tag that will be set as Screen Tag in the Graphic Document.



void SetScreen(String GraphicName, Dictionary`2 tags);


Set the Graphic Document that will be opened in the determined Screen Object and a dictionary containing the tag(s) name and the Screen Tag(s) name of the Document.


.     string GraphicName: A String parameter containing the name of the Graphic Document that will be opened in the Screen.

.     dictionary tags: A dictionary parameter containing the name of the tag and the name of the Screen Tag in the Graphic Document.



Example:


Open the graphic document 'main' in the Screen object named 'ScreenCenter'.

  


ScreenCenter.SetScreen("main");

 



Open the graphic document 'main' in the Screen object named 'ScreenCenter' and passing the tag "tank1" to a Screen Tag in the "main" document.

  


ScreenCenter.SetScreen("main", "tank1");




 Open the graphic document 'main' in the Screen object named 'ScreenCenter' and passing the dictionary < String,String> with the Screen Tag(s) name(s) and tag(s) Name(s) to the "main" document.

  


System.Collections.Generic.Dictionary<string,string> dic = new System.Collections.Generic.Dictionary<string,string>();

dic.Add("ScreenTag1", "NewTag1"); // ScreenTag Name and then the Tag Name

dic.Add("ScreenTag1", "NewTag2"); // ScreenTag Name and then the Tag Name

ScreenCenter.SetScreen("main", dict);