Specifications

3-10 Creating an Extension
3-10
Once the preliminary definition information is provided, you
specify the variables that the object owns and that are visible to
the user. These variables are of the following types:
Numeric Variables and Text Variables may or may not be
persistent. If they are, their values are stored when the
Simulation Case containing the extension is saved.
Create the Object Property View(s)
A property view for your extension is not necessary, but quite
often you want the user to be able to interact with your object.
The View Editor can be used to create property views for your
object.
Views are created by adding widgets to the DefaultView form.
Select a widget with the secondary mouse button, drag it on to
the DefaultView form, and drop it. You can then position the
widget to your liking. Double-click the widget to access its
Properties property view, from which you can specify detailed
information for the widget. If necessary, you can associate a
variable with the widget.
It is possible to create an EDF with 0 views.
Variable Type Description
Numeric Represent numerical quantities and have a
Variable Type that allows HYSYS to manage Unit
Conversions for the user.
May have zero, one, or two dimensions.
Can also trigger the steady state solver when
they are changed. If this is the case, the variable
operates like other HYSYS variables in that the
solver performs consistency checking when
values are changed.
Text Represents a string.
May be zero- or one-dimensional.
Message Usually associated with buttons in a property view.
Messages are sent through the VariableChanged
method of an extension.
A widget is an equivalent term for a Visual Basic control.
For more information on
the View Editor see
Chapter 4 - Extension
View Editor.