Exclude a device using javascript

Posted on: Thu, 05/24/2018 - 17:17 By: hamza.sarhrouni_1

Hello evryone,

I need to know if someone among you had already done a script to exclude devices in emtp?

Hi Hamza,

Here is how to do:

var cct = currentCircuit()  //grab the circuit

var dev = cct.devices('Name', 'Dev')[0]  //grab the device named Dev

dev.setAttribute('Exclude', 'Ex')   //exclude the device.

Let me know if anything.