
Extensibility 3-81
3-81
• Global Variables
•Initialize
•Execute
•Edf
Overview
In this section a Visual Basic extension transition object will be
created.
To begin construction start Microsoft Visual Basic 6.0 or a later
version. In Visual Basic select an ActiveX DLL project type and
assign a Project name myTransitionExtn and change the class
name to myCTransitionExtn. The VB project and class names
will be entered in the Aspen HYSYS edf (extension definition
file). The name of the dll will be myTransitionExtn.dll.
Two mandatory functions are required for a Transition extension
to function properly. These functions, Initialize and Execute are
described in following sections.
Global Variables
Global variables are declared for process streams and the unit
operation container. For a transition object, additional global
variables are needed for petroleum properties. Declare property
vectors for Molecular Weight and the Flash Point for both the
Feed and Product streams.
Initialize
Add an Initialize function. The initialize function is called each
time a case containing a transition extension object is loaded or
' RefSys objects
Public PropvectorMWFeed As PropertyVector ' Molecular Weight
Public PropvectorMWProd As PropertyVector ' Molecular Weight
' petroleum properties
Public PropvectorFlashPointFeed As PropertyVector ' Flash Point Property
Public PropvectorFlashPointProd As PropertyVector ' Flash Point Property
Comentários a estes Manuais