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,