UtilizedPart

Name

 

            UtilizedPart

 

When to use it

 

            During the OnFinish event.

 

Prototype

 

HRESULT UtilizedPart(

            long PartIndex/*[in]*/,

            long Type/*[out]*/,

            long SheetIndex/*[out]*/,

            long StockIndex/*[out]*/,

            long PartUserDefinedData/*[out]*/,

            long StockUserDefinedData/*[out]*/

);

 

Explanations

 

            Specify whether the PartIndexth 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

 

            PartIndex - Index of the piece whose information is to be extracted. DemandIndex is between 0 and NumberOfParts -1.

            Type - 0 if polygon, 1 if circle.

            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 TotalNumberOfUtilizedStock - 1. If the piece is not utilized SheetIndex is set to NumberOfStockPieces.

            StockIndex - Is the index of stock piece where the part is to be placed. StockIndex is between 0 and NumberOfStockPieces -1.

            PartUserDefinedData - The user defined data attached to the part.

            StockUserDefinedData - The user defined data attached to the stock piece where the part is to be placed.

 

 

See Also

 

            GetUtilizedPart, GetUtilizedStock, UtilizedStock, OnFinish.