Aspen Touch Solutions ATM-123R Series Specifikace Strana 9

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 374
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 8
Introduction 1-5
1-5
A HYSYS extension is typically composed of two distinct and
interdependent components; an ActiveX Server DLL and an
Extension Definition File (EDF). The ActiveX Server DLL contains
the actual code for the extensions and can be created in any
OLE controller language such as Visual Basic, C++, or Delphi.
Nearly any other type of compiled code base can be accessed
via a short wrapper utilizing Visual Basic or C++. The Server is a
program that exposes a class with a set of properties and
methods. For HYSYS extensions, the exposed class contains
methods recognized by HYSYS (for example, when dealing with
a Unit Operation Extension, HYSYS looks for a method named
Initialize that takes one argument and returns a long variable).
The EDF file acts as the interface view within HYSYS as well as
the point for variable declaration and storage. It is created
through the Extension View Editor which is included with your
copy of HYSYS. The View Editor is similar to the tool used by
AspenTech Developers when creating the property views for
HYSYS.
How Does a Hysys Extension Work?
When HYSYS first starts up, it looks in the system registry, at a
specific location, to see if any extensions exist for the machine.
If an extension does exist it is added to the appropriate menu
within HYSYS. Unit operation extensions show up in the UnitOps
property view when the Extensions radio button is selected.
Kinetic reaction extensions show up in the Reactions property
view which is brought up when the Add Rxn button is clicked on
the Reactions tab of the Simulation Basis Manager property
view. Property package extensions show up in the Property
Package Selection group found on the Set Up tab of the Fluid
Package property view.
Once you find the appropriate extension, you can select it and
begin using it as though it were a built-in HYSYS object.
Zobrazit stránku 8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... 373 374

Komentáře k této Příručce

Žádné komentáře