Name
ManualArrangeSetWaste2
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 ManualArrangeSetWaste2(
Index: long /*[in]*/,
TopX: long /*[in]*/,
TopY: long /*[in]*/,
BottomX: long /*[in]*/,
BottomY: long /*[in]*/,
TrimTop: long /*[in]*/,
TrimLeft: long /*[in]*/,
TrimBottom: long /*[in]*/,
TrimRight: long /*[in]*/,
IsFullTrim: 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 ManualArrangeNumberOfWastes - 1.
- TopX, TopY, BottomX, BottomY - the coordinates of the top-left and bottom-right corners of the waste (rectangle).
Trim* are the trim values of margins for the current waste.
IsFullTrim specify if this waste is only trim.
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, ManualArrangeNumberOfWastes, ManualArrangeSetWaste, ManualArrangeGetWaste, ManualArrangeGetWaste2, OnAfterManualArrange.
Links