Menu â–¾ â–´

Writing Values on the Spreadsheet via a Python Script Unit Operation

2023-10-06
2025-04-28
  • Leandro Favaretto

    Hello guys, I have a custom fermentation block that I want to plot the solution array of the ODE on the Spreadsheet. However I'm finding it difficult to send the data. Here is the piece of code I tried after reading countless posts and tutorials of Python Scripting in DWSIM.

    Spreadsheet = Flowsheet.FormSpreadsheet
    
    
    for i in range(0,n-1):
       Spreadsheet.Worksheets[0].Cells[38+i,0].Data=sol[i,0]
       Spreadsheet.Worksheets[0].Cells[38+i,1].Data=sol[i,1]
       Spreadsheet.Worksheets[0].Cells[38+i,2].Data=sol[i,2]
    

    Assume sol is nx3 array. This is returning:
    6 06/10/2023 18:28:10 Error Error in 'Python.Runtime': 'FormNewSpreadsheet' object has no attribute 'Worksheets' + Info

    Kind regards,

     
    • Daniel Medeiros

      Daniel Medeiros - 2023-10-07

      Spreadsheet = Flowsheet.GetSpreadsheetObject()

       
  • Derrick Bozem

    Derrick Bozem - 2024-03-14

    Writing various educational content has always been a challenge for me. This became especially noticeable when I had to prepare for coursework at a medical university. Fortunately, I found a wonderful nursing writing service that offers an individual approach to each student. This meant that I could discuss the terms of reference with the writers, which gave my work a unique and personal style.

     

    Last edit: Derrick Bozem 2024-03-15
  • Rosalind Perry

    Rosalind Perry - 2025-03-15
    Post awaiting moderation.
  • yamatos wlac

    yamatos wlac - 2025-04-23

    It is this site for playing online slot machines that I liked the most. This site is https://royalfortune-uk.com , and so if you also want to play slot machines, then it is very easy and free to play slot machines and win real money on this site. This site has become the only place for me to play slot machines!

     

    Last edit: yamatos wlac 2025-04-23
  • yamatos wlac

    yamatos wlac - 2025-04-26

    Hello everyone. I really enjoyed playing online slot machines on this site in Australia – Stellar Spins Casino . It’s possible to play all the newest online slots here and win real money just by playing. It's very easy to play all the new slots on this site and to complete a short registration! Goodbye!

     

    Last edit: yamatos wlac 2025-04-26
  • yamatos wlac

    yamatos wlac - 2025-04-28

    Hello! I would like to recommend you a very cool and very high quality site where I was able to play slot machines freely and easily. This site is https://beton.ua/promotions and therefore I advise you to play on this site, because here are really the best slot machines that you can play easily and freely. so good luck playing on this site!

     
    😄
    1

    Last edit: yamatos wlac 2025-04-28
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.