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 Position

One saved native table moves a front-plate occurrence through Front, Below and Service states

Verified scpf Front y=8 z=0; Below y=0 z=-55; Service y=25 z=0

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.

Expected setup

Configuration Position expected setup diagram

Published scpf baseline: declared expected body envelopes. Conceptual projection, not verification output.

scpf source

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

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

Configurationplate_yplate_zExpected physical state
Front8 mm0 mmFront plate sits directly in front of the fixed screen.
Below0 mm-55 mmFront plate moves below the screen.
Service25 mm0 mmFront 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)

Open published command JSON

  1. component.create

    {
      "bind": {
        "$screen": "occurrence"
      },
      "command": "component.create",
      "params": {
        "grounded": true,
        "name": "Screen"
      }
    }
  2. solid.box

    {
      "command": "solid.box",
      "params": {
        "body_name": "Screen",
        "center": [
          0,
          0,
          0
        ],
        "height": 50,
        "length": 80,
        "width": 10
      }
    }
  3. component.activate

    {
      "command": "component.activate",
      "params": {
        "component": "root"
      }
    }
  4. component.create

    {
      "bind": {
        "$front_plate": "occurrence"
      },
      "command": "component.create",
      "params": {
        "grounded": false,
        "name": "FrontPlate"
      }
    }
  5. solid.box

    {
      "command": "solid.box",
      "params": {
        "body_name": "FrontPlate",
        "center": [
          0,
          0,
          0
        ],
        "height": 50,
        "length": 80,
        "width": 2
      }
    }
  6. component.activate

    {
      "command": "component.activate",
      "params": {
        "component": "root"
      }
    }
  7. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "8 mm",
        "name": "plate_y"
      }
    }
  8. parameters.add

    {
      "command": "parameters.add",
      "params": {
        "expression": "0 mm",
        "name": "plate_z"
      }
    }
  9. occurrence.move

    {
      "command": "occurrence.move",
      "params": {
        "occurrence": "$front_plate",
        "translate": [
          0,
          "plate_y",
          "plate_z"
        ]
      }
    }
  10. config.configure

    {
      "command": "config.configure",
      "params": {
        "params": [
          "plate_y",
          "plate_z"
        ]
      }
    }
  11. config.row

    {
      "bind": {
        "$config_row_a61759020289": {
          "field": "rows",
          "select": "id",
          "where": {
            "name": "Front"
          }
        }
      },
      "command": "config.row",
      "params": {
        "name": "Default",
        "rename": "Front"
      }
    }
  12. config.row

    {
      "command": "config.row",
      "params": {
        "name": "Front",
        "values": {
          "param:plate_y": "8 mm",
          "param:plate_z": "0 mm"
        }
      }
    }
  13. 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"
        }
      }
    }
  14. 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"
        }
      }
    }
  15. config.activate

    {
      "command": "config.activate",
      "params": {
        "row": "$config_row_a61759020289"
      }
    }
  16. 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
Body envelopes / count22pass
Body 1 / min [mm]-40 × -5 × -25-40 × -5 × -25—
Body 1 / max [mm]40 × 5 × 2540 × 5 × 25—
Body 2 / min [mm]-40 × 7 × -25-40 × 7 × -25—
Body 2 / max [mm]40 × 9 × 2540 × 9 × 25—
SolidCraft parameters / plate_y88pass
SolidCraft parameters / plate_z00pass
native / saved_design_belowpass
MeasurementExpectedMeasuredCheck
Body envelopes / count22pass
Body 1 / min [mm]-40 × -5 × -25-40 × -5 × -25—
Body 1 / max [mm]40 × 5 × 2540 × 5 × 25—
Body 2 / min [mm]-40 × -1 × -80-40 × -1 × -80—
Body 2 / max [mm]40 × 1 × -3040 × 1 × -30—
SolidCraft parameters / plate_y00pass
SolidCraft parameters / plate_z-55-55pass
native / saved_design_servicepass
MeasurementExpectedMeasuredCheck
Body envelopes / count22pass
Body 1 / min [mm]-40 × -5 × -25-40 × -5 × -25—
Body 1 / max [mm]40 × 5 × 2540 × 5 × 25—
Body 2 / min [mm]-40 × 24 × -25-40 × 24 × -25—
Body 2 / max [mm]40 × 26 × 2540 × 26 × 25—
SolidCraft parameters / plate_y2525pass
SolidCraft parameters / plate_z00pass
native / inspection_tablepass

Model stages

  1. Build screen and front-plate component occurrences
  2. Keep front-plate Y and Z placement associative to model parameters
  3. Author one native configuration table around the complete assembly
  4. Switch to Below and Service in the saved SolidCraft design

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": "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"
}

Published files