Verification
Configuration Position
One saved native table moves a front-plate occurrence through Front, Below and Service states
What this verifies
This case proves that one complete assembly can keep a fixed screen while a separate front-plate occurrence follows two native Placement parameters. Reopening the saved design and activating Front, Below or Service moves only that occurrence without rebuilding the Python assembly.
scpf source
Complete primary source from the site branch; built revision below.
"""Generic configuration-table qualification for parameter-driven assembly positions."""
class Screen:
def build(self):
return Box(80, 10, 50)
class FrontPlate:
def build(self):
return Box(80, 2, 50)
class ConfigurationPosition:
plate_y = 8.0
plate_z = 0.0
def build(self):
screen = Screen(name="screen")
front_plate = FrontPlate(
name="front_plate",
placement=Placement(y=self.plate_y, z=self.plate_z),
)
return Configure(
screen + front_plate,
active="Front",
columns=(Param(self.plate_y), Param(self.plate_z)),
rows={
"Front": ("8 mm", "0 mm"),
"Below": ("0 mm", "-55 mm"),
"Service": ("25 mm", "0 mm"),
},
)
ConfigurationPosition()
Engineering explanation
This case verifies that one saved native SolidCraft configuration table can move an occurrence inside a complete assembly through ordinary associative placement parameters.
The assembly has two occurrences:
- screen stays fixed at the origin in every configuration;
- front_plate is the only occurrence that moves.
The configuration table owns two parameter columns, plate_y and plate_z,
which are also the Y/Z values of the front plate’s Placement.
| Configuration | plate_y | plate_z | Expected physical state |
|---|---|---|---|
| Front | 8 mm | 0 mm | Front plate sits directly in front of the fixed screen. |
| Below | 0 mm | -55 mm | Front plate moves below the screen. |
| Service | 25 mm | 0 mm | Front plate moves +25 mm on Y while the screen remains fixed. |
The verification first saves the design with Front active. It then reopens
that saved .sc and activates Below and Service natively. For each
state it checks both the SolidCraft parameter values and the measured body
envelopes.
The important contract is that switching rows happens in the saved SolidCraft document. Forge does not rebuild the Python assembly to create the alternate positions.
This case does not test feature suppression, camera/render state or alternate assembly topology; those are separate configuration/presentation concerns.
Generated command sequence — scpf (16)
component.create{ "bind": { "$screen": "occurrence" }, "command": "component.create", "params": { "grounded": true, "name": "Screen" } }solid.box{ "command": "solid.box", "params": { "body_name": "Screen", "center": [ 0, 0, 0 ], "height": 50, "length": 80, "width": 10 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }component.create{ "bind": { "$front_plate": "occurrence" }, "command": "component.create", "params": { "grounded": false, "name": "FrontPlate" } }solid.box{ "command": "solid.box", "params": { "body_name": "FrontPlate", "center": [ 0, 0, 0 ], "height": 50, "length": 80, "width": 2 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }parameters.add{ "command": "parameters.add", "params": { "expression": "8 mm", "name": "plate_y" } }parameters.add{ "command": "parameters.add", "params": { "expression": "0 mm", "name": "plate_z" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$front_plate", "translate": [ 0, "plate_y", "plate_z" ] } }config.configure{ "command": "config.configure", "params": { "params": [ "plate_y", "plate_z" ] } }config.row{ "bind": { "$config_row_a61759020289": { "field": "rows", "select": "id", "where": { "name": "Front" } } }, "command": "config.row", "params": { "name": "Default", "rename": "Front" } }config.row{ "command": "config.row", "params": { "name": "Front", "values": { "param:plate_y": "8 mm", "param:plate_z": "0 mm" } } }config.row{ "bind": { "$config_row_a53dffffb7e5": { "field": "rows", "select": "id", "where": { "name": "Below" } } }, "command": "config.row", "params": { "name": "Below", "values": { "param:plate_y": "0 mm", "param:plate_z": "-55 mm" } } }config.row{ "bind": { "$config_row_d677190e0a99": { "field": "rows", "select": "id", "where": { "name": "Service" } } }, "command": "config.row", "params": { "name": "Service", "values": { "param:plate_y": "25 mm", "param:plate_z": "0 mm" } } }config.activate{ "command": "config.activate", "params": { "row": "$config_row_a61759020289" } }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
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -40 × -5 × -25 | -40 × -5 × -25 | — |
| Body 1 / max [mm] | 40 × 5 × 25 | 40 × 5 × 25 | — |
| Body 2 / min [mm] | -40 × 7 × -25 | -40 × 7 × -25 | — |
| Body 2 / max [mm] | 40 × 9 × 25 | 40 × 9 × 25 | — |
| SolidCraft parameters / plate_y | 8 | 8 | pass |
| SolidCraft parameters / plate_z | 0 | 0 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -40 × -5 × -25 | -40 × -5 × -25 | — |
| Body 1 / max [mm] | 40 × 5 × 25 | 40 × 5 × 25 | — |
| Body 2 / min [mm] | -40 × -1 × -80 | -40 × -1 × -80 | — |
| Body 2 / max [mm] | 40 × 1 × -30 | 40 × 1 × -30 | — |
| SolidCraft parameters / plate_y | 0 | 0 | pass |
| SolidCraft parameters / plate_z | -55 | -55 | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -40 × -5 × -25 | -40 × -5 × -25 | — |
| Body 1 / max [mm] | 40 × 5 × 25 | 40 × 5 × 25 | — |
| Body 2 / min [mm] | -40 × 24 × -25 | -40 × 24 × -25 | — |
| Body 2 / max [mm] | 40 × 26 × 25 | 40 × 26 × 25 | — |
| SolidCraft parameters / plate_y | 25 | 25 | pass |
| SolidCraft parameters / plate_z | 0 | 0 | pass |
Model stages
- Build screen and front-plate component occurrences
- Keep front-plate Y and Z placement associative to model parameters
- Author one native configuration table around the complete assembly
- Switch to Below and Service in the saved SolidCraft design
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": "bd988eac28ff705b69e121057927fa85f29918bf12a54c8a50e10ba1c426ab53",
"size": 2520
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Screen",
"max": [
40.0,
5.0,
25.0
],
"min": [
-40.0,
-5.0,
-25.0
]
},
"expected": {
"label": null,
"max": [
40.0,
5.0,
25.0
],
"min": [
-40.0,
-5.0,
-25.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "FrontPlate",
"max": [
40.0,
9.0,
25.0
],
"min": [
-40.0,
7.0,
-25.0
]
},
"expected": {
"label": null,
"max": [
40.0,
9.0,
25.0
],
"min": [
-40.0,
7.0,
-25.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"parameters": {
"actual": {
"plate_y": 8.0,
"plate_z": 0.0
},
"expected": {
"plate_y": 8.0,
"plate_z": 0.0
},
"label": "SolidCraft parameters",
"pass": true
}
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/below/model.sc",
"sha256": "73378d8c4b688b0d754175a7d01107b252464340f36c7481b4b703e50d644357",
"size": 6187
},
{
"kind": "file",
"path": "saved_designs/below/measurements.json",
"sha256": "a0347e6b8879242947ea18ed928cba6ad49f1a3752ebd28ead0c6fb80ffd7b8f",
"size": 2528
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Screen",
"max": [
40.0,
5.0,
25.0
],
"min": [
-40.0,
-5.0,
-25.0
]
},
"expected": {
"label": null,
"max": [
40.0,
5.0,
25.0
],
"min": [
-40.0,
-5.0,
-25.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "FrontPlate",
"max": [
40.0,
1.0,
-30.0
],
"min": [
-40.0,
-1.0,
-80.0
]
},
"expected": {
"label": null,
"max": [
40.0,
1.0,
-30.0
],
"min": [
-40.0,
-1.0,
-80.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"parameters": {
"actual": {
"plate_y": 0.0,
"plate_z": -55.0
},
"expected": {
"plate_y": 0.0,
"plate_z": -55.0
},
"label": "SolidCraft parameters",
"pass": true
}
},
"id": "saved_design_below",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/service/model.sc",
"sha256": "b896f73cca5e81c44f1f92a40f25f5216a46f84e28afd4e2a57c9dfbb32eb98d",
"size": 6180
},
{
"kind": "file",
"path": "saved_designs/service/measurements.json",
"sha256": "772e51d8898b599295e67cb1e77dafed998c64f2ddf9898f5b5c24d2c91c0e2c",
"size": 2525
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Screen",
"max": [
40.0,
5.0,
25.0
],
"min": [
-40.0,
-5.0,
-25.0
]
},
"expected": {
"label": null,
"max": [
40.0,
5.0,
25.0
],
"min": [
-40.0,
-5.0,
-25.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "FrontPlate",
"max": [
40.0,
26.0,
25.0
],
"min": [
-40.0,
24.0,
-25.0
]
},
"expected": {
"label": null,
"max": [
40.0,
26.0,
25.0
],
"min": [
-40.0,
24.0,
-25.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
},
"parameters": {
"actual": {
"plate_y": 25.0,
"plate_z": 0.0
},
"expected": {
"plate_y": 25.0,
"plate_z": 0.0
},
"label": "SolidCraft parameters",
"pass": true
}
},
"id": "saved_design_service",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "inspections/table/results.json",
"sha256": "2e211f68d0b1129d3d89172651a4b96fad5dbe4b2fa9b1b3b88233e23c65d98a",
"size": 996
}
],
"error": null,
"evidence": {
"checks": [
{
"comparison": {
"actual": 3,
"expected": 3,
"label": "SolidCraft inspection check rows",
"pass": true
},
"id": "rows",
"path": [
0,
"rows"
]
},
{
"comparison": {
"actual": 2,
"expected": 2,
"label": "SolidCraft inspection check columns",
"pass": true
},
"id": "columns",
"path": [
0,
"columns"
]
},
{
"comparison": {
"actual": "Front",
"expected": "Front",
"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": "Front",
"expected": "Front",
"label": "SolidCraft inspection check front-name",
"pass": true
},
"id": "front-name",
"path": [
0,
"rows",
0,
"name"
]
},
{
"comparison": {
"actual": "Below",
"expected": "Below",
"label": "SolidCraft inspection check below-name",
"pass": true
},
"id": "below-name",
"path": [
0,
"rows",
1,
"name"
]
},
{
"comparison": {
"actual": "Service",
"expected": "Service",
"label": "SolidCraft inspection check service-name",
"pass": true
},
"id": "service-name",
"path": [
0,
"rows",
2,
"name"
]
},
{
"comparison": {
"actual": "-55 mm",
"expected": "-55 mm",
"label": "SolidCraft inspection check below-z",
"pass": true
},
"id": "below-z",
"path": [
0,
"rows",
1,
"values",
"param:plate_z"
]
}
]
},
"id": "inspection_table",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/configuration-position/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "configuration-position"
}