CapeOpenCompoundConstant returns the values of a specified constant of all compounds or a specific compound in the package.
Syntax:
=CapeOpenCompoundConstant(packageName,constantName,basis,orientation,compound)
Arguments:
packageName | Name of the package. |
constantName | The compound constant name, as defined by CAPE-OPEN. See the ribbon for which compound constants are supported for the selected package. Constants either have a real or string value for each compound. For real values, the unit of meaure can be obtained from CapeOpenUnitOfMeasure |
basis | Optional. Can be "mole" (default), or "mass". |
orientation | Optional. Orientation can be 'auto'=0 (default), 'horizontal'=1, 'vertical'=2. |
compound | Optional. Can be "all" (default), or the 1-based compound index, or the name of the compound. |
Examples:
=CapeOpenCompoundConstant("myPropertyPackage","CriticalTemperature")
=CapeOpenCompoundConstant("myPropertyPackage","CriticalTemperature",,"horizontal")
=CapeOpenCompoundConstant("myPropertyPackage","CriticalTemperature",,,1)
=CapeOpenCompoundConstant("myPropertyPackage","CriticalVolume","mass")
=CapeOpenCompoundConstant("myPropertyPackage","ChemicalFormula")
To use the wizard, select the compound constant on the ribbon:
place the cursor at the insert point and click the Insert button: