But the method GetFlowsheetSimulationObject('FS-03') or GetObject('FS-03') returns None, and fs_object in my case does not contain an attribute Fsheet.
returns a list that does not contain an object "FS-O3"
1) How can I refer correctly to the subflowsheet, inside the main flowsheet?
2) I also got stuck on the question: how to get the final value of the spreadsheet cell, which was calculated using the formula inside the spreadsheet?
Are there any tips or examples?
Hello, Daniel!
My flowsheet includes subflowsheet "FS-03" as an element as shown in the screenshot.
I am trying to get the subflowsheet item as you pointed out in the topic:
https://sourceforge.net/p/dwsim/discussion/scripting/thread/69416729/
But the method GetFlowsheetSimulationObject('FS-03') or GetObject('FS-03') returns None, and fs_object in my case does not contain an attribute Fsheet.
Also, code
returns a list that does not contain an object "FS-O3"
1) How can I refer correctly to the subflowsheet, inside the main flowsheet?
2) I also got stuck on the question: how to get the final value of the spreadsheet cell, which was calculated using the formula inside the spreadsheet?
Are there any tips or examples?
Thank you!
Replace this
by this
Thank you, Daniel!
As far as I understand, the rest of the code is correct and in this way i can refer to the elements of the subflowsheet?
I don't see anything wrong, it should work...
Notice that the object id is FS-03 with a zero, not with an "O".