Table of Contents

Method SelectDummy

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

SelectDummy(string, IActionableElement)

Links a dummy from the main script to a dummy from a subscript.

public void SelectDummy(string name, IActionableElement dummy)

Parameters

name string

The name of the dummy element in the subscript.

dummy IActionableElement

The dummy element to link.

Examples

var dummy = engine.GetDummy("myDummy");

var script = engine.PrepareSubScript("My SubScript");
script.SelectDummy("matrix", dummy);
script.SelectScriptParam("input", Convert.ToString(inputId));
script.SelectScriptParam("output", Convert.ToString(outputId));
script.StartScript();

Exceptions

ArgumentNullException

name is null
-or-
dummy is null.

SelectDummy(int, IActionableElement)

Links a dummy from the main script to a dummy from a subscript.

public void SelectDummy(int id, IActionableElement dummy)

Parameters

id int

The ID of the dummy element in the subscript.

dummy IActionableElement

The dummy element to link.

Examples

var dummy = engine.GetDummy("myDummy");

var script = engine.PrepareSubScript("My SubScript");
script.SelectDummy(1, dummy);
script.SelectScriptParam("input", Convert.ToString(inputId));
script.SelectScriptParam("output", Convert.ToString(outputId));
script.StartScript();

Exceptions

ArgumentNullException

dummy is null.

SelectDummy(int, int, int)

Links a dummy from the main script to a dummy from a subscript.

public void SelectDummy(int dummyid, int dmaid, int eid)

Parameters

dummyid int

The ID of the dummy element in the subscript.

dmaid int

DataMiner Agent ID of the dummy element.

eid int

Element ID of the dummy element.

Examples

var script = engine.PrepareSubScript("My SubScript");

script.SelectDummy(1, 200, 400);
script.SelectScriptParam("input", Convert.ToString(inputId));
script.SelectScriptParam("output", Convert.ToString(outputId));
script.StartScript();

SelectDummy(string, int, int)

Selects a dummy from the main script to be used as a dummy in the subscript.

public void SelectDummy(string name, int dmaid, int eid)

Parameters

name string

The name of the dummy element in the subscript.

dmaid int

DataMiner Agent ID of the dummy element.

eid int

Element ID of the dummy element.

Examples

var script = engine.PrepareSubScript("My SubScript");

script.SelectDummy("matrix", 200, 400);
script.SelectScriptParam("input", Convert.ToString(inputId));
script.SelectScriptParam("output", Convert.ToString(outputId));
script.StartScript();

Exceptions

ArgumentNullException

name is null.