ICapeThermoMaterialCreateMaterial Method

Creates a Material Object with the same configuration as the current Material Object.

Definition

Namespace: CapeOpen
Assembly: CapeOpen (in CapeOpen.dll) Version: 1.0.0.0 (1.0.0.0)
[DispIdAttribute(3)]
Object CreateMaterial()

Return Value

Object
The interface for the Material Object.

Remarks

The Material Object created does not contain any non-constant Physical Property value but has the same configuration (Compounds and Phases) as the current Material Object. These Physical Property values must be set using SetSinglePhaseProp, SetTwoPhaseProp or SetOverallProp. Any attempt to retrieve Physical Property values before they have been set will result in an exception.

Exceptions

ECapeNoImplThe operation is “not” implemented even if this method can be called for reasons of compatibility with the CAPE-OPEN standards. That is to say that the operation exists but it is not supported by the current implementation.
ECapeFailedInitialisationThe physical resources necessary to the creation of the Material Object are out of limits.
ECapeOutOfResourcesThe operation is “not” implemented even if this method can be called for reasons of compatibility with the CAPE-OPEN standards. That is to say that the operation exists but it is not supported by the current implementation
ECapeNoMemoryThe physical memory necessary to the creation of the Material Object is out of limit.
ECapeUnknownThe error to be raised when other error(s), specified for this operation, are not suitable.

See Also