Specifications

Extensibility 3-65
3-65
10. Select Make Saturate.dll command from the File menu.
Creating the Extension Definition File (EDF)
In order to complete the Unit Operation Extension, you must
create an EDF. This is done through the HYSYS Extension View
Editor.
1. Open the Extension View Editor. Open a new EDF by doing
one of the following:
Select New command under File menu in the menu bar
Use the hot key combination CTRL N
•Click the New File icon
IsKnownFeedArray =
hyFeedStrm.ComponentMolarFraction.IsKnown
If Not IsKnownFeedArray(0) Then
Call
hyStatus.AddStatusCondition(slMissingOptiona
lInformation, 8, "Unknown Feed Composition")
OK = False
End If
Check to see if the feed stream’s
composition has been set. If it has not,
an error message is sent to the status bar
indicating an Unknown Feed Composition.
If CalcError(0) Then
Call hyStatus.AddStatusCondition(slError,
9, "Feed Cannot be Saturated with Water")
OK = False
End If
If the first error flag has been tripped, it
sends a message to the status bar
indicating that the Feed Cannot be
Saturated with Water.
If CalcError(1) Then
Call hyStatus.AddStatusCondition(slError,
10, "Water is required in Water Stream")
OK = False
End If
If the second error flag has been tripped,
it sends a message to the status bar
indicating that Water is Required in the
Water Stream.
End Sub
Signifies the end of the sub-routine. This
line does not need to be added.
Code Explanation
If it has been installed, the Extension View Editor is found in
the same launch point in the Start menu as HYSYS.
For more information on
installing and accessing
the View Editor, see
Section 4.1.1 -
Accessing the View
Editor.
New File icon