Sheet metal: refuse a flat pattern that no longer matches the body (#3324) (#3325)

* claim: #3324

* Sheet metal: refuse a flat pattern that no longer matches the body

A feature that is not sheet metal can change a sheet body's material
without its sheet model knowing: a mirror combined into it, an extrude
joined onto it, a fillet or chamfer on a corner. The flat pattern, the
DXF and the bend table then wrote the sheet as it was before, a part
other than the one in the design, with no warning.

The evaluator now notes, per sheet, the first such feature: one that
changes the body's shape while its sheet model stays the same. That
feature warns, and sheet.flat_pattern, sheet.export_dxf (also with
per_body) and sheet.export_bend_table refuse with "not supported yet",
naming it. A sheet metal feature, or machining the sheet keeps as
cut-outs, rebuilds the body from the model: it clears the note and
warns that the change is not kept. Moving the body, splitting its faces
and cosmetic threads leave the flat pattern as it is.

* Sheet metal: a modelled thread is refused in the flat pattern too

Only a cosmetic thread leaves a sheet body's material as it is. A
modelled thread cuts the thread profile into the hole, which the flat
pattern does not have, and a later sheet metal feature dropped it
without a word. It now marks the sheet like a fillet does: it warns,
the flat pattern, DXF and bend table refuse naming it, and the feature
that rebuilds the body says the thread is not kept.
This commit is contained in:
raykholo
2026-10-20 12:07:24 +00:00
committed by GitHub
parent e44dd4ff9e
commit ca9ebb44db
6 changed files with 202 additions and 6 deletions
+8
View File
@@ -314,6 +314,14 @@ but a pocket crossing a bend zone cannot yet be refolded. Machining folded bend
tapered sheet cuts and other unsupported 3D sheet Cut/Intersect operations report an error before changing
the design; they cannot silently restore removed material during a later sheet rebuild.
Other features that change a sheet body's material without the sheet knowing it (a fillet or
chamfer on a corner, an extrude joined onto it, a Mirror or Combine joined into it) are not in
the flat pattern yet. Such a feature warns, and while the body carries its change the flat
pattern, the DXF and the bend table are refused with an error that names it, rather than writing
a part that does not match the body. A later sheet metal feature rebuilds the body from its sheet
features and says that the change is not kept. Moving the body, splitting its faces and cosmetic
threads leave the flat pattern as it is.
A sketch can be drawn on a flat face of the sheet: the base or a flange, on either side. Pick
the face (or give `sketch.create` the point `plane: {face: [x, y, z]}`) and the sketch attaches
to that panel instead of to a certified source face. It keeps the face's name,