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

Configuration Table

One editable native design with three parameter and suppression rows

Verified scpf Small, Medium and Large

What this verifies

Three named rows drive four native parameters and two independent optional hole features. The Medium row is the initially active design.

Expected setup

No declared setup diagram is available.

scpf source

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

scpf/model.py
"""One native editable configuration table with two independent optional holes."""
from scpf import Anchor, Box, Configure, Hole, Param, Suppress


class ConfigurationPlate:
    width = 80
    depth = 40
    thickness = 5
    diameter = 5

    def build(self):
        plate = Box(self.width, self.depth, self.thickness, anchor=Anchor.BOTTOM)
        left = Hole(d=self.diameter).at(-12, 0, self.thickness)
        right = Hole(d=self.diameter).at(12, 0, self.thickness)
        return Configure(
            plate - left - right,
            active="Medium",
            columns=(Param(self.width), Param(self.depth), Param(self.thickness),
                     Param(self.diameter), Suppress(left), Suppress(right)),
            rows={
                "Small": ("60 mm", "30 mm", "4 mm", "4 mm", True, True),
                "Medium": ("80 mm", "40 mm", "5 mm", "5 mm", True, True),
                "Large": ("100 mm", "50 mm", "6 mm", "6 mm", False, False),
            },
        )


ConfigurationPlate()
Generated command sequence — scpf (14)

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": "5",
        "name": "thickness",
        "unit": "mm"
      }
    }
  4. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "5",
        "name": "diameter",
        "unit": "mm"
      }
    }
  5. solid.box

    {
      "command": "solid.box",
      "params": {
        "body_name": "ConfigurationPlate",
        "corner": [
          "-width / 2",
          "-depth / 2",
          0
        ],
        "height": "thickness",
        "length": "width",
        "width": "depth"
      }
    }
  6. solid.hole

    {
      "bind": {
        "$config_name_5": "name"
      },
      "command": "solid.hole",
      "params": {
        "diameter": "diameter",
        "position": [
          -12.0,
          0.0,
          5.0
        ],
        "targets": [
          "ConfigurationPlate"
        ]
      }
    }
  7. solid.hole

    {
      "bind": {
        "$config_name_6": "name"
      },
      "command": "solid.hole",
      "params": {
        "diameter": "diameter",
        "position": [
          12.0,
          0.0,
          5.0
        ],
        "targets": [
          "ConfigurationPlate"
        ]
      }
    }
  8. config.configure

    {
      "command": "config.configure",
      "params": {
        "features": [
          "$config_name_5",
          "$config_name_6"
        ],
        "params": [
          "width",
          "depth",
          "thickness",
          "diameter"
        ]
      }
    }
  9. config.row

    {
      "bind": {
        "$config_row_5263293fc202": {
          "field": "rows",
          "select": "id",
          "where": {
            "name": "Small"
          }
        }
      },
      "command": "config.row",
      "params": {
        "name": "Default",
        "rename": "Small"
      }
    }
  10. config.row

    {
      "command": "config.row",
      "params": {
        "name": "Small",
        "values": {
          "param:depth": "30 mm",
          "param:diameter": "4 mm",
          "param:thickness": "4 mm",
          "param:width": "60 mm",
          "suppress:$config_name_5": "true",
          "suppress:$config_name_6": "true"
        }
      }
    }
  11. config.row

    {
      "bind": {
        "$config_row_8e588cd18774": {
          "field": "rows",
          "select": "id",
          "where": {
            "name": "Medium"
          }
        }
      },
      "command": "config.row",
      "params": {
        "name": "Medium",
        "values": {
          "param:depth": "40 mm",
          "param:diameter": "5 mm",
          "param:thickness": "5 mm",
          "param:width": "80 mm",
          "suppress:$config_name_5": "true",
          "suppress:$config_name_6": "true"
        }
      }
    }
  12. config.row

    {
      "bind": {
        "$config_row_ab80540d98d2": {
          "field": "rows",
          "select": "id",
          "where": {
            "name": "Large"
          }
        }
      },
      "command": "config.row",
      "params": {
        "name": "Large",
        "values": {
          "param:depth": "50 mm",
          "param:diameter": "6 mm",
          "param:thickness": "6 mm",
          "param:width": "100 mm",
          "suppress:$config_name_5": "false",
          "suppress:$config_name_6": "false"
        }
      }
    }
  13. config.activate

    {
      "command": "config.activate",
      "params": {
        "row": "$config_row_8e588cd18774"
      }
    }
  14. config.table

    {
      "command": "config.table",
      "params": {}
    }

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
native / saved_design_largepass
MeasurementExpectedMeasuredCheck
Body envelopes / count11pass
Body 1 / min [mm]-50 × -25 × 0-50 × -25 × 0—
Body 1 / max [mm]50 × 25 × 650 × 25 × 6—
SolidCraft parameters / depth5050pass
SolidCraft parameters / diameter66pass
SolidCraft parameters / thickness66pass
SolidCraft parameters / width100100pass
native / inspection_tablepass
native / inspection_switchpass

