Skip to content

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

1.7 KB
Raw Blame
[
 {"note":"#191: Point is in the Sketch CREATE list; a saved pin can promote it alongside the four drawing families."},
 {"call":"engine.execute","params":{"command":"sketch.create","params":{"plane":"XY"}}},
 {"expect":{"shown_handles":["button:sketch.line","family:Rectangle","family:Circle","family:Arc"],"hidden_handles":["button:sketch.point"]}},
 {"call":"ui.menu","params":{"x":400,"y":80,"target":{"type":"toolbar_command","id":"sketch.point"}}},
 {"call":"ui.menuPick","params":{"item":"Pin to Toolbar"}},
 {"expect":{"shown_handles":["button:sketch.point"]}},
 {"click":{"handle":"button:sketch.point"}},
 {"expect":{"tool":"sketch.point","dialog":null}},
 {"click":{"sketch":[20,15]}},
 {"key":"Escape"},
 {"expect":{"errors":0,"sketch_world":{"point":"p1","at":[20,15,0]}}},
 {"call":"ui.menu","params":{"x":400,"y":80,"target":{"type":"toolbar_command","id":"sketch.point"}}},
 {"call":"ui.menuPick","params":{"item":"Remove from Toolbar"}},
 {"expect":{"hidden_handles":["button:sketch.point"]}},
 {"restart":"close"},
 {"call":"engine.execute","params":{"command":"sketch.create","params":{"plane":"XY"}}},
 {"expect":{"hidden_handles":["button:sketch.point"]}},
 {"click":{"handle":"panel:SKETCH:CREATE"}},
 {"expect":{"shown_handles":["dropdown:sketch.point"]}},
 {"click":{"handle":"dropdown:sketch.point"}},
 {"key":"Escape"},
 {"call":"ui.menu","params":{"x":400,"y":80,"target":{"type":"toolbar"}}},
 {"call":"ui.menuPick","params":{"item":"Reset Toolbar"}},
 {"expect":{"shown_handles":["button:sketch.line"],"hidden_handles":["button:sketch.point"],"errors":0}},
 {"call":"ui.resize","params":{"width":640,"height":720}},
 {"click":{"handle":"panel:SKETCH:CREATE"}},
 {"click":{"handle":"dropdown:sketch.point"}},
 {"expect":{"tool":"sketch.point","errors":0}}
]