10/08/2010

Aspen HYSYS Customization Guide

http://www.cadfamily.com/downinfo/301484.html

HYSYS can be accessed from external programs using
Automation. Programs such as Microsoft Visual Basic and
Microsoft Excel can use HYSYS as a calculation engine, allowing
you to create new applications that invisibly use HYSYS in the
background.
Two HYSYS objects can be created by an external program:
• The HYSYS Application object
• The HYSYS SimulationCase object
The Application object can be created using one of the
HYSYS.Application ProgIDs. The ProgID determines which
version of HYSYS is activated. Simulation Cases can be created
using the HYSYS.SimulationCase ProgID, or by calling GetObject
and passing the name of a Simulation Case. For example, this is
how you would create an Application object and a
SimulationCase object from Visual Basic:
Once the Application and Case objects have been created, other
HYSYS objects can be accessed through them. For example,
from the Case's flowsheet object (accessed through the
flowsheet property of the Case), you can create new Process
Streams and Unit Operations.
Dim App as Object
Set App = CreateObject(??HYSYS.Application??)
Dim HYCASE as Object
Set HYCASE = GetObject(??c:\hysys\cases\azeocol.hsc )

No comments: