User Activity

  • Modified a comment on discussion Developer's Corner on DWSIM - Open Source Process Simulator

    Dear all! Cloning commit (cccce25) and building it using Visual Studio 2019 DWSIM.sln Debug-x64 under Windows 11 raises an excpetion flag whenever Python.Net is selected under a Python UO or Script Manager. The exception is as follows: System.TypeInitializationException: The type initializer for 'Python.Runtime.UcsMarshaler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly Any ideas how to solve it? UPDATE 1: Trying different commits some of them work and...

  • Modified a comment on discussion Developer's Corner on DWSIM - Open Source Process Simulator

    Dear all! Cloning commit (cccce25) and building it using Visual Studio 2019 DWSIM.sln Debug-x64 under Windows 11 raises an excpetion flag whenever Python.Net is selected under a Python UO or Script Manager. The exception is as follows: System.TypeInitializationException: The type initializer for 'Python.Runtime.UcsMarshaler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly Any ideas how to solve it? UPDATE: Trying different commits some of them work and others...

  • Modified a comment on discussion Developer's Corner on DWSIM - Open Source Process Simulator

    Dear all! Cloning commit (cccce25) and building it using Visual Studio 2019 DWSIM.sln Debug-x64 under Windows 11 raises an excpetion flag whenever Python.Net is selected under a Python UO or Script Manager. The exception is as follows: System.TypeInitializationException: The type initializer for 'Python.Runtime.UcsMarshaler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly Any ideas how to solve it? UPDATE: Trying different commits some of them work and others...

  • Modified a comment on discussion Developer's Corner on DWSIM - Open Source Process Simulator

    Dear all! Cloning commit (cccce25) and building it using Visual Studio 2019 DWSIM.sln Debug-x64 under Windows 11 raises an excpetion flag whenever Python.Net is selected under a Python UO or Script Manager. The exception is as follows: System.TypeInitializationException: The type initializer for 'Python.Runtime.UcsMarshaler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly Any ideas how to solve it? Best regards

  • Posted a comment on discussion Developer's Corner on DWSIM - Open Source Process Simulator

    Dear all! Cloning commit (cccce25) and building it using Visual Studio 2019 DWSIM.sln Debug-x64 under Windows 11 raises an excpetion flag whenever Python.Net is selected under a Python UO or Script Manager. The exception is as follows: System.TypeInitializationException: The type initializer for 'Python.Runtime.UcsMarshaler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly Any ideas how to solve it? Best regards

  • Modified a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    Solution UPDATE: Going through all object contained inside a flowsheet using a for loop. For each object generate a IScript dictionary as follows: import clr import System import uuid clr.AddReference("DWSIM.Interfaces") from System.Collections.Generic import List, Dictionary import DWSIM.Interfaces def createScript(obj_name): #GUID = str(uuid.uuid1()) GUID = obj_name Flowsheet.ScriptCollection.Add(GUID, DWSIM.FlowsheetSolver.Script()) #By not declaring the ID the tabs of each script is not loaded...

  • Posted a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    Solution UPDATE: Going through all object contained inside a flowsheet using a for loop. For each object generate a IScript dictionary as follows: import clr import System clr.AddReference("DWSIM.Interfaces") from System.Collections.Generic import List, Dictionary import DWSIM.Interfaces def createScript(obj_name): #GUID = str(uuid.uuid1()) GUID = obj_name Flowsheet.ScriptCollection.Add(GUID, DWSIM.FlowsheetSolver.Script()) #By not declaring the ID the tabs of each script is not loaded #Flowsheet.ScriptCollection.TryGetValue(GUID)[1].ID...

  • Posted a comment on discussion Python Scripting on DWSIM - Open Source Process Simulator

    Sure, the problem is that I do not know which object is being calculated. Ideally would be to have an event which tells that a new calculation in an object started and which object is being calculated. In that way I can have a single function which is getting that info and doing something instead of having a script link to an event for every object in my flow sheet.

View All

Personal Data

Username:
albertobueno
Joined:
2021-10-26 07:13:26

Projects

  • No projects to display.

Personal Tools