SetDemandPiece
Name
SetDemandPiece
When to use it
After setting the NumberOfDemandPieces property and anytime before the OnFinish event ends.
Prototype
HRESULT SetDemandPiece(
Index: Long/*[in]*/,
Length: Long/*[in]*/,
Quantity: Long/*[in]*/,
ExternalID: Long /*[in]*/
);
Explanations
With this method you may set the size of each piece to be cut.
The number of pieces to be cut is given by the NumberOfDemandPieces property.
The length of each piece can be get using the GetDemandPiece method.
Parameters
Index - the index of the piece whose information are set. This number is in range [0...NumberOfDemandPieces - 1].
Length - the length of the piece. This number must be integer. For working with real numbers read here.
Quantity - the number of pieces that must be cut.
ExternalID is an integer number which is assigned to each piece in order to be easier identified.
Links