Skip to content

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

1.6 KB
Raw Blame
[
  {"note": "Interface › OK and Cancel in the view's corner (#6709): a check and a cross at the view's top right. In a sketch they are Finish Sketch and Cancel Sketch; with a dialog open they are its OK and Cancel."},
  {"call": "ui.prefs", "params": {"view_confirm_corner": true}},
  {"start": "sketch.create"},
  {"click": {"plane": "XY"}},
  {"expect": {"sketching": true}},
  {"start": "sketch.rectangle.two_point"},
  {"click": {"sketch": [0, 0]}},
  {"click": {"sketch": [40, 30]}},
  {"key": "Escape"},
  {"expect": {"sketch_curves": {"own": 4}, "handle_order": ["view:confirm:ok", "view:confirm:cancel"]}},
  {"note": "The check finishes the sketch."},
  {"click": {"handle": "view:confirm:ok"}},
  {"expect": {"sketching": false, "features": 1, "errors": 0}},
  {"note": "Extrude picks the sketch's one profile; the check is its OK."},
  {"start": "solid.extrude"},
  {"frames": 4},
  {"expect": {"dialog": "Extrude", "bodies": 0}},
  {"click": {"handle": "view:confirm:ok"}},
  {"until": {"dialog": null}},
  {"expect": {"bodies": 1, "features": 2, "errors": 0}},
  {"note": "A new sketch, left with the cross: like Esc, it first ends the line's chain, then puts the tool down, and only then the sketch goes, with what was drawn in it."},
  {"start": "sketch.create"},
  {"click": {"plane": "XY"}},
  {"start": "sketch.line"},
  {"click": {"sketch": [10, 10]}},
  {"click": {"sketch": [30, 20]}},
  {"click": {"handle": "view:confirm:cancel"}},
  {"click": {"handle": "view:confirm:cancel"}},
  {"expect": {"sketching": true, "sketch_curves": {"own": 1}}},
  {"click": {"handle": "view:confirm:cancel"}},
  {"expect": {"sketching": false, "features": 2, "errors": 0}}
]