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 contour flange

An open connected Sketch chain creates one editable sheet body

Verified scpf 50 mm width; 2.5 mm sheet; R2.5 bend; K=0.44; open XZ contour

What this verifies

A reusable line/tangent-arc/line contour creates native contour-flange sheet history with parameterized width and one shared material rule.

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 contour-flange history."""


class SheetContourFlange:
    end_height = 30.0
    contour_width = 50.0
    thickness = 2.5
    bend_radius = 2.5
    k_factor = 0.44

    def build(self):
        with Sketch(name="Contour", plane="XZ") as sketch:
            chain = sketch.chain(start=(0, 0))
            chain.line_to((35, 0))
            chain.tangent_arc_to((40, 5))
            chain.line_to((40, self.end_height))
            contour = chain.finish()

        return contour.contour_flange(
            distance=self.contour_width,
            thickness=self.thickness,
            bend_radius=self.bend_radius,
            k_factor=self.k_factor,
            rule_name="Contour Flange Rule",
        )


SheetContourFlange()

Engineering explanation

Native contour flange

Group: sheet-metal Saved-design required: true

Documentation provenance: Forge #785 promotes the released #684 contour-flange fixture to public Verification.

Goal

Prove that a reusable connected open Sketch chain can create one native contour-flange sheet body with an explicit material rule.

Forge API

Sketch.chain(...), line_to(), tangent_arc_to(), finish() and Shape.contour_flange(...).

Forge model

An XZ line/tangent-arc/line chain creates a 50 mm wide, 2.5 mm thick contour flange using R2.5 and K=0.44.

How Forge builds it in SolidCraft

Forge authors the ordered open Sketch chain, retains replay-bound native curve identity and passes the exact chain to one native contour-flange operation with one sheet rule.

SolidCraft result

One native contour-flange sheet body preserves the connected Sketch source and recoverable developed geometry.

Saved-design test

Mutate sheet width from 50 to 60 mm and the authored contour end height from 30 to 35 mm, then verify the rebuilt native sheet history.

Geometry evidence

Geometry-rationale provenance: Forge #785 / #684 public capability promotion. Bounds sufficient: false

Bounds cannot prove ordered-chain replay identity or sheet-rule ownership; native history and flat-pattern inspection are required.

Reference notes

  • Native SolidCraft history — This is a native-history capability; external solid references are optional and must not be invented when they cannot express the same intent.
Generated command sequence — scpf (12)

Open published command JSON

  1. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "30",
        "name": "end_height",
        "unit": "mm"
      }
    }
  2. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "50",
        "name": "contour_width",
        "unit": "mm"
      }
    }
  3. parameters.add

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

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

    {
      "command": "parameters.add",
      "params": {
        "expression": "0.44",
        "name": "k_factor",
        "unit": ""
      }
    }
  6. sheet.manage_rules

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

    {
      "command": "sketch.create",
      "params": {
        "name": "Contour",
        "plane": "XZ"
      }
    }
  8. sketch.line

    {
      "bind": {
        "$contour_curves_1": "curves"
      },
      "command": "sketch.line",
      "params": {
        "connect": true,
        "ids": [
          "l1"
        ],
        "points": [
          [
            0,
            0
          ],
          [
            35,
            0
          ]
        ]
      }
    }
  9. sketch.arc.tangent

    {
      "bind": {
        "$contour_curves_2": {
          "field": "curves",
          "prepend": "$contour_curves_1"
        }
      },
      "command": "sketch.arc.tangent",
      "params": {
        "curve": "l1",
        "end": [
          40,
          5
        ],
        "start": "l1.end"
      }
    }
  10. sketch.line

    {
      "bind": {
        "$contour_curves_3": {
          "field": "curves",
          "prepend": "$contour_curves_2"
        }
      },
      "command": "sketch.line",
      "params": {
        "connect": true,
        "ids": [
          "l2"
        ],
        "points": [
          [
            40,
            5
          ],
          [
            40,
            "end_height"
          ]
        ]
      }
    }
  11. sketch.finish

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

    {
      "command": "sheet.flange",
      "params": {
        "body_name": "SheetContourFlange",
        "curves": "$contour_curves_3",
        "distance": "contour_width",
        "rule": "Contour Flange Rule",
        "sketch": "Contour",
        "type": "contour"
      }
    }

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_radius2.52.5pass
SolidCraft parameters / contour_width5050pass
SolidCraft parameters / end_height3030pass
SolidCraft parameters / k_factor0.440.44pass
SolidCraft parameters / thickness2.52.5pass
SolidCraft sketch count11pass
native / saved_design_resize_contour_flangepass
MeasurementExpectedMeasuredCheck
SolidCraft body count11pass
SolidCraft parameters / contour_width6060pass
SolidCraft parameters / end_height3535pass
SolidCraft sketch count11pass
native / inspection_flat_patternpass

Model stages

  1. Build the connected open contour Sketch
  2. Create a native contour-flange sheet from the ordered chain
  3. Mutate width and contour height and verify native sheet history

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": "8d123c1edcc1d8a414e883a7a18c0f726dddf9d20f8e30fdf4020d02bb3f5a8b",
          "size": 2652
        }
      ],
      "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.5,
            "contour_width": 50.0,
            "end_height": 30.0,
            "k_factor": 0.44,
            "thickness": 2.5
          },
          "expected": {
            "bend_radius": 2.5,
            "contour_width": 50.0,
            "end_height": 30.0,
            "k_factor": 0.44,
            "thickness": 2.5
          },
          "label": "SolidCraft parameters",
          "pass": true
        },
        "sketch_count": {
          "actual": 1,
          "expected": 1,
          "label": "SolidCraft sketch count",
          "pass": true
        },
        "sketches": [
          {
            "actual": {
              "curves": 3,
              "name": "Contour",
              "profiles": 0
            },
            "expected": {
              "curves": 3,
              "name": "Contour",
              "profiles": 0
            },
            "label": "Contour sketch",
            "pass": true
          }
        ]
      },
      "id": "baseline",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "saved_designs/resize_contour_flange/model.sc",
          "sha256": "1153334839a920c206892012df74d9ad5159a8b001d17a3a096f756f66542d4d",
          "size": 17942
        },
        {
          "kind": "file",
          "path": "saved_designs/resize_contour_flange/measurements.json",
          "sha256": "14878264e3172f51d0e165eb4e7bd876d96a9c4f783281a337b31578396aad89",
          "size": 2632
        }
      ],
      "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": {
            "contour_width": 60.0,
            "end_height": 35.0
          },
          "expected": {
            "contour_width": 60.0,
            "end_height": 35.0
          },
          "label": "SolidCraft parameters",
          "pass": true
        },
        "sketch_count": {
          "actual": 1,
          "expected": 1,
          "label": "SolidCraft sketch count",
          "pass": true
        },
        "sketches": [
          {
            "actual": {
              "curves": 3,
              "name": "Contour",
              "profiles": 0
            },
            "expected": {
              "curves": 3,
              "name": "Contour",
              "profiles": 0
            },
            "label": "Contour sketch",
            "pass": true
          }
        ]
      },
      "id": "saved_design_resize_contour_flange",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "inspections/flat_pattern/results.json",
          "sha256": "ec66d18545a9774fb5ec47da4bcf94e55f2d228ae1a28bec76e4fe0fc2f51d0a",
          "size": 1441
        }
      ],
      "error": null,
      "evidence": {
        "checks": [
          {
            "comparison": {
              "actual": 1,
              "expected": 1,
              "label": "SolidCraft inspection check result_count",
              "pass": true
            },
            "id": "result_count",
            "path": []
          },
          {
            "comparison": {
              "actual": "Contour Flange Rule",
              "expected": "Contour Flange Rule",
              "label": "SolidCraft inspection check sheet_rule",
              "pass": true
            },
            "id": "sheet_rule",
            "path": [
              0,
              "rule"
            ]
          },
          {
            "comparison": {
              "actual": 2.5,
              "delta": 0.0,
              "expected": 2.5,
              "kind": "scalar",
              "label": "SolidCraft inspection check sheet_thickness",
              "pass": true,
              "tolerance": 0.001
            },
            "id": "sheet_thickness",
            "path": [
              0,
              "thickness"
            ]
          },
          {
            "comparison": {
              "actual": 0.44,
              "delta": 0.0,
              "expected": 0.44,
              "kind": "scalar",
              "label": "SolidCraft inspection check sheet_k_factor",
              "pass": true,
              "tolerance": 0.001
            },
            "id": "sheet_k_factor",
            "path": [
              0,
              "k_factor"
            ]
          },
          {
            "comparison": {
              "actual": 0,
              "expected": 0,
              "label": "SolidCraft inspection check bend_count",
              "pass": true
            },
            "id": "bend_count",
            "path": [
              0,
              "bends"
            ]
          }
        ]
      },
      "id": "inspection_flat_pattern",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/sheet-contour-flange/scpf/model.sc",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "sheet-contour-flange"
}

Published files