
A-26 Extensibility FAQ
A-26
Use the following procedure:
a. Add a Static Text widget and double-click it or right-click
and select Static Text Properties command from the
Object Inspect menu.
b. Change Fixed Text to &Name. The & is used to determine
the hot key for the property view. (ALT + hot key gives
the focus to this widget). The hot key is shown as
underlined.
c. Add a Text Entry widget and double-click it or right-click
and select Text Entry Properties command from the
Object Inspect menu.
d. Double-click the Target Moniker field or click the
Ellipsis icon directly beside it, select Object Name
from the Select Text Variable list and click the OK button.
14. How do I set the compositions of a stream in HYSYS?
Ans: Compositions must be set using a Variant array which
has been initialized. To initialize the array, set it equal to the
ComponentMolarFractionValue,
ComponentMassFractionValue, or
ComponentVolumeFractionValue of the stream whose
compositions are going to be changed.
The following code demonstrates this:
Dim Compositions As Variant
Compositions = hyFeed.ComponentVolumeFractionValue
Compositions(0) = .5
Compositions(1) = .2
Compositions(2) = .3
hyFeed.ComponentVolumeFraction.Values = Compositions
where:
hyFeed = an object reference to a material stream in
HYSYS
Comentários a estes Manuais