nest_patterns
Auto-nest pattern pieces in CLO's print layout and report marker length, width, piece count, and fabric utilization. Falls back to CLO's Nest All Fabrics button when the layout is empty.
Instructions
Auto-nest the pieces in CLO's print layout and report the marker shown there: length along the fabric, width, pieces and utilisation (measured from the exported 1:1 layout; CLO's own fabric length value did not match the layout in testing).
In a fresh CLO session the API's nesting leaves the layout empty until CLO's Printing Layout mode has been opened once (tested: empty before the switch, working right after it and for the rest of the session, also back in Simulation mode). If it is still empty, allow_ui_click clicks "Nest All Fabrics" in CLO (needs Printing Layout mode); otherwise the error says what to do.
Args: buffer_spacing_mm: Space between pieces. fabric_index: With fabric_width_mm, set this fabric's width first. fabric_width_mm: Usable fabric width in mm. timeout_s: How long to wait for CLO's nesting to finish. allow_ui_click: Click CLO's "Nest All Fabrics" button when the layout is empty.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_s | No | ||
| fabric_index | No | ||
| allow_ui_click | No | ||
| fabric_width_mm | No | ||
| buffer_spacing_mm | No |