NumberOfWastePieces
Name
NumberOfWastePieces
Type
Read
When to use it
You may call this method during the OnFinish event.
Otherwise the returned value is undefined.
Prototype
HRESULT NumberOfWastePieces(
SheetIndex: long /*[in]*/,
NumberOfWastePieces: long /*[out]*/,
RepositoryIndex: long /*[out]*/,
RepositoryExternalID: long/*[out]*/
);
Explanations
Returns the number of waste rectangles obtained as the result of optimization in one of the layouts.
Parameters
SheetIndex - the index of the layout whose information are extracted. This number is in range [0...TotalNumberOfUtilizedRepositoryPieces - 1].
NumberOfWastePieces - the number of waste pieces in that layout.
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: