Hello, So the issue was that the installed Python interpreter on the workstation was 32-bit instead of 64-bit. Now everything works!
Yes, I can open DWSIM.UI.Desktop.exe manually.
Hi Daniel, Yes, I set it to the right folder, the code can access all the .dll files that I reference, the error occurs only when I call interf = Automation2(). This is my code: import pythoncom pythoncom.CoInitialize() import clr from System.IO import Directory, Path, File from System import String, Environment dwsimpath = "C:\\Users\\alfonso.villegas\\AppData\\Local\\DWSIM7\\" Directory.SetCurrentDirectory(dwsimpath) clr.AddReference(dwsimpath + "CapeOpen.dll") clr.AddReference(dwsimpath + "DWSIM.Automation.dll")...
Hi Daniel, Yes, I set it to the right folder, the code can access all the .dll files that I reference, the error occurs only when I call interf = Automation2(). This is my code: import pythoncom pythoncom.CoInitialize() import clr from System.IO import Directory, Path, File from System import String, Environment dwsimpath = "C:\\Users\\alfonso.villegas\\AppData\\Local\\DWSIM7\\" clr.AddReference(dwsimpath + "CapeOpen.dll") clr.AddReference(dwsimpath + "DWSIM.Automation.dll") clr.AddReference(dwsimpath...
Hello, I am unfortunately still blocked on this issue... I've tried looking for ways to solve this for the past few days but I have not made any progress. I would really appreciate any hint on how to solve this. Here are a few more information from the Assembly binding log: Message=Could not load file or assembly 'DWSIM.UI.Desktop, Version=7.5.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'DWSIM.UI.Desktop, Version=7.5.5.0,...
Hello, I just changed my workstation and I am now operating on Windows 10 Pro, using Microsoft Visual Studio 2019. Both my old code or the example code snippet to create a flowsheet using Python give the same error: Message=Could not load file or assembly 'DWSIM.UI.Desktop, Version=7.5.5.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. at DWSIM.Automation.Automation2..ctor() Source=C:\Users\alfonso.villegas\source\repos\PythonApplication2\PythonApplication2\PythonApplication2.py...
Hi Daniel, Here are both screenshots.
Hello Daniel, I still have an issue with the setup element matrix... I always get an error saying that the Element Matrix is not defined for my Gibbs reactor. With the new version, I can now open the Element Matrix but the Matrix is completely empty, showing only the name of only one of the reacting compounds and not showing the compound elements either. Also, if I click on "reset" the element matrix, the application crashes. I attach here the errors.log file. Thank you for your amazing work and...