NumberOfUtilizedParts
Name
NumberOfUtilizedParts
When to use it
You may call this method during the OnFinish event.
Otherwise the returned value is undefined.
Prototype
NumberOfUtilizedParts(
long SheetIndex/*[in]*/,
long NumberOfUtilizedParts/*[out]*/,
long StockIndex/*[out]*/,
long StockUserDefinedData /*[out]*/
);
Explanations
Returns the number of utilized pieces by one of the layouts.
Parameters
SheetIndex - the index of the layout whose information are extracted. This number is in range [0...TotalNumberOfUtilizedStock - 1].
NumberOfUtilizedParts - the number of parts utilized in that layout.
StockIndex - The index of the Stock piece which is utilized in the SheetIndex layout. StockIndex is between 0 and NumberOfStockPieces - 1.
StockUserDefinedData - an user defined value which was set by SetStock method.
See also
NumberOfParts, GetUtilizedPart, TotalNumberOfUtilizedStock, OnFinish.