Hello,
This is my first time to write up my question in Cheresources.com. I am a beginner using user variable in HYSYS.
Simply, I want to make one of stream temperature popped up in msgbox, but keep failed. The below is my coding. Can you help find which one should be added or changed?
Sub PostExecute()
Dim hyCase as Object
Dim hystream as processstream
Dim T as double
set hystream = hycase.Flowsheet.Materialstreams.index("stream name")
T= hystream.Temperaturevalue
MsgBox "temperature" & T
End Sub
I appreciate your attention.