GetNumberOfUtilizedDemandPieces
Name
GetNumberOfUtilizedDemandPieces
When to use it
You may this method during the OnFinish event.
Otherwise the returned value is undefined.
Prototype
HRESULT GetNumberOfUtilizedDemandPieces(
BarIndex: Long /*in*/,
NumberOfUtilizedPieces: Long /*out*/,
RepositoryIndex: Long /*[out]*/,
RepositoryExternalID: Long /*[out]*/
);
Explanations
Returns the number of utilized pieces in a particular cutting layout (bar).
Not all pieces are utilized, specially when the sum of their length exceeds the length of the piece to be cut from.
Parameters
BarIndex - is the index of the bar which is currently cut. BarIndex is between 0 and TotalNumberOfUtilizedRepositoryPieces - 1.
NumberOfUtilizedPieces - is the number of demand pieces that are utilized by the BarIndex bar.
RepositoryIndex is the index of current bar (BarIndex) as it was set by the SetRepositoryPiece method. RepositoryIndex is between 0 and NumberOfRepositoryPieces - 1.
RepositoryExternalID is the external ID of the repository piece whose input index is BarIndex. External ID is an integer number which was assigned to each piece in order to be easier identified.
Links