That seemed to work just fine, including creating the flow diagram image
Ok, after that I get a different error, and I also get the same missing attribute error when I try again with Automation2; AttributeError Traceback (most recent call last) Cell In[1], line 67 65 co2_fraction = 0.7 # 70% CO2 66 h2s_fraction = 0.3 # 30% H2S ---> 67 density = calculate_mixture_density(pressure, temperature, co2_fraction, h2s_fraction) 68 print(f"Density of CO2 and H2S mixture at {pressure} Pa and {temperature} K is {density} kg/m³") Cell In[1], line 34, in calculate_mixture_density(pressure,...
Ok, after that I get a different error; AttributeError Traceback (most recent call last) Cell In[1], line 67 65 co2_fraction = 0.7 # 70% CO2 66 h2s_fraction = 0.3 # 30% H2S ---> 67 density = calculate_mixture_density(pressure, temperature, co2_fraction, h2s_fraction) 68 print(f"Density of CO2 and H2S mixture at {pressure} Pa and {temperature} K is {density} kg/m³") Cell In[1], line 34, in calculate_mixture_density(pressure, temperature, co2_fraction, h2s_fraction) 31 interop = Automation3() 33 #...
Thanks Daniel. When I use the Automation2(), I get the following; NullReferenceException: Object reference not set to an instance of an object. at DWSIM.Automation.Automation2..ctor() in C:\Users\Daniel\source\repos\DanWBR\dwsim\DWSIM.Automation\Automation.cs:line 135 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeConstructorWithoutAlloc(Object obj, Boolean wrapInTargetInvocationException)...
I'm having the similar issues as reported in this post , with errors using Automation2() and then it telling me that it could not load System.Windows.Forms when I tried Automation3() I am frankly not sure if I should be using Python, or IronPython, whether the version of Python matters, or whether there are other libraries / frameworks I should have also installed It would be really helpful for me if someone could outline how someone starting from a fresh system (no DWSIM, no Python, no NET frameworks...
I'm having the similar issues as reported in this post , with errors using Automation2() and then it telling me that it could not load System.Windows.Forms when I tried Automation3() I am frankly not sure if I should be using Python, or IronPython, whether the version of Python matters, or whether there are other libraries / frameworks I should have also installed It would be really helpful for me if someone could outline how someone starting from a fresh system (no DWSIM, no Python, no NET frameworks...
I'm having the similar issues as reported in this post , with same errors using Automation2() and then it telling me that it could not load System.Windows.Forms when I tried Automation3() I am frankly not sure if I should be using Python, or IronPython, whether the version of Python matters, or whether there are other libraries / frameworks I should have also installed It would be really helpful for me if someone could outline how someone starting from a fresh system (no DWSIM, no Python, no NET...
I'm having the similar issues as reported in this post , with same errors using Automation2() and then it telling me that it could not load System.Windows.Forms when I tried Automation3() I am frankly not sure if I should be using Python, or IronPython, whether the version of Python matters, or whether there are other libraries / frameworks I should have also installed It would be really helpful for me if someone could outline how someone starting from a fresh system (no DWSIM, no Python, no NET...