ICapeThermoContextSetMaterial Method

Allows the client of a component that implements this interface to pass an ICapeThermoMaterialObject interface to the component, so that it can access the properties of a material and request property calculations.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[DispIdAttribute(1)]
void SetMaterial(
	Object materialObject
)

Parameters

materialObject  Object
The interface of an object support the ICapeThermoMaterialObject interface.

Remarks

The SetMaterial method allows a Reactions component to be given the ICapeThermoMaterialObject interface of a Material Object. This interface gives the component access to the description of the material for which Property calculations are required. A component can also use the ICapeThermoMaterialObject interface to to get lists of components and phases.

Exceptions

ECapeUnknownThe error to be raised when other error(s), specified for this operation, are not suitable.
ECapeInvalidArgumentThe error to be raised when other error(s), specified for this operation, are not suitable.
ECapeFailedInitialisationThe error to be raised when other error(s), specified for this operation, are not suitable.
ECapeNoImplThe error to be raised when other error(s), specified for this operation, are not suitable.

See Also