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 exploded assembly views

Persistent exploded presentations leave normal occurrence placements unchanged

Verified scpf Three 30 × 20 × 10 mm blocks at X=0, 40 and 80 mm

What this verifies

Three reusable Block occurrences keep their assembled placements while SolidCraft stores one automatic and one explicit exploded presentation.

Expected setup

No declared setup diagram is available.

scpf source

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

scpf/model.py
"""Native SolidCraft exploded-view qualification."""


class ExplodeBlock:
    length = 30.0
    width = 20.0
    height = 10.0

    def build(self):
        return Box(
            self.length,
            self.width,
            self.height,
            anchor=Anchor.BOTTOM,
        )


class ExplodedViews:
    def build(self):
        first = ExplodeBlock()
        second = first.copy(placement=Placement(x=40))
        third = first.copy(placement=Placement(x=80))

        assembly = first + second + third
        assembly = assembly.with_exploded_view(
            "Automatic",
            scale=1.25,
        )
        assembly = assembly.with_exploded_view(
            "Instructions",
            moves=[
                (second, (0, 25, 0)),
                (third, (0, 50, 10)),
            ],
        )
        return assembly.show_assembled()


ExplodedViews()

Engineering explanation

Native exploded assembly views

Group: components Saved-design required: true

Documentation provenance: Forge #751 publishes native SolidCraft exploded assembly presentation as public Verification.

Goal

Verify that Forge can store persistent native exploded presentations for a reusable component assembly without changing the occurrences’ normal design placements.

Forge API

assembly = first + second + third
assembly = assembly.with_exploded_view("Automatic", scale=1.25)
assembly = assembly.with_exploded_view(
    "Instructions",
    moves=[
        (second, (0, 25, 0)),
        (third, (0, 50, 10)),
    ],
)
assembly = assembly.show_assembled()

Forge model

Three occurrences of one reusable ExplodeBlock component are placed at X=0, 40 and 80 mm. The completed Assembly owns two presentation views: one automatic scale-based view and one explicit instruction view.

How Forge builds it in SolidCraft

Forge creates the reusable component and all three normal occurrence placements first. It then emits two native explode.create commands. Explicit moves reference the actual replay-bound occurrence ids derived from the Forge occurrence objects. Finally explode.show(view=None) selects assembled presentation. No exploded translation is lowered as occurrence.move.

SolidCraft result

The saved SolidCraft design retains three normally placed component occurrences plus two persistent exploded views. Showing either view changes presentation only; the authored occurrence placements remain unchanged.

Saved-design test

Without rerunning Forge Python, reopen the saved design and show the stored Automatic view. Separately show the Instructions view and then return to assembled presentation with explode.show(view=None). Both operations must succeed while model verification continues to see the original occurrence envelopes.

Geometry evidence

Geometry-rationale provenance: Forge #751 native exploded-view qualification.

Bounds sufficient: false

The three assembled body envelopes prove that normal occurrence placement is retained, but bounds alone cannot prove persistence of named presentation views. Saved-design replay of explode.show is therefore required evidence.

Reference notes

  • Native SolidCraft presentation — explode.create and explode.show own persistent exploded-view state independently of occurrence placement.
  • Forge occurrence identity — Explicit exploded moves use Forge occurrence objects and are resolved to replay-bound native occurrence ids during assembly lowering.
Generated command sequence — scpf (8)

Open published command JSON

  1. component.create

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

    {
      "command": "solid.box",
      "params": {
        "body_name": "ExplodeBlock",
        "corner": [
          -15.0,
          -10.0,
          0
        ],
        "height": 10.0,
        "length": 30.0,
        "width": 20.0
      }
    }
  3. component.activate

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

    {
      "bind": {
        "$explodeblock_occurrence_2": "occurrence"
      },
      "command": "occurrence.copy",
      "params": {
        "component": "ExplodeBlock",
        "translate": [
          40.0,
          0.0,
          0.0
        ]
      }
    }
  5. occurrence.copy

    {
      "bind": {
        "$explodeblock_occurrence_3": "occurrence"
      },
      "command": "occurrence.copy",
      "params": {
        "component": "ExplodeBlock",
        "translate": [
          80.0,
          0.0,
          0.0
        ]
      }
    }
  6. explode.create

    {
      "command": "explode.create",
      "params": {
        "name": "Automatic",
        "scale": 1.25
      }
    }
  7. explode.create

    {
      "command": "explode.create",
      "params": {
        "moves": [
          {
            "occurrence": "$explodeblock_occurrence_2",
            "translate": [
              0.0,
              25.0,
              0.0
            ]
          },
          {
            "occurrence": "$explodeblock_occurrence_3",
            "translate": [
              0.0,
              50.0,
              10.0
            ]
          }
        ],
        "name": "Instructions"
      }
    }
  8. explode.show

    {
      "command": "explode.show",
      "params": {
        "view": null
      }
    }

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
native / saved_design_show_automaticpass
native / saved_design_show_instructions_then_assembledpass

Model stages

  1. Create and place three occurrences of one reusable Block definition
  2. Store an automatic exploded view using native scale mode
  3. Store an explicit instruction view using occurrence translations
  4. Return presentation to the normal assembled state

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": "8dfbd431db63ee0b916b29160b391ee5cc2f272b966026e5f160d5659d6a1024",
          "size": 2727
        }
      ],
      "error": null,
      "evidence": {
        "body_groups": [
          {
            "body_envelopes": {
              "actual_count": 3,
              "expected_count": 3,
              "kind": "body_envelopes",
              "matched_pairs": [
                {
                  "actual": {
                    "label": "ExplodeBlock",
                    "max": [
                      15.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      -15.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      15.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      -15.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                },
                {
                  "actual": {
                    "label": "ExplodeBlock (ExplodeBlock:2)",
                    "max": [
                      55.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      25.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      55.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      25.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                },
                {
                  "actual": {
                    "label": "ExplodeBlock (ExplodeBlock:3)",
                    "max": [
                      95.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      65.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      95.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      65.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                }
              ],
              "pass": true,
              "tolerance": 0.001,
              "unmatched_actual": [],
              "unmatched_expected": []
            },
            "count": {
              "actual": 3,
              "expected": 3,
              "label": "ExplodeBlock body group count",
              "pass": true
            },
            "matched_names": [
              "ExplodeBlock",
              "ExplodeBlock (ExplodeBlock:2)",
              "ExplodeBlock (ExplodeBlock:3)"
            ],
            "name_prefix": "ExplodeBlock"
          }
        ]
      },
      "id": "baseline",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "saved_designs/show_automatic/model.sc",
          "sha256": "f778d1e962d753f34c656dda5a4f6cdc916bb0ae59f77ad41453d5f4ef37da80",
          "size": 840
        },
        {
          "kind": "file",
          "path": "saved_designs/show_automatic/measurements.json",
          "sha256": "29d064b4bed2b0d529759ce500b77e173de0c480598a29e216a2f5a8fb1f016f",
          "size": 2727
        }
      ],
      "error": null,
      "evidence": {
        "body_groups": [
          {
            "body_envelopes": {
              "actual_count": 3,
              "expected_count": 3,
              "kind": "body_envelopes",
              "matched_pairs": [
                {
                  "actual": {
                    "label": "ExplodeBlock",
                    "max": [
                      15.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      -15.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      15.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      -15.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                },
                {
                  "actual": {
                    "label": "ExplodeBlock (ExplodeBlock:2)",
                    "max": [
                      55.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      25.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      55.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      25.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                },
                {
                  "actual": {
                    "label": "ExplodeBlock (ExplodeBlock:3)",
                    "max": [
                      95.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      65.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      95.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      65.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                }
              ],
              "pass": true,
              "tolerance": 0.001,
              "unmatched_actual": [],
              "unmatched_expected": []
            },
            "count": {
              "actual": 3,
              "expected": 3,
              "label": "ExplodeBlock body group count",
              "pass": true
            },
            "matched_names": [
              "ExplodeBlock",
              "ExplodeBlock (ExplodeBlock:2)",
              "ExplodeBlock (ExplodeBlock:3)"
            ],
            "name_prefix": "ExplodeBlock"
          }
        ]
      },
      "id": "saved_design_show_automatic",
      "reason": null,
      "status": "pass"
    },
    {
      "artifacts": [
        {
          "kind": "file",
          "path": "saved_designs/show_instructions_then_assembled/model.sc",
          "sha256": "1af375d195cc93f325f36aa5790184f3e8fb156c19177f436290df4c0d112797",
          "size": 4338
        },
        {
          "kind": "file",
          "path": "saved_designs/show_instructions_then_assembled/measurements.json",
          "sha256": "8dfbd431db63ee0b916b29160b391ee5cc2f272b966026e5f160d5659d6a1024",
          "size": 2727
        }
      ],
      "error": null,
      "evidence": {
        "body_groups": [
          {
            "body_envelopes": {
              "actual_count": 3,
              "expected_count": 3,
              "kind": "body_envelopes",
              "matched_pairs": [
                {
                  "actual": {
                    "label": "ExplodeBlock",
                    "max": [
                      15.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      -15.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      15.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      -15.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                },
                {
                  "actual": {
                    "label": "ExplodeBlock (ExplodeBlock:2)",
                    "max": [
                      55.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      25.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      55.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      25.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                },
                {
                  "actual": {
                    "label": "ExplodeBlock (ExplodeBlock:3)",
                    "max": [
                      95.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      65.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "expected": {
                    "label": null,
                    "max": [
                      95.0,
                      10.0,
                      10.0
                    ],
                    "min": [
                      65.0,
                      -10.0,
                      0.0
                    ]
                  },
                  "max_delta": 0.0
                }
              ],
              "pass": true,
              "tolerance": 0.001,
              "unmatched_actual": [],
              "unmatched_expected": []
            },
            "count": {
              "actual": 3,
              "expected": 3,
              "label": "ExplodeBlock body group count",
              "pass": true
            },
            "matched_names": [
              "ExplodeBlock",
              "ExplodeBlock (ExplodeBlock:2)",
              "ExplodeBlock (ExplodeBlock:3)"
            ],
            "name_prefix": "ExplodeBlock"
          }
        ]
      },
      "id": "saved_design_show_instructions_then_assembled",
      "reason": null,
      "status": "pass"
    }
  ],
  "input": "/output/models/exploded-views/scpf/model.sc",
  "metadata": {},
  "schema": "cad-verification",
  "schema_version": 1,
  "status": "pass",
  "verification_id": "exploded-views"
}

Published files