Hi all, is there a way to get all material streams in a flowsheet including their properties?
I can get a specific Material Stream of a flowsheet with: DWSIM.Interfaces.IFlowsheet.GetFlowsheetSimulationObject(<objectname>)
DWSIM.Interfaces.IFlowsheet.GetFlowsheetSimulationObject(<objectname>)
And Material streams of a Unit operation by: StreamListExtender.GetInletMaterialStream Method
StreamListExtender.GetInletMaterialStream Method
But shouldnt there be a way to get all Material streams, with all properties, like the Materialstream table in the GUI?
You can use iterate through Flowsheet.SimulationObjects.Values and check which ones are material streams.
Log in to post a comment.
Hi all,
is there a way to get all material streams in a flowsheet including their properties?
I can get a specific Material Stream of a flowsheet with:
DWSIM.Interfaces.IFlowsheet.GetFlowsheetSimulationObject(<objectname>)
And Material streams of a Unit operation by:
StreamListExtender.GetInletMaterialStream Method
But shouldnt there be a way to get all Material streams, with all properties, like the Materialstream table in the GUI?
You can use iterate through Flowsheet.SimulationObjects.Values and check which ones are material streams.