[ { "note": "Acceptance (#27): the sensor enclosure built from examples/acceptance/sensor_enclosure.json, then edited: the USB cut-out moved, the height changed, features suppressed and back, saved and reopened, exported to STEP and read back." }, { "script": "examples/acceptance/sensor_enclosure.json" }, { "call": "ui.view", "params": { "view": "home" } }, { "expect": { "bodies": 2, "errors": 0, "body_volume": { "body": "Case", "volume": 25401.7 } } }, { "expect": { "body_volume": { "body": "Lid", "volume": 19629.7 } } }, { "call": "engine.execute", "params": { "command": "parameters.change", "params": { "name": "usb_offset", "expression": "15 mm" } } }, { "expect": { "errors": 0, "bodies": 2, "body_volume": { "body": "Case", "volume": 25401.7 } } }, { "call": "engine.execute", "params": { "command": "timeline.suppress", "params": { "feature": "SnapFit1", "suppressed": true } } }, { "expect": { "errors": 0, "body_volume": { "body": "Case", "volume": 25340.5 } } }, { "call": "engine.execute", "params": { "command": "timeline.suppress", "params": { "feature": "SnapFit1", "suppressed": false } } }, { "expect": { "errors": 0, "body_volume": { "body": "Case", "volume": 25401.7 } } }, { "call": "engine.execute", "params": { "command": "parameters.change", "params": { "name": "wall", "expression": "2.4 mm" } } }, { "expect": { "errors": 0, "bodies": 2 } }, { "call": "engine.execute", "params": { "command": "parameters.change", "params": { "name": "height", "expression": "30 mm" } } }, { "expect": { "errors": 0, "bodies": 2 } }, { "call": "engine.execute", "params": { "command": "parameters.change", "params": { "name": "height", "expression": "25 mm" } } }, { "expect": { "errors": 0, "bodies": 2 } }, { "call": "engine.execute", "params": { "command": "parameters.change", "params": { "name": "wall", "expression": "2 mm" } } }, { "expect": { "errors": 0, "bodies": 2 } }, { "call": "engine.execute", "params": { "command": "file.save_as", "params": { "path": "$DIR/enclosure.solvecraft" } } }, { "call": "engine.execute", "params": { "command": "doc.open", "params": { "path": "$DIR/enclosure.solvecraft" } } }, { "expect": { "errors": 0, "bodies": 2, "body_volume": { "body": "Case", "volume": 25401.7 } } }, { "call": "engine.execute", "params": { "command": "file.export", "params": { "path": "$DIR/enclosure.step" } } }, { "call": "engine.execute", "params": { "command": "doc.open", "params": { "path": "$DIR/enclosure.step" } } }, { "expect": { "bodies": 2, "body_volume": { "body": "Case", "volume": 25401.7 } } } ]