GetWastePiece2


Name


            GetWastePiece2


When to use it


            During the OnFinish event.


Prototype


HRESULT GetWastePiece2(

            SheetIndex: long/*[in]*/,

            WasteIndex: long/*[in]*/,

            TopX: long /*[out]*/,

            TopY: long /*[out]*/,

            BottomX: long /*[out]*/,

            BottomY: long /*[out]*/,

            TrimTop: long /*[out]*/,

            TrimLeft: long /*[out]*/,

            TrimBottom: long /*[out]*/,

            TrimRight: long /*[out]*/,

            IsFullTrim: long /*[out]*/,

            RepositoryIndex: long /*[out]*/,

            RepositoryExternalID: long /*[out]*/

);


Explanations


            This method returns information about an waste rectangle which was obtained after optimization.

            The number of waste rectangles is obtained using the property NumberOfWastePieces.


Parameters


            SheetIndex - the index of the layout where the waste belongs. This number is in range [0...TotalNumberOfUtilizedRepositoryPieces - 1].

            WasteIndex - the index of the waste piece whose information are extracted. This number is in range [0...NumberOfWastePieces - 1].

            TopX, TopY, BottomX and BottomY are the coordinates of the top-left and bottom-right corners of the current waste.

            Trim* are the trim values of margins for the current waste.

            IsFullTrim specify if this waste is only trim.

            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:


            GetWastePiece, GetCut, SurfaceCovered, OnFinish.



Links

       back to index

       www.optimalprograms.com