Skip to content
Development version. Forge is under active development and testing. APIs, behaviour, coverage and verification results may be incomplete or change without notice; published PASS results are not a support guarantee or production-readiness claim.

Verification

Native path flange

A reusable line-only Sketch path drives an existing-edge flange

Verified scpf 80 × 40 × 2 mm sheet; 14 mm path; R3 feature override

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.

Expected setup

No declared setup diagram is available.

scpf source

Complete primary source from the site branch; built revision below.

scpf/model.py
"""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)

Open published command JSON

  1. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "80",
        "name": "width",
        "unit": "mm"
      }
    }
  2. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "40",
        "name": "depth",
        "unit": "mm"
      }
    }
  3. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "2",
        "name": "thickness",
        "unit": "mm"
      }
    }
  4. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "2",
        "name": "bend_radius",
        "unit": "mm"
      }
    }
  5. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "0.5",
        "name": "k_factor",
        "unit": ""
      }
    }
  6. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "14",
        "name": "path_height",
        "unit": "mm"
      }
    }
  7. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "3",
        "name": "path_radius",
        "unit": "mm"
      }
    }
  8. sheet.manage_rules

    {
      "command": "sheet.manage_rules",
      "params": {
        "active": true,
        "bend_radius": "bend_radius",
        "k_factor": "k_factor",
        "name": "Path Flange Rule",
        "thickness": "thickness"
      }
    }
  9. sketch.create

    {
      "command": "sketch.create",
      "params": {
        "name": "Blank",
        "plane": "XY"
      }
    }
  10. sketch.rectangle.two_point

    {
      "command": "sketch.rectangle.two_point",
      "params": {
        "p0": [
          "-(width / 2)",
          "-(depth / 2)"
        ],
        "p1": [
          "width / 2",
          "depth / 2"
        ]
      }
    }
  11. sketch.finish

    {
      "command": "sketch.finish",
      "params": {}
    }
  12. sheet.flange

    {
      "command": "sheet.flange",
      "params": {
        "body_name": "SheetPathFlange",
        "rule": "Path Flange Rule",
        "sketch": "Blank",
        "type": "base"
      }
    }
  13. sketch.create

    {
      "command": "sketch.create",
      "params": {
        "name": "Path",
        "plane": "XZ"
      }
    }
  14. sketch.line

    {
      "bind": {
        "$contour_curves_1": "curves"
      },
      "command": "sketch.line",
      "params": {
        "connect": true,
        "ids": [
          "l1"
        ],
        "points": [
          [
            40,
            2
          ],
          [
            40,
            "path_height"
          ]
        ]
      }
    }
  15. sketch.finish

    {
      "command": "sketch.finish",
      "params": {}
    }
  16. 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

native / baselinepass
MeasurementExpectedMeasuredCheck
SolidCraft body count11pass
SolidCraft parameters / bend_radius22pass
SolidCraft parameters / depth4040pass
SolidCraft parameters / k_factor0.50.5pass
SolidCraft parameters / path_height1414pass
SolidCraft parameters / path_radius33pass
SolidCraft parameters / thickness22pass
SolidCraft parameters / width8080pass
SolidCraft sketch count22pass
native / saved_design_resize_path_flangepass
MeasurementExpectedMeasuredCheck
SolidCraft body count11pass
SolidCraft parameters / path_height1818pass
SolidCraft parameters / path_radius44pass
SolidCraft sketch count22pass
native / inspection_flat_patternpass

Model stages

  1. Create the flat sheet and a reusable line-only open path
  2. Add a native path flange to the selected existing edge
  3. Mutate path height and radius and verify the flat pattern

Build and verification

  • Primary implementation: scpf
  • Build source: 1dead221b9ea2c31901da9a19a8c205d25272ec3
  • Durable scope: main

Implementations

scpf

native — expected versus measured evidence

Open published verification report

verification.json
{
  "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"
}

Published files