Model stages

  1. Build a symbolic plate and two independent hole features
  2. Author one native configuration table
  3. Activate Medium and inspect the saved design
  4. Activate Large to check the native parameter and feature changes

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": "9c17b1a6cbd3c6539ae69dee1e50af2ba9c60d75c2b67a6ff54d2332c0725e8e",
          "size": 2272
        }
      ],
      "error": null,
      "evidence": {
        "body_count": {
          "actual": 1,
          "expected": 1,
          "label": "SolidCraft body count",
          "pass": true
        }
      },
      "id": "baseline",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "saved_designs/large/model.sc",
          "sha256": "1ac0de82dc5f8f9aa44468cf7bfff5349a5c69485d28def598edeb31b8ca5b0b",
          "size": 11354
        },
        {
          "kind": "file",
          "path": "saved_designs/large/measurements.json",
          "sha256": "2e6d6148e1d565e1c2f2af887c8d9910a9743bc645dd5add42a02fe9a7ee300a",
          "size": 2423
        }
      ],
      "error": null,
      "evidence": {
        "body_envelopes": {
          "actual_count": 1,
          "expected_count": 1,
          "kind": "body_envelopes",
          "matched_pairs": [
            {
              "actual": {
                "label": "ConfigurationPlate",
                "max": [
                  50.0,
                  25.0,
                  6.000000000000001
                ],
                "min": [
                  -50.0,
                  -25.0,
                  0.0
                ]
              },
              "expected": {
                "label": null,
                "max": [
                  50.0,
                  25.0,
                  6.0
                ],
                "min": [
                  -50.0,
                  -25.0,
                  0.0
                ]
              },
              "max_delta": 8.881784197001252e-16
            }
          ],
          "pass": true,
          "tolerance": 0.001,
          "unmatched_actual": [],
          "unmatched_expected": []
        },
        "parameters": {
          "actual": {
            "depth": 50.0,
            "diameter": 6.0,
            "thickness": 6.0,
            "width": 100.0
          },
          "expected": {
            "depth": 50.0,
            "diameter": 6.0,
            "thickness": 6.0,
            "width": 100.0
          },
          "label": "SolidCraft parameters",
          "pass": true
        }
      },
      "id": "saved_design_large",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "inspections/table/results.json",
          "sha256": "81b5e64985e7c3925543f5aac1b8183a1218e91554150cac274a7f61b1c5ac92",
          "size": 2077
        }
      ],
      "error": null,
      "evidence": {
        "checks": [
          {
            "comparison": {
              "actual": 3,
              "expected": 3,
              "label": "SolidCraft inspection check row-count",
              "pass": true
            },
            "id": "row-count",
            "path": [
              0,
              "rows"
            ]
          },
          {
            "comparison": {
              "actual": 6,
              "expected": 6,
              "label": "SolidCraft inspection check column-count",
              "pass": true
            },
            "id": "column-count",
            "path": [
              0,
              "columns"
            ]
          },
          {
            "comparison": {
              "actual": "Medium",
              "expected": "Medium",
              "label": "SolidCraft inspection check active",
              "pass": true
            },
            "id": "active",
            "path": [
              0,
              "active"
            ]
          },
          {
            "comparison": {
              "actual": true,
              "expected": true,
              "label": "SolidCraft inspection check matches",
              "pass": true
            },
            "id": "matches",
            "path": [
              0,
              "matches"
            ]
          },
          {
            "comparison": {
              "actual": "Small",
              "expected": "Small",
              "label": "SolidCraft inspection check row-small",
              "pass": true
            },
            "id": "row-small",
            "path": [
              0,
              "rows",
              0,
              "name"
            ]
          },
          {
            "comparison": {
              "actual": "Medium",
              "expected": "Medium",
              "label": "SolidCraft inspection check row-medium",
              "pass": true
            },
            "id": "row-medium",
            "path": [
              0,
              "rows",
              1,
              "name"
            ]
          },
          {
            "comparison": {
              "actual": "Large",
              "expected": "Large",
              "label": "SolidCraft inspection check row-large",
              "pass": true
            },
            "id": "row-large",
            "path": [
              0,
              "rows",
              2,
              "name"
            ]
          },
          {
            "comparison": {
              "actual": "true",
              "expected": "true",
              "label": "SolidCraft inspection check small-suppress-a",
              "pass": true
            },
            "id": "small-suppress-a",
            "path": [
              0,
              "rows",
              0,
              "values",
              "suppress:Hole1"
            ]
          },
          {
            "comparison": {
              "actual": "true",
              "expected": "true",
              "label": "SolidCraft inspection check medium-suppress-a",
              "pass": true
            },
            "id": "medium-suppress-a",
            "path": [
              0,
              "rows",
              1,
              "values",
              "suppress:Hole1"
            ]
          },
          {
            "comparison": {
              "actual": "false",
              "expected": "false",
              "label": "SolidCraft inspection check large-suppress-a",
              "pass": true
            },
            "id": "large-suppress-a",
            "path": [
              0,
              "rows",
              2,
              "values",
              "suppress:Hole1"
            ]
          },
          {
            "comparison": {
              "actual": "100 mm",
              "expected": "100 mm",
              "label": "SolidCraft inspection check large-width",
              "pass": true
            },
            "id": "large-width",
            "path": [
              0,
              "rows",
              2,
              "values",
              "param:width"
            ]
          }
        ]
      },
      "id": "inspection_table",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "inspections/switch/results.json",
          "sha256": "f00678ce333646ea851867c3945ab121290c6f3b93742a1652e0da9d7238af47",
          "size": 4202
        }
      ],
      "error": null,
      "evidence": {
        "checks": [
          {
            "comparison": {
              "actual": "Large",
              "expected": "Large",
              "label": "SolidCraft inspection check active",
              "pass": true
            },
            "id": "active",
            "path": [
              1,
              "active"
            ]
          },
          {
            "comparison": {
              "actual": true,
              "expected": true,
              "label": "SolidCraft inspection check matches",
              "pass": true
            },
            "id": "matches",
            "path": [
              1,
              "matches"
            ]
          }
        ]
      },
      "id": "inspection_switch",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/configuration-table/scpf/model.sc",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "configuration-table"
}

Published files