Sage Modeling and Simulation Library

MaterialService..::..GetCompartment Method (MaterialType)

Gets the MaterialResourceItem that is acting as the compartment for the specified material type. Creates one anew if there was not one, and this MaterialService has its AutocreateMaterialCompartments parameter set to true. Will return null if there is no compartment with the given material type.

Namespace:  Highpoint.Sage.Materials
Assembly:  Sage4 (in Sage4.dll)

Syntax


public MaterialResourceItem GetCompartment(
	MaterialType mt
)

Parameters

mt
Type: Highpoint.Sage.Materials.Chemistry..::..MaterialType
The material type whose compartment we desire.

Return Value

The MaterialResourceItem that is acting as the compartment for the specified material type.