Whenever I click on open python script editor; error "Object reference not set to an instance of an object." occure.
I already installed ironpython, as well as I also set path for that.
I use the latest version on DWSIM on windows 10 with classic UI.
In cross platfrom it work perfact.
I have the same error. Don't find how to start scripting a Python-UO from 0.
But as you have said, from Cross-platform I am able to write the python script.
Maybe it is the same if add a new script in "script editor" and link it the Python UO object?
Last edit: Mario Cilento 2019-12-23
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
I've a small clarification while waiting the reply of experts.
Normally you don't need to install Ironpython (it is already integrated in the simulator).
But in case you need to work with external libraries of Python, you should install a compatible version of Python and add the path of it in the General Settings (I'm working with Python 3.6 and DWSIM 5.7 update 5).
Best of luck,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Whenever I click on open python script editor; error "Object reference not set to an instance of an object." occure.
I already installed ironpython, as well as I also set path for that.
I use the latest version on DWSIM on windows 10 with classic UI.
In cross platfrom it work perfact.
I have the same error. Don't find how to start scripting a Python-UO from 0.
But as you have said, from Cross-platform I am able to write the python script.
Maybe it is the same if add a new script in "script editor" and link it the Python UO object?
Last edit: Mario Cilento 2019-12-23
Hey,
I've a small clarification while waiting the reply of experts.
Normally you don't need to install Ironpython (it is already integrated in the simulator).
But in case you need to work with external libraries of Python, you should install a compatible version of Python and add the path of it in the General Settings (I'm working with Python 3.6 and DWSIM 5.7 update 5).
Best of luck,
check these links :
https://sourceforge.net/p/dwsim/discussion/scripting/thread/990d1d2212/#95ac
https://sourceforge.net/p/dwsim/discussion/844529/thread/bbe4c144/?limit=25#4099
Please download the installers for v5.8 Update 5 again, I've fixed this error just now: https://sourceforge.net/projects/dwsim/files/DWSIM/DWSIM%205.8/Update%205/
The fixed build version number is 5.8.7296.34218.
Thank you Daniel.
Now it is working perfectly on classic UI.