
Extensibility 3-17
3-17
To distribute your extension, you must provide the DLL file, the
EDF file, and any other files required by your extension (i.e., a
separate FORTRAN DLL called from you extension). You must
register your extension on each individual machine that uses the
extension calculations. You can use the registration tool found
on the Extensions tab of the Session Preferences property view
for this, or you can include this step in your own setup program.
3.5.3 In C# or VB.NET
Creating an extension in Visual Basic is a very straightforward
procedure. The following six steps can be used as a general
framework:
1. Create the Extension Definition.
2. Create the Object property views.
3. Implement the Required Methods.
4. Register the Extension.
5. Debug the Extension.
6. Distribute the Extension.
These steps are explained in more detail in the following
sections.
Create the Extension Definition
The EDF contains important information about an extension that
is required by the extension's container in HYSYS. Specifically, it
contains information about the variables that the extension own
(that are managed by the container), and it may also contain
one or more property views for the object.
For each extension, you must provide either a CLSID or a
ProgID. Other information that can be provided at this point
includes: the extension description, from which you identify the
extension within HYSYS, the extension type and the number of
The extension definition file, which contains the definition of
the extension is created using the View Editor.
Komentáře k této Příručce