×

Newsletter


Generating a net via script

3 replies [Last post]
ronald.boese@ch...
ronald.boese@ch.abb.com's picture
Offline
Joined: Jun 22 2012

Hallo everyone,

 

I want to create a simple model in EMTP that has many almost identical parts. For example 100 capacitors in series, but each one with a different capacitance. Is there a way to quickly create this circuit with a script?

It is very tedious to double click on all devices and change each and every parameter every time there is a new model.

Cheers,

 

Ronald

ali.el-akoum
ali.el-akoum's picture
Offline
Joined: Jan 1 1970
Hi Ronald,I've uploaded an

Hi Ronald,

I've uploaded an exemple in the exchange platform (Javascript : Add C devices + change values + connect devices)

Best Regards,

Ali

ronald.boese@ch...
ronald.boese@ch.abb.com's picture
Offline
Joined: Jun 22 2012
Hi Ali,Thank you for your

Hi Ali,

Thank you for your reply. I tried to run the file you sent me, but I got the following javascript error:

 

Source:'Mircosoft JScript runtime error'

Line:410 File: c\program files (x86)\emtpworks 2.6\infoscripts\branches\rlc_m.dwj Char:7

Error:0 ''undefined' is null or not an object'

(null)

 

What do you think is wrong here? Thank you for your support

 

Regards,

 

Ronald

ali.el-akoum
ali.el-akoum's picture
Offline
Joined: Jan 1 1970
Hi Ronald,The last version of

Hi Ronald,

The last version of the script was for EMTP 2.5.

I've uploaded a new version (for EMTP 3.0).

Javascript : Add C devices + change values + connect devices (EMTP 3.0)

 

Regards,

Ali