SetMaterialResourceUnits

ResourceAssignment.SetMaterialResourceUnits method

Sets units for assignment of a material resource with variable material consumption. The variable material consumption means that as the assignment duration changes, the quantity of materials used changes proportionally.

public void SetMaterialResourceUnits(double units, RateScaleType rateScaleType)
ParameterTypeDescription
unitsDoubleNumber of units accrued at the time period.
rateScaleTypeRateScaleTypeTime period at which the unit value is accrued.

Exceptions

exceptioncondition
InvalidOperationExceptionIf the method is called for assignment of non-material resource.

Remarks

For example, to set ‘123/month’, SetUnitsScaled(123D, RateScaleType.Month) should be called.

See Also