Hi Valentin,
Thanks for your effort on developing the code,
While executing the code for he following line, The path doesn't redirected to actual path perhaps it is moving on to other path .
dssText.Command = 'Redirect ' + Main_path + '/Network_data/Network_model/OpenDSS_NewCircuit.txt'
Screenshot attached for reference , please suggest me further to resolve the same
Thanks,
Narayana