Hi Daniel,
sorry to bother you with another bug report - especially on a friday! I want to use multiple instances of a custom python script in the same simulation. To avoid copy-pasting the same code multiple times and then having a headache about keeping all codes updated, I want to outsource the python script to one flowsheet and then use the "Custom Model"->"Flowsheet" block to reuse the same flowsheet multiple times.
When trying to calculate the main Flowsheet, DWSIM crashes. I couldn't get a screenshot (the message shows maybe for half a second before crashing), but there is a error reading "invoke or begininvoke cannot be called on a control until the window handle has been created".
On another note unrelated to this bugreport, it would be great to be able to connect energy-streams to external flowsheets as well.
Hi Linus, can you send me the files in private?
Yes, I'll prepare a minimal example where the error happens. I can't attach files via private messages, where sould I send them to? Thanks!