For an NK Router, there is a task type when you create a custom panel and point it at an NK IPS.
Here is an example macro button that does a number of switches. Note that this is not instantaneous and there are 500ms pauses between each switch to avoid congestion on the router's internal bus.
In my example panel, I have an IPS/router selector at the top of the panel. You can edit the top-level of the panel and point it at a specific IPS/router by clicking the "configure" button next to "NK Series Routers" in the source edit mode.
<abs contexttype="nk-router">
<simplegrid height="114" left="5" right="12" style="bg#dark;bdr:etched;" top="5">
<ipslist/>
</simplegrid>
<abs bottom="8" left="5" right="9" style="bdr:etched;bg#dark;" top="122">
<button buttontype="push" height="123" left="11" name="Run Macro" top="7" width="155">
<task tasktype="nk">nk.doSwitch(147, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(148, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(149, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(150, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(151, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(152, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(153, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(154, 126, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(155, 126, 1);</task>
</button>
</abs>
</abs>
#DashBoard