ManualArrangeSetWasteRectangle
Name
ManualArrangeSetWasteRectangle
When to use it
When the optimization process is NOT running.
NOT during the OnFinish or OnAfterManualArrange event.
After all other information has been set.
Prototype
HRESULT ManualArrangeSetWasteRectangle(
Index: long /*[in]*/,
TopX: long /*[in]*/,
TopY: long /*[in]*/,
BottomX: long /*[in]*/,
BottomY: long /*[in]*/
);
Explanations
Set the coordinates of an existing waste on this layout.
Parameters
- Index is the index of the piece to be set. This value is between 0 and ManualArrangeNumberOfWasteRectangles - 1.
- TopX, TopY, BottomX, BottomY - the coordinates of the top-left and bottom-right corners of the waste (rectangle).
Remark
If there are no pieces on the current sheet the number of waste rectangles should be 1 and its sizes should be equal to the sizes of the sheet.
See Also
How to arrange pieces manually, ManualArrangeNumberOfWasteRectangles, GetWastePiece, OnAfterManualArrange.