SetRepositoryRange
Name
SetRepositoryRange
When to use it
Anytime before the call of the Start method.
Prototype
SetRepositoryRange(
MinimumLength: Long/*[in]*/,
MaximumLength: Long/*[in]*/,
Step: Long /*[in]*/
);
Explanations
Specifies a range of lengths for Repository pieces. After the call of Start method the component will search for the best length of Repository pieces.

Parameters
MinimumLength- The minimum length that a repository piece can have. It MUST be at least equal to the longest bar in Demand.
MaximumLength- The maximal length that a repository piece can have.
Step- the step for search.
Remarks
If you set this information, the NumberOfRepositoryPieces and SetRepositoryPiece methods will be ignored.
Only one length is considered. No combination of different lengths is provided.
All demand pieces MUST be less or equal to MinimumLength in length, otherwise the results are undefined.
OnAfterLengthSearched is raised after a new length is explored. All methods from OnFinish can be used during this event. The user can find here the bar length (by calling GetRepositoryPiece(0...)) and the number of required bars to cut all parts from demand (by calling TotalNumberOfUtilizedRepositoryPieces).
During the OnFinish the information about the best length (minimal waste) can be extracted.
After OnFinish range values will become undefined.
See also
OnAfterLengthSearched, GetRepositoryRange, OnFinish.
Links