Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

1.4 KB
Raw Blame
[
  {"note": "Interface › Dialog buttons › Top (#6708): a dialog's OK and Cancel sit in its title row, right of the title. The buttons keep their handles, Cancel takes the close button's, and Enter and Esc work as before."},
  {"call": "engine.execute", "params": {"command": "sketch.create", "params": {"plane": "XY", "name": "Sketch1"}}},
  {"call": "engine.execute", "params": {"command": "sketch.rectangle.two_point", "params": {"p0": [0, 0], "p1": [40, 30]}}},
  {"call": "engine.execute", "params": {"command": "sketch.finish", "params": {}}},
  {"call": "ui.prefs", "params": {"open": "Layout"}},
  {"widget": "Top", "near": "OK and Cancel"},
  {"widget": "OK"},
  {"expect": {"prefs": {"dialog": null, "dialog_buttons": "top"}}},
  {"note": "Extrude picks the sketch's one profile; its buttons are in the title row."},
  {"start": "solid.extrude"},
  {"frames": 4},
  {"expect": {"dialog": "Extrude", "handle_order": ["dialog:title", "dialog:Cancel", "dialog:OK"], "bodies": 0}},
  {"note": "Esc cancels, and so does the close handle, now on Cancel."},
  {"key": "Escape"},
  {"expect": {"dialog": null, "bodies": 0}},
  {"start": "solid.extrude"},
  {"frames": 4},
  {"click": {"handle": "dialog:close"}},
  {"expect": {"dialog": null, "bodies": 0}},
  {"note": "OK in the title row makes the feature."},
  {"start": "solid.extrude"},
  {"frames": 4},
  {"click": {"handle": "dialog:OK"}},
  {"until": {"dialog": null}},
  {"expect": {"bodies": 1, "errors": 0}}
]