Aspen Touch Solutions ATM-123R Series Specifikace Strana 24

  • 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 23
2-10 Automation Syntax
2-10
The example below assumes hycase is set to the SimulationCase
object.
GetObject, CreateObject
In order to begin communication between the client and server
applications, an initial link to the server application must be
established. In HYSYS this is accomplished through the starting
objects: Application or SimulationCase. The typical ActiveX
object structure supplies a starting object to access the
application interface and another to access the documents
within the application.
The CreateObject function starts a new instance of the main
application. CreateObject is used in HYSYS with the
HYSYS.Application class as specified in the type library. This
connects to the main application interface of HYSYS.
The GetObject function opens a specific document in the
currently running instance of the server application. If the
application is not running then a new instance of the application
starts. If a specific document is not specified with the GetObject
function the current instance of the application is connected or a
new instance of the application is started.
Example: Set
Dim hyStream As ProcessStream
Set hyStream = hyCase.Flowsheet.MaterialStreams.Item(0)
Syntax for creating an instance of an application:
CreateObject(class)
GetObject([pathname] [, class])
where:
class = the starting object as specified in the type library.
In HYSYS there are two objects that can be used for
the class statement: HYSYS.Application or
HYSYS.SimulationCase.
Zobrazit stránku 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 373 374

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

Žádné komentáře