Activity for Lucas Francisco dos Santos

  • Lucas Francisco dos Santos Lucas Francisco dos Santos posted a comment on discussion Python Scripting

    That worked! Thanks a lot Daniel! For the record, one may need to register this new System.Buffers.dll in order to add a reference to it in a python code.

  • Lucas Francisco dos Santos Lucas Francisco dos Santos posted a comment on discussion Python Scripting

    I added reference to System.Buffers.dll, but I still got the same issue: Traceback (most recent call last): File "C:\Users\lfsfr\Desktop\pyDWSIMopt\examples\SMR_LNG\bug_LoadFlowsheet.py", line 33, in <module> flowsheet = interf.LoadFlowsheet(path2sim) System.IO.FileNotFoundException: Não foi possível carregar arquivo ou assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ou uma de suas dependências. O sistema não pode encontrar o arquivo especificado. em SkiaSharp.SKManagedStream.CopyTo(SKWStream...

  • Lucas Francisco dos Santos Lucas Francisco dos Santos posted a comment on discussion Python Scripting

    Hey all, I just updated DWSIM from version 7 to 7.1.2, and I am facing an issue with DWSIM.Automation.Automation2.LoadFlowsheet when loading a DWSIM simulation into my Python package. It was working properly right before updating. Does anybody have the same issue? I am pasting the error verbose here: FileNotFoundException: Não foi possível carregar arquivo ou assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' ou uma de suas dependências. O sistema não pode...

  • Lucas Francisco dos Santos Lucas Francisco dos Santos posted a comment on discussion Python Scripting

    Perhaps the answer is in my previous comment: there must be only one instance of automation manager for multiple flowsheet objects. from DWSIM.Automation import Automation2 if ('interf' not in locals()): # create automation manager interf = Automation2() flowsheet1 = interf.LoadFlowsheet('path/to/simulation1') flowsheet2 = interf.LoadFlowsheet('path/to/simulation2') That worked for me.

  • Lucas Francisco dos Santos Lucas Francisco dos Santos posted a comment on discussion Python Scripting

    Hey Vikram Sundara, Have you figured out how to solve this issue with Automation2()? I am facing the same problem whenever I try to instanciate a second interface object with Automation2().

1