
Extensibility 3-53
3-53
Extension Definition Files
An extension definition file is required for the custom unit
operation’s visual interface within the HYSYS environment and
also for the object interface to the ActiveX Server DLL. Variables
that are used through the interface need to be declared in the
EDF.
3.10.1 ExtnUnitOperationCont
ainer Interface
The ExtnUnitOperationContainer interface is passed to an
extension Unit Operation in its Initialize method.
Execute Extension Unit Operations perform their calculations within their
Execute method. This method is called by the Steady State
Solver during the Execute Passes; it must not be called directly
by the extension.
The Execute method is called whenever a stream connected to
the extension is changed or when any of the variables marked
as trigger solve in the EDF are changed. HYSYS automatically
calls the Execute method and pass the Forgetting argument.
The Forgetting argument relates to how HYSYS solves based on
the degrees of freedom approach. Whenever a variable is
changed within HYSYS, all the values associated or utilizing that
value as a basis for calculation must be forgotten. This Forget
process propagates throughout the simulation model. It is a
good idea to check the Forgetting argument prior to executing
code. Especially if values that are forgotten are used in the
calculation. A forgotten value is set to the empty state, which,
for HYSYS is the number -32767.
Method Description
Derived from Properties Methods
ExtnContainer • BreakRequested
• ExtensionInterface
• Flowsheet
• FPStatus
•name
• OnOleEnabledThread
• SimulationCase
• StatusBar
AddSolverNotification
Balance
BuildPlot
BuildPlot2
BuildPlotWithCallback
ClearStatusBar
CreateFluid
DeletePlot
FindFluid
FindVariable
GetPlot
GetPlot2
OpenContainerStorage
OpenView
RemoveSolverNotification
SolveComplete
Trace
Trig gerSo lve
Comentários a estes Manuais