Sage Modeling and Simulation Library

Substance..::..SetMaterialSpec Method

Sets the material spec of the substance. Call this only once on any given substance. See the tech note on Material Specifications. If you have multiple specifications to set, call SetMaterialSpecs.

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

Syntax


public void SetMaterialSpec(
	Guid identity,
	double amount
)

Parameters

identity
Type: Guid
The material specification.
amount
Type: Double
The amount. Any remaining material is presumed to have no spec.

Exceptions


ExceptionCondition
ApplicationExceptionSubstance had a material specification set to it more than once.