DemandPieceUtilized
Name
DemandPieceUtilized
When to use it
During the OnFinish event.
Prototype
HRESULT DemandPieceUtilized(
DemandIndex: long/*[in]*/,
SheetIndex: long/*[out]*/,
RepositoryIndex: long /*[out]*/,
DemandExternalID: long /*[out]*/,
RepositoryExternalID: long /*[out]*/
);
Explanations
Specify whether the DemandIndexth piece has been utilized in a layout.
The parameter SheetIndex will be set to the index of the layout which contains the piece. If the piece is not utilized it will receive value -1.
Not all pieces are utilized. This is because the total surface of the pieces to be cut is greater than the surface of the sheets.
Parameters
DemandIndex - Index of the piece whose information is to be extracted. DemandIndex is between 0 and number_of_demand_pieces.htm -1.
SheetIndex - Is the index of the layout (sheet) where the piece will be placed. If the piece is utilized, the SheetIndex will be between 0 and TotalNumberOfUtilizedRepositoryPieces - 1. If the piece is not utilized SheetIndex is set to -1.
RepositoryIndex - Is the index of Repository piece where the Demand piece is to be placed. If the piece is not utilized RepositoryIndex is set to -1. RepositoryIndex is between 0 and NumberOfRepositoryPieces -1.
DemandExternalID - The external ID of the Demand piece.
RepositoryExternalID - The external ID of the Repository piece where the Demand piece is to be placed.
See Also:
GetUtilizedDemandPiece, GetUtilizedRepositoryPiece, RepositoryPieceUtilized, OnFinish.