Skip to content

Automatically select plates according to standard parts. #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pofenx opened this issue May 19, 2025 · 0 comments
Open

Automatically select plates according to standard parts. #130

pofenx opened this issue May 19, 2025 · 0 comments

Comments

@pofenx
Copy link

pofenx commented May 19, 2025

Hello, when actually purchasing sheet materials, the length is generally not fixed. For example, steel coils can be cut to any length (e.g., any number of meters as needed), but the width is usually fixed—such as steel coils with widths of 1.2m, 1.5m, 1.8m, 2m, etc. The length can generally be freely cut within 15 meters. My current approach is: when arranging the first part on each sheet, set the sheet's length directly to the length of the first part being placed. The program sorts parts by area before nesting, but the current issue is that the width cannot be fixed. It needs to select a width from standard values (i.e., 1.2m, 1.5m, 1.8m, 2m, etc.) to maximize material utilization, which means minimizing the remaining width.

For example, when placing the fifth part on the first sheet:

  • If the initial sheet width is 1.5m, placing the fifth part may leave a remaining width of 0.1m for a 1.2m width.
  • However, if six parts can be placed exactly without any remaining width, the sheet width should automatically switch to 1.2m, and then the sixth part is placed.

This is just a rough example—I’m not entirely sure how to handle the specific logic or modify the code. Do you have any good suggestions or know how to adjust the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant