
Automation 2-27
2-27
invoked prior to adding this hypothetical to the case.
Hypotheticals have a * appended to the name once they are
created.
2.4.4 Oils Objects
Oils objects refer to the objects accessed through the Oil
Manager. The OilManager object is set through the
BasisManager and contains Assay and Blend objects.
OilManager
Set through the BasisManager, the OilManager object provides
access to the oils environment. Like changes made to the
objects accessed through the BasisManager, notification to the
simulation environment is required when modifying assays or
blends. This is accomplished by calling the StartOilChange and
EndOilChange methods. Calling the StartOilChange method
before calling the StartBasisChange method by default causes
the StartBasisChange method to be invoked.
Example: HypoComponent
Dim hypGroups As HypoGroups
Dim hypoComp As Object
hyCase.BasisManager.StartBasisChange
Set hypGroups = hyCase.BasisManager.HypoGroups
hypGroups.Add “myhypo”
hypGroups.Item(“myhypo”).HypoComponents.Add “mycomponent”, “userhypo”
Set hypoComp =
hypGroups.Item(“myhypo”).HypoComponents.Item(“mycomponent*”)
hypoComp.NormalBoilingPointValue = 300
hypoComp.Estimate
MsgBox hypoComp.NormalBoilingPointValue
hyCase.BasisManager.EndBasisChange
Komentáře k této Příručce