hi
iam doing exergy analysis in hysys of a material stream for that i need to specify user variables i wnated help in this regard i have find the code for the ambient temperature which is
sub variable changed()
on error goto errorhandler
dim MS as streams
dim ST as process stream
dim x as internalvariablewrapper
dim TO as double
TO=activevariablewrapper.variable.getvalue()
set MS=activeobject.flowsheet.materialstreams
for each ST in MS
set= ST.getuservariable("amb temp")
X.variable.setvalue(TO)
next ST
errorhandler:
end sub
for other variables the author says you only need to change user name in the code of ambient temp[erature so if iam writing this code for ambient pressure so what changes should i have to made