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
stringThe name of the dummy element in the subscript.
dummy
IActionableElementThe 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
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
intThe ID of the dummy element in the subscript.
dummy
IActionableElementThe 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
intThe ID of the dummy element in the subscript.
dmaid
intDataMiner Agent ID of the dummy element.
eid
intElement 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
stringThe name of the dummy element in the subscript.
dmaid
intDataMiner Agent ID of the dummy element.
eid
intElement 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.