
A-2 Automation FAQ
A-2
A.1 Automation FAQ
1. Whenever I change the Basis using Automation, HYSYS
displays a property view “Do you want to be left in HOLDING
mode...” which freezes the Automation application (Visual
Basic, Excel, etc.). How do I make changes and avoid the
property view?
Ans: When changing the Basis via Automation, use the
following syntax:
Where hyCase is a SimulationCase object. This will prevent
the property view from appearing by putting the simulation
into hold mode before making the Basis changes and taking
the simulation out of hold mode once the Basis changes are
complete.
2. How do I add a property package to HYSYS or change the
existing property package using Automation?
Ans: HYSYS property packages must be referred to by their
internal name when using Automation. A list of the name is
below:
hyCase.Solver.CanSolve = False
hyCase.BasisManager.StartBasisChange
{make Basis changes}
hyCase.BasisManager.EndBasisChange
hyCase.Solver.CanSolve = True
Internal Name External HYSYS Property Package Name
PengRob PR
SRK SRK
SourPR Sour PR
SourSRK Sour SRK
KDSRK Kabadi Danner
ZJRK Zudkevitch Joffee
PRSV PRSV
Wilson Wilson
Uniquac UNIQUAC
Nrtl NRTL
VanLaar van Laar
Margules Margules
Komentáře k této Příručce