How can I call a ironpython script inside an another script
OnkarB
Member Posts: 1 **
I am working on a 2D model of a transformer in Ansys Maxwell. I have created multiple IronPython scripts for assigning excitations, defining materials, creating a mesh, creating a simulation setup, etc. I want to call these scripts inside a script which will be my main script. how can I do that? if someone can provide an example that would be great. Also, I someone could suggest a better way to make code modular would be a great help
Tagged:
0
Answers
-
Are your “scripts” simply lines of code? It seems you need an understanding of creating functions/methods in python. There are resources all over for syntax of how to do this. Here is one link:
0 -
What is your original script look like where you wish to call IronPython scripts?
0