# Is that possible to change the diode/IGBT models inside the simulation scripts?

**URL:** https://forum.plexim.com/t/is-that-possible-to-change-the-diode-igbt-models-inside-the-simulation-scripts/873
**Category:** PLECS
**Tags:** simulation-script, thermal-model
**Created:** [October 8, 2020, 12:25am UTC](https://forum.plexim.com/t/is-that-possible-to-change-the-diode-igbt-models-inside-the-simulation-scripts/873 "2020-10-08T00:25:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kna1231](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kna1231](https://forum.plexim.com/u/kna1231)
#### Post date: [October 8, 2020, 12:25am UTC](https://forum.plexim.com/t/is-that-possible-to-change-the-diode-igbt-models-inside-the-simulation-scripts/873/1 "2020-10-08T00:25:14Z")

</div>

Hi,

I want to generate the simulation of thermal model under different manufacturers’ diode/IGBT models automatically using the simulation scripts.

Is that able to achieve by writing the scripts? If yes, any example on that?

---

<div class="post-metadata">

### Author: ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)
#### Post date: [October 8, 2020, 12:04pm UTC](https://forum.plexim.com/t/is-that-possible-to-change-the-diode-igbt-models-inside-the-simulation-scripts/873/2 "2020-10-08T12:04:35Z")

</div>

Hello, this is definitely possible. I assume you want to run a simulation with Part A, then a second simulation with Part B, and so on? You can use a Reference variable for the thermal description assigned to each semiconductor component, and then assign the filename to that part using this syntax in your script: partname = ‘file:filename’; where filename is the relative path to the .xml file, and without the file extension. There is no example for this, but if you have any issues, post your files and I can help you get it working.
