Verification
Native parametric occurrence Placement
A reusable occurrence keeps its X placement as an editable native expression
What this verifies
Two Block occurrences share one definition while the second uses the parent offset parameter as an ordinary native occurrence Placement, not an assembly joint.
scpf source
Complete primary source from the site branch; built revision below.
"""Qualification: native parametric occurrence Placement without joints."""
class Block:
def build(self):
return Box(20, 20, 10)
class ParametricMove:
offset = 40.0
def build(self):
fixed = Block()
placed = Block(placement=Placement(x=self.offset))
return fixed + placed
ParametricMove()
Engineering explanation
Native parametric occurrence Placement
Documentation provenance: historical Qualification case text from commit
6472c7ca02090d83a0fedc8ca18f947a3d3d56ca; lowering wording updated during #559 for replay-bound occurrence IDs restored by change 0013 / #191.
Legacy group: components
Saved-design required: true
Goal
Verify that placing one reusable occurrence with a parent parameter is ordinary CAD placement, not an implicit assembly joint.
Forge API
Block(); Block(placement=Placement(x=self.offset))
Forge model
Two occurrences share one Block definition. The first remains at the component origin; the second carries an absolute symbolic X Placement.
How Forge builds it in SolidCraft
Forge publishes offset, creates one reusable Block definition, binds the real copied occurrence ID, then emits occurrence.move with translate=[‘offset’, 0, 0]. No predicted occurrence name and no joint.create is used for ordinary placement.
SolidCraft result
Two 20 x 20 x 10 mm blocks sit at X=0 and X=40 mm. SolidCraft stores the second occurrence as an expressed move and no assembly joint is required.
Saved-design test
Change offset from 40 to 70 mm in the saved design; without rerunning Python the second occurrence must move another 30 mm while the first remains fixed.
Geometry evidence
Geometry-rationale provenance: X/Y placement and mutation values restored from
qualification/expectations.pyat commit6472c7ca02090d83a0fedc8ca18f947a3d3d56ca; Z bounds updated for the currentBox(..., anchor=Anchor.CENTER)contract introduced by change 0022.
Bounds sufficient: true
The two centred rectangular body envelopes uniquely describe the baseline and mutated X placements. Saved-design recompute separately proves the symbolic placement remains associative.
Reference notes
- SolidCraft — occurrence.move keeps the length expression as a native expressed move that follows parameter changes.
- CadQuery — Assembly child Location is an independent occurrence placement concept, separate from assembly constraints.
- PythonSCAD — A translate() is placement rather than a mating relationship.
- pyBOSL2 — Independent translated block geometry verifies the baseline placement.
- build123d — Independent Locations verify the same baseline occurrence positions.
Generated command sequence — scpf (6)
component.create{ "bind": { "$block_occurrence_1": "occurrence" }, "command": "component.create", "params": { "grounded": true, "name": "Block" } }solid.box{ "command": "solid.box", "params": { "body_name": "Block", "center": [ 0, 0, 0 ], "height": 10, "length": 20, "width": 20 } }component.activate{ "command": "component.activate", "params": { "component": "root" } }occurrence.copy{ "bind": { "$block_occurrence_2": "occurrence" }, "command": "occurrence.copy", "params": { "component": "Block" } }parameters.add{ "command": "parameters.add", "params": { "expression": "40 mm", "name": "offset" } }occurrence.move{ "command": "occurrence.move", "params": { "occurrence": "$block_occurrence_2", "translate": [ "offset", 0, 0 ] } }
Reference code
cadquery source · pass
"""CadQuery reference for two independently positioned block occurrences.
This reference compares visible assembly/location geometry only. SolidCraft
saved-design parameter mutation remains native Forge verification evidence.
"""
import cadquery as cq
block = cq.Solid.makeBox(
20,
20,
10,
cq.Vector(-10, -10, -5),
)
model = cq.Assembly()
model.add(block, name="fixed", loc=cq.Location((0, 0, 0)))
model.add(block, name="placed", loc=cq.Location((40, 0, 0)))
build123d source · pass
"""build123d reference: two normally translated block occurrences."""
from build123d import Align, Box, BuildPart, Locations
center = (Align.CENTER, Align.CENTER, Align.CENTER)
with BuildPart() as model:
with Locations((0, 0, 0), (40, 0, 0)):
Box(20, 20, 10, align=center)
pythonscad source · pass
"""PythonSCAD geometry reference for two normally translated blocks.
This reference matches the baseline geometry only. Forge separately qualifies
that SolidCraft keeps the translation as a saved parameter expression.
"""
from pythonscad import *
fixed = cube([20, 20, 10], center=True)
moved = cube([20, 20, 10], center=True).right(40)
model = fixed | moved
pybosl2 source · pass
"""pyBOSL2 geometry reference for two normally translated blocks.
This reference matches the baseline geometry only. Forge separately qualifies
the native SolidCraft expressed occurrence placement.
"""
from pybosl2 import cuboid
fixed = cuboid([20, 20, 10])
moved = cuboid([20, 20, 10]).right(40)
model = fixed | moved
Current visual verification — scpf
Each model-owned view is evaluated independently. Actual is the current native result; Goal is the declared expected profile; Overlay combines both; Diff compares the approved regression baseline.
front
passRegression: pass · expected shape: pass
right
passRegression: pass · expected shape: pass
iso
passRegression: pass · expected shape: pass
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 |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -10 × -10 × -5 | -10 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -10 × -10 × -5 | -10 × -10 × -5 | — |
| Body 1 / max [mm] | 10 × 10 × 5 | 10 × 10 × 5 | — |
| Body 2 / min [mm] | 30 × -10 × -5 | 30 × -10 × -5 | — |
| Body 2 / max [mm] | 50 × 10 × 5 | 50 × 10 × 5 | — |
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Body envelopes / count | 2 | 2 | pass |
| Body 1 / min [mm] | -10 × -10 × -5 | -10 × -10 × -5 | — |
| Body 1 / max [mm] | 10 × 10 × 5 | 10 × 10 × 5 | — |
| Body 2 / min [mm] | 60 × -10 × -5 | 60 × -10 × -5 | — |
| Body 2 / max [mm] | 80 × 10 × 5 | 80 × 10 × 5 | — |
cadquery — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -10 × -10 × -5 | -10 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
build123d — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -10 × -10 × -5 | -10 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
pythonscad — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -10 × -10 × -5 | -10 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
pybosl2 — pass
| Measurement | Expected | Measured | Check |
|---|---|---|---|
| Bounds / max | 50 × 10 × 5 | 50 × 10 × 5 | pass |
| Bounds / min | -10 × -10 × -5 | -10 × -10 × -5 | pass |
| Volume / mm3 | 8000 | 8000 | pass |
| Watertight | true | true | pass |
Model stages
- Create one reusable Block definition
- Copy the Block occurrence
- Move the copy with the symbolic offset parameter
- Recompute the saved design after changing offset
Build and verification
- Primary implementation:
scpf - Build source:
1dead221b9ea2c31901da9a19a8c205d25272ec3 - Durable scope:
main
Implementations
- build123d — builder-build123d: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- cadquery — builder-cadquery: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- pybosl2 — builder-pybosl2: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- pythonscad — builder-pythonscad: build=pass, verification=pass · STL · Preview · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verification
- scpf — builder-scpf: build=pass, verification=pass · STL · SC · Preview · commands · verification · result
geometry: status=pass, adapter=mesh-geometry, runtime=ghcr.io/brainboxemb/cad-reference:v0.3.6 · verificationnative: status=pass, adapter=solidcraft-model, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verificationvisual: status=pass, adapter=solidcraft-visual, runtime=ghcr.io/brainboxemb/cad-solidcraft:v0.3.6 · verification
scpf
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-10.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-10.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/scpf/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move-scpf-geometry"
}native — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "baseline/measurements.json",
"sha256": "d118e2406a61fcb65da3c5676983552e6f91be08077fc7a35e1703bb1290ae16",
"size": 2118
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Block",
"max": [
10.0,
10.0,
5.0
],
"min": [
-10.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
10.0,
10.0,
5.0
],
"min": [
-10.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Block (Block:2)",
"max": [
50.0,
10.0,
5.0
],
"min": [
30.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
50.0,
10.0,
5.0
],
"min": [
30.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
}
},
"id": "baseline",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "saved_designs/offset_70/model.sc",
"sha256": "fb66f4002f76694431b24779b6ab6c425db6eb8563b9c92caa876e8c1578af41",
"size": 4196
},
{
"kind": "file",
"path": "saved_designs/offset_70/measurements.json",
"sha256": "899dce370de6a9bb7a0d6d863b81cbb623c65a8a6cfdd9337fb301a1dd05d599",
"size": 2118
}
],
"error": null,
"evidence": {
"body_envelopes": {
"actual_count": 2,
"expected_count": 2,
"kind": "body_envelopes",
"matched_pairs": [
{
"actual": {
"label": "Block",
"max": [
10.0,
10.0,
5.0
],
"min": [
-10.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
10.0,
10.0,
5.0
],
"min": [
-10.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
},
{
"actual": {
"label": "Block (Block:2)",
"max": [
80.0,
10.0,
5.0
],
"min": [
60.0,
-10.0,
-5.0
]
},
"expected": {
"label": null,
"max": [
80.0,
10.0,
5.0
],
"min": [
60.0,
-10.0,
-5.0
]
},
"max_delta": 0.0
}
],
"pass": true,
"tolerance": 0.001,
"unmatched_actual": [],
"unmatched_expected": []
}
},
"id": "saved_design_offset_70",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/scpf/model.sc",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move"
}visual — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [
{
"kind": "file",
"path": "visual/front/camera.json",
"sha256": "bfb6b170d2eb9bad90fed5f569a7b91abea9d67ad46f447fe46d9266e8082746",
"size": 128
},
{
"kind": "file",
"path": "visual/front/actual.png",
"sha256": "7988a36443b410ea82b1037a10afa51432f584298d5235bb4a74c777ce4f6204",
"size": 10023
},
{
"kind": "file",
"path": "visual/front/goal.png",
"sha256": "3082034bdff64b7e86bd756552db320b7904f53ce4c6fd9114300bb5f535f182",
"size": 1993
},
{
"kind": "file",
"path": "visual/front/overlay.png",
"sha256": "3ca329b0ab7fa9c3a9942b411f58b345c9cd944c9bd25c606c4c56795e9280fb",
"size": 2936
},
{
"kind": "file",
"path": "visual/front/diff.png",
"sha256": "75ebecd8cc47f3c03ffa36a95d263948401c0fd65e6eb49d7477a02bd91c462e",
"size": 726
}
],
"error": null,
"evidence": {
"actual_image": "visual/front/actual.png",
"baseline": "baselines/front.json",
"baseline_status": "pass",
"camera": "visual/front/camera.json",
"diff_image": "visual/front/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/front/goal.png",
"overlay_image": "visual/front/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.014178,
"pass": true
},
"regression_required": true,
"view": "front"
},
"id": "front",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/right/camera.json",
"sha256": "e7702a720c43b7b64252e15e2f413c95ecd6abfa3b936ba59b864adce0fd9175",
"size": 144
},
{
"kind": "file",
"path": "visual/right/actual.png",
"sha256": "fed36354ca277118d21f8fb5e6976e07f90cd7e76dd7cbc004ccf02e55bbf705",
"size": 9406
},
{
"kind": "file",
"path": "visual/right/goal.png",
"sha256": "642775280ca2527ade1937550bec009ebe13fff4c435b5a075756ca8fb4bf320",
"size": 1986
},
{
"kind": "file",
"path": "visual/right/overlay.png",
"sha256": "6c5f5514f0ff248c3e50209792e30a752ed5fb02c14aa8ad6b2d7235fd357b47",
"size": 2491
},
{
"kind": "file",
"path": "visual/right/diff.png",
"sha256": "bdb92fd9b0fbbecc8347228c50f1289eb57802d5184826a1a4607fa87bc23425",
"size": 520
}
],
"error": null,
"evidence": {
"actual_image": "visual/right/actual.png",
"baseline": "baselines/right.json",
"baseline_status": "pass",
"camera": "visual/right/camera.json",
"diff_image": "visual/right/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/right/goal.png",
"overlay_image": "visual/right/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.006221,
"pass": true
},
"regression_required": true,
"view": "right"
},
"id": "right",
"reason": null,
"status": "pass"
},
{
"artifacts": [
{
"kind": "file",
"path": "visual/iso/camera.json",
"sha256": "9d68d0c64162c0bc726ba2d2ae65b208ac447c3ac57cd83d698a84dabc1e9e43",
"size": 159
},
{
"kind": "file",
"path": "visual/iso/actual.png",
"sha256": "553a8c9161c30feb2ec4650c07b1210c930110944776119920129f46fe87bc74",
"size": 28049
},
{
"kind": "file",
"path": "visual/iso/goal.png",
"sha256": "4effb8c547f67deea3f8375142f4729345a7dfd8e10d457a78e18035609e2382",
"size": 3817
},
{
"kind": "file",
"path": "visual/iso/overlay.png",
"sha256": "7ae9f08db0f4d360f30d7496f2fc39b1b55bf15cfd404975053b51d7726423c1",
"size": 18166
},
{
"kind": "file",
"path": "visual/iso/diff.png",
"sha256": "5c500c02c1436457c426c7f35a00a011142e08383688796e36b4c7bb69cce540",
"size": 2486
}
],
"error": null,
"evidence": {
"actual_image": "visual/iso/actual.png",
"baseline": "baselines/iso.json",
"baseline_status": "pass",
"camera": "visual/iso/camera.json",
"diff_image": "visual/iso/diff.png",
"expected_shape_required": true,
"expected_shape_status": "pass",
"goal_image": "visual/iso/goal.png",
"overlay_image": "visual/iso/overlay.png",
"regression": {
"changed_pixel_fraction": 0.0,
"changed_pixel_threshold": 12,
"max_changed_fraction": 0.08,
"max_mean_difference": 6.0,
"mean_absolute_difference": 0.013021,
"pass": true
},
"regression_required": true,
"view": "iso"
},
"id": "iso",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/scpf/model.sc",
"metadata": {
"baseline_provenance": {
"approval": "approved",
"historical_manifest_solidcraft_version": "0.30.1",
"migrated_from": "qualification/visual_baselines.json",
"migrated_without_reencoding": true,
"source_commit": "5c70f854cae0e0ca268647a648f542cc1dac157e",
"verified_during_solidcraft_0_42_0_qualification": true
},
"kind": "solidcraft-visual",
"measurements": "measurements.json",
"visual_report": "visual.json"
},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move-scpf-visual"
}cadquery
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-10.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-10.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/cadquery/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move-cadquery-geometry"
}build123d
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-10.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-10.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/build123d/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move-build123d-geometry"
}pythonscad
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-10.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-10.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/pythonscad/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move-pythonscad-geometry"
}pybosl2
geometry — expected versus measured evidence
Open published verification report
{
"checks": [
{
"artifacts": [],
"error": null,
"evidence": {
"bounds": {
"actual_max": [
50.0,
10.0,
5.0
],
"actual_min": [
-10.0,
-10.0,
-5.0
],
"expected_max": [
50.0,
10.0,
5.0
],
"expected_min": [
-10.0,
-10.0,
-5.0
],
"max_delta_mm": 0.0,
"pass": true,
"tolerance_mm": 0.5
},
"volume": {
"actual_mm3": 8000.0,
"delta_mm3": 0.0,
"expected_mm3": 8000.0,
"pass": true,
"tolerance_mm3": 2.0
},
"watertight": {
"actual": true,
"expected": true,
"pass": true
}
},
"id": "geometry",
"reason": null,
"status": "pass"
}
],
"input": "/output/models/parametric-move/pybosl2/model.stl",
"metadata": {},
"schema": "cad-verification",
"schema_version": 1,
"status": "pass",
"verification_id": "parametric-move-pybosl2-geometry"
}










