GetWastePiece
Name
GetWastePiece
When to use it
During the OnFinish event.
Prototype
HRESULT GetWastePiece(
SheetIndex: long /*[in]*/,
WasteIndex: long /*[in]*/,
TopX: long /*[out]*/,
TopY: long /*[out]*/,
BottomX: long /*[out]*/,
BottomY: long /*[out]*/,
RepositoryIndex: long /*[out]*/,
RepositoryExternalID: long /*[out]*/
);
Explanations
This method returns information about an waste rectangle which was obtained after optimization.
The number of waste rectangles is obtained using the property NumberOfWastePieces.
Parameters
SheetIndex - the index of the layout where the waste belongs. This number is in range [0...TotalNumberOfUtilizedRepositoryPieces - 1].
WasteIndex - the index of the waste piece whose information are extracted. This number is in range [0...NumberOfWastePieces - 1].
TopX, TopY, BottomX and BottomY are the coordinates of the top-left and bottom-right corners of the current piece.
RepositoryIndex - The index of the Repository piece which is utilized in the SheetIndex layout. RepositoryIndex is between 0 and NumberOfRepositoryPieces - 1.
RepositoryExternalID - an user defined value which was set by SetRepositoryPiece method.
See Also: