SetRepositoryPiece2
Name
SetRepositoryPiece2
When to use it
After setting the NumberOfRepositoryPieces property and anytime before the call of the Start method.
Prototype
HRESULT SetRepositoryPiece2(
Index: Long/*[in]*/,
Length: Long/*[in]*/,
Cost: Double /*[in]*/
Priority: Long /*[in]*/
ExternalID: Long /*[in]*/
);
Explanations
With this method you may set the size of each bar from REPOSITORY (to cut from). This method extends the functionality of the SetRepositoryPiece method.
The number of pieces to be cut is given by the NumberOfRepositoryPieces property.
The length of each piece can be obtained using the GetRepositoryPiece2 method.
Parameters
Index - the index of the piece whose information are set. This number is in range [0...NumberOfRepositoryPieces - 1].
Length - the length of the piece. This number must be integer. For working with real numbers read here.
Cost - the cost of the entire bar.
Priority - the priority to cut the repository piece. 0 is the highest priority.
ExternalID is an integer number which is assigned to each piece in order to be easier identified.
Links