Change EMLF boundary condition with Python

Hi all,
For my EMLF simulations, I need to adjust the voltage in order to get the appropriate current and then run the simulations again. How can I programmatically change the boundary condition of an existing simulation?

Easiest way is to right click on your simulation and click on 'To Python..'

Run this to make sure it works. It should create a new simulation with the exact same parameters. You can then change whichever parameter you like and run it again

Note: If I remember correctly, if you use 'To Python', a lot of the default settings won't show up in the code. if they don't show up (like the boundary condition),change them to some non-default value in your simulation before using 'To Python'.