Verification
Native path flange
A reusable line-only Sketch path drives an existing-edge flange
What this verifies
A native sheet edge follows a reusable open Sketch path with an optional feature-radius override while the active sheet rule owns material values.
scpf source
Complete primary source from the site branch; built revision below.
"""Native regression fixture for SolidCraft sheet.path_flange history."""
class SheetPathFlange:
width = 80.0
depth = 40.0
thickness = 2.0
bend_radius = 2.0
k_factor = 0.5
path_height = 14.0
path_radius = 3.0
def build(self):
with Sketch(name="Blank", plane="XY") as blank:
Rectangle2D(self.width, self.depth)
sheet = blank.sheet_metal(
thickness=self.thickness,
bend_radius=self.bend_radius,
k_factor=self.k_factor,
rule_name="Path Flange Rule",
)
with Sketch(name="Path", plane="XZ") as sketch:
chain = sketch.chain(start=(40, 2))
chain.line_to((40, self.path_height))
path = chain.finish()
return sheet.path_flange(
edge=(40, 0, 2),
path=path,
radius=self.path_radius,
)
SheetPathFlange()
Engineering explanation
Native path flange
Group: sheet-metal
Saved-design required: true
Documentation provenance: Forge #785 promotes the released #776 path-flange fixture to public Verification.
Goal
Prove that an existing sheet edge can follow a reusable line-only open Sketch path as one native path-flange feature.
Forge API
Sketch.chain(...), line_to(), finish() and Shape.path_flange(edge=..., path=..., radius=...).
Forge model
An 80 × 40 × 2 mm sheet uses a 14 mm open path and a 3 mm feature-radius override on the right edge.
How Forge builds it in SolidCraft
Forge authors the reusable open path, resolves the fixed sheet edge and emits one native path-flange feature. Thickness and K-factor remain owned by the active rule.
SolidCraft result
One native sheet body contains one path flange with a recoverable flat pattern and one bend record.
Saved-design test
Mutate path height from 14 to 18 mm and feature radius from 3 to 4 mm, then verify the rebuilt native history and flat pattern.
Geometry evidence
Geometry-rationale provenance: Forge #785 / #776 public capability promotion. Bounds sufficient:
false
The formed envelope cannot prove path reuse, feature-radius ownership or native flat-pattern history.
Reference notes
- Native SolidCraft history — Path-flange verification targets native sheet history; external references are optional when they cannot represent the same feature contract.
Generated command sequence — scpf (16)
parameters.add{ "command": "parameters.add", "params": { "expression": "80", "name": "width", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "40", "name": "depth", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "2", "name": "thickness", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "2", "name": "bend_radius", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "0.5", "name": "k_factor", "unit": "" } }parameters.add{ "command": "parameters.add", "params": { "expression": "14", "name": "path_height", "unit": "mm" } }parameters.add{ "command": "parameters.add", "params": { "expression": "3", "name": "path_radius", "unit": "mm" } }sheet.manage_rules{ "command": "sheet.manage_rules", "params": { "active": true, "bend_radius": "bend_radius", "k_factor": "k_factor", "name": "Path Flange Rule", "thickness": "thickness" } }sketch.create{ "command": "sketch.create", "params": { "name": "Blank", "plane": "XY" } }sketch.rectangle.two_point{ "command": "sketch.rectangle.two_point", "params": { "p0": [ "-(width / 2)", "-(depth / 2)" ], "p1": [ "width / 2", "depth / 2" ] } }sketch.finish{ "command": "sketch.finish", "params": {} }sheet.flange{ "command": "sheet.flange", "params": { "body_name": "SheetPathFlange", "rule": "Path Flange Rule", "sketch": "Blank", "type": "base" } }sketch.create{ "command": "sketch.create", "params": { "name": "Path", "plane": "XZ" } }sketch.line{ "bind": { "$contour_curves_1": "curves" }, "command": "sketch.line", "params": { "connect": true, "ids": [ "l1" ], "points": [ [ 40, 2 ], [ 40, "path_height" ] ] } }sketch.finish{ "command": "sketch.finish", "params": {} }sheet.path_flange{ "command": "sheet.path_flange", "params": { "body": "SheetPathFlange", "curves": "$contour_curves_1", "edge": [ 40.0, 0.0, 2.0 ], "radius": "path_radius", "sketch": "Path" } }
Reference code
No independent implementation is declared.
Image overview
Only images present in the published build are displayed. Presentation previews are not visual verification results.
Verification checks
scpf — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / bend_radius | 2 | 2 | pass |
| SolidCraft parameters / depth | 40 | 40 | pass |
| SolidCraft parameters / k_factor | 0.5 | 0.5 | pass |
| SolidCraft parameters / path_height | 14 | 14 | pass |
| SolidCraft parameters / path_radius | 3 | 3 | pass |
| SolidCraft parameters / thickness | 2 | 2 | pass |
| SolidCraft parameters / width | 80 | 80 | pass |
| SolidCraft sketch count | 2 | 2 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| SolidCraft body count | 1 | 1 | pass |
| SolidCraft parameters / path_height | 18 | 18 | pass |
| SolidCraft parameters / path_radius | 4 | 4 | pass |
| SolidCraft sketch count | 2 | 2 | pass |
Model stages
- Create the flat sheet and a reusable line-only open path
- Add a native path flange to the selected existing edge
- Mutate path height and radius and verify the flat pattern
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- scpf — builder-scpf: build=pass, verification=pass · STL · SC · Preview · commands · verification · result
native: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
scpf
native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "60fae87d8b8933a18c23303b2e267c9c37f23e51b1b597b3c2d865fbbbe53fc6",
"size": 3561
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"named_bodies": [
{
"closed": {
"actual": true,
"expected": true,
"label": "sole body closed",
"pass": true
},
"selector": "sole",
"sheet_metal": {
"actual": true,
"expected": true,
"label": "sole body sheet_metal",
"pass": true
}
}
],
"parameters": {
"actual": {
"bend_radius": 2.0,
"depth": 40.0,
"k_factor": 0.5,
"path_height": 14.0,
"path_radius": 3.0,
"thickness": 2.0,
"width": 80.0
},
"expected": {
"bend_radius": 2.0,
"depth": 40.0,
"k_factor": 0.5,
"path_height": 14.0,
"path_radius": 3.0,
"thickness": 2.0,
"width": 80.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 2,
"expected": 2,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"expected": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"label": "Blank sketch",
"pass": true
},
{
"actual": {
"curves": 1,
"name": "Path",
"profiles": 0
},
"expected": {
"curves": 1,
"name": "Path",
"profiles": 0
},
"label": "Path sketch",
"pass": true
}
]
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/resize_path_flange/model.sc",
"sha256": "c33c030f8a4e3bfe2785275df5f8d610240c1496cd7e96e63e01a63abb4ac644",
"size": 10880
},
{
"kind": "file",
"path": "saved_designs/resize_path_flange/measurements.json",
"sha256": "4765f7b42ce4fee87eabdfb884dfc0df19d56d7f1d9cf9d047c7dc9888488e66",
"size": 3544
}
],
"error": null,
"evidence": {
"body_count": {
"actual": 1,
"expected": 1,
"label": "SolidCraft body count",
"pass": true
},
"named_bodies": [
{
"closed": {
"actual": true,
"expected": true,
"label": "sole body closed",
"pass": true
},
"selector": "sole",
"sheet_metal": {
"actual": true,
"expected": true,
"label": "sole body sheet_metal",
"pass": true
}
}
],
"parameters": {
"actual": {
"path_height": 18.0,
"path_radius": 4.0
},
"expected": {
"path_height": 18.0,
"path_radius": 4.0
},
"label": "SolidCraft parameters",
"pass": true
},
"sketch_count": {
"actual": 2,
"expected": 2,
"label": "SolidCraft sketch count",
"pass": true
},
"sketches": [
{
"actual": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"expected": {
"curves": 4,
"name": "Blank",
"profiles": 1,
"status": "solved"
},
"label": "Blank sketch",
"pass": true
},
{
"actual": {
"curves": 1,
"name": "Path",
"profiles": 0
},
"expected": {
"curves": 1,
"name": "Path",
"profiles": 0
},
"label": "Path sketch",
"pass": true
}
]
},
"id": "saved_design_resize_path_flange",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/flat_pattern/results.json",
"sha256": "7181d630221cdedc8e2e426be80016fb6cb28dc331d21e3432c22619ccdc0f21",
"size": 1123
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": 1,
"expected": 1,
"label": "SolidCraft inspection check result_count",
"pass": true
},
"id": "result_count",
"path": []
},
{
"comparison": {
"actual": 1,
"expected": 1,
"label": "SolidCraft inspection check bend_count",
"pass": true
},
"id": "bend_count",
"path": [
0,
"bends"
]
},
{
"comparison": {
"actual": 3.0,
"delta": 0.0,
"expected": 3.0,
"kind": "scalar",
"label": "SolidCraft inspection check bend_radius",
"pass": true,
"tolerance": 0.001
},
"id": "bend_radius",
"path": [
0,
"bends",
0,
"radius"
]
},
{
"comparison": {
"actual": "Path Flange Rule",
"expected": "Path Flange Rule",
"label": "SolidCraft inspection check sheet_rule",
"pass": true
},
"id": "sheet_rule",
"path": [
0,
"rule"
]
},
{
"comparison": {
"actual": 2.0,
"delta": 0.0,
"expected": 2.0,
"kind": "scalar",
"label": "SolidCraft inspection check sheet_thickness",
"pass": true,
"tolerance": 0.001
},
"id": "sheet_thickness",
"path": [
0,
"thickness"
]
},
{
"comparison": {
"actual": 0.5,
"delta": 0.0,
"expected": 0.5,
"kind": "scalar",
"label": "SolidCraft inspection check sheet_k_factor",
"pass": true,
"tolerance": 0.001
},
"id": "sheet_k_factor",
"path": [
0,
"k_factor"
]
}
]
},
"id": "inspection_flat_pattern",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/sheet-path-flange/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "sheet-path-flange"
}