Automation · Cutting optimizer

Cutting optimizer for bar stock

A desktop application that will calculate how to cut bars from a list of pieces with as little waste as possible and prepare a cutting plan as PDF, Excel and PNG.

PythonTkinteropenpyxlReportLab

Problem

When cuts are planned by hand, it is hard to find the combination of pieces that uses as much of each bar as possible.

The result is unnecessary waste, more purchased material and time spent recalculating.

Solution

The application will distribute the required pieces into bars using the First Fit Decreasing algorithm:

  • input of bar length, saw kerf allowance (2, 3, 4 mm or custom) and pieces with drawing numbers,
  • import and export of the input from Excel using a template,
  • cutting plan with a color diagram, total and waste for each bar,
  • output to PDF for the workshop, to Excel and as a PNG image, with light and dark mode.

Benefits

The cutting plan will be ready instantly – no manual recalculation. The workshop will get a clear cutting diagram, and the total waste and number of bars are known before cutting starts.

Data flow

How it works

  1. List of pieces by hand or from Excel
  2. Parameters bar length, kerf allowance
  3. FFD calculation pieces are packed into bars
  4. Cutting plan PDF, Excel, PNG for the workshop

Step by step

Steps in the order you work with the system. Data in the screenshots is for demonstration only.

  1. Step 1: Input of pieces and the calculated cutting plan with a color diagram of bars

  2. Step 2: PDF for the workshop: bar breakdown, waste and cutting diagram

Under the hood

Solution architecture

What the system is built from and how its parts talk to each other.

PythonTkinteropenpyxlReportLab
Application Python · Tkinter – Windows desktop (.exe)
Algorithm First Fit Decreasing with kerf allowance
Outputs ReportLab (PDF) · openpyxl (Excel) · Pillow (PNG)

Want a similar solution?

Describe it in a few sentences. I will get back to you with a concrete proposal on how to solve it.

Free consultation