Specifications
Extensibility 3-11
3-11
Each DefaultView form must have a unique name. The object’s
default property view must be called DefaultView as it is the
property view HYSYS attempts to open when the object is
instantiated, provided the functionality of the OnView method is
not overridden.
Implement the Required Methods
To implement an extension from Visual Basic, you must create a
project containing a Class Module. This Class Module must
implement whatever methods are required by the container. For
example, to implement an Extension Unit Operation, you must
implement an Initialize method and an Execute method, and
these methods must have the same parameters as defined by
the interface.
Register the Extension
Before you register your extension, you must ensure that the
ProgID defined by your Visual Basic project is the same as that
which you entered in the EDF for this object. ProgIDs are
defined by Visual Basic in the following form:
ProjectName.ClassName
where:
ProjectName = the name of the project (which is set on the
Project tab of the Options property view in VB 5.0)
ClassName = the name of the class (which is set through the
Name parameter of the class' property view).
For Example, a class called Extension1 in a project called
AspenTechExtensionProject would have a ProgID of
AspenTechExtensionProject.Extension1.
You can register extensions on the Extensions tab of the Session
Preferences property view.
For more information on
extension registration
see Section 3.6 -
Registering
Extensions.