GetDemandPiece
Name
GetDemandPiece
When to use it
After setting the sizes using the SetDemandPiece method and before the OnFinish event ends.
Prototype
HRESULT GetDemandPiece(
Index: long /*[in]*/,
Length: long/*[out]*/,
Width: long /*[out]*/,
CanRotate: long/*[out]*/,
ExternalID: long /*[out]*/,
Priority: long/*[out]*/
);
Explanations
With this method you may get the dimensions of each piece to be cut.
The number of pieces to be cut is given by the NumberOfDemandPieces property.
The dimensions of each piece can be set using the SetDemandPiece method.
Parameters
Index - the index of the piece whose information are extracted. This number is in range [0...NumberOfDemandPieces - 1].
Length - the length of the piece.
Width - the width of the piece.
CanRotate - specify if the piece can be rotated or not (1 if yes, 0 if not). See grain direction for more details.
ExternalID - an user defined value which was set by SetDemandPiece method.
Priority - priority for cutting a piece. Lower values means higher priority. 0 is the highest priority. Pieces with higher priority will be cut before pieces with lower priority.
See Also: