Sage Modeling and Simulation Library

MaterialService..::..GetCompartment Method (Guid, Guid)

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(
	Guid materialTypeGuid,
	Guid materialSpecification
)

Parameters

materialTypeGuid
Type: Guid
The guid of the material type whose compartment we desire.
materialSpecification
Type: Guid
The single guid that describes the material spec we seek on the material type.

Return Value

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