Skip to content

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

1.9 KB
Raw Blame
[
 {"note": "#1796: on a sketch on a face, Symmetry centres a construction line between two of the face's edges (its projected outline, whose sides run in opposite directions). Before, that was refused: 'neither entity can move'. The picks may come in any order: the construction line is the symmetry line."},
 {"call": "engine.execute", "params": {"command": "sketch.create", "params": {"plane": "XY"}}},
 {"call": "engine.execute", "params": {"command": "sketch.rectangle.two_point", "params": {"p0": [0, 0], "p1": [20, 30]}}},
 {"call": "engine.execute", "params": {"command": "sketch.finish", "params": {}}},
 {"call": "engine.execute", "params": {"command": "solid.extrude", "params": {"distance": 5}}},
 {"call": "engine.execute", "params": {"command": "sketch.create", "params": {"plane": {"face": [10, 15, 5]}}}},
 {"call": "engine.execute", "params": {"command": "sketch.line", "params": {"points": [[7, 4], [7, 26]], "ids": ["lc"], "construction": true}}},
 {"call": "ui.view", "params": {"view": "top"}},
 {"call": "ui.view", "params": {"view": "fit"}},
 {"start": "sketch.constraint.symmetry"},
 {"click": {"world": [0, 15, 5]}},
 {"click": {"world": [20, 15, 5]}},
 {"click": {"sketch": [7, 15]}},
 {"key": "Escape"},
 {"shot": "centred"},
 {"expect": {"errors": 0}},
 {"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4, "start_at", 0], "value": 10}}},
 {"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4, "end_at", 0], "value": 10}}},
 {"call": "engine.execute", "params": {"command": "edit.undo", "params": {}}},
 {"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4, "start_at", 0], "value": 7}}},
 {"start": "sketch.constraint.symmetry"},
 {"click": {"sketch": [7, 15]}},
 {"click": {"world": [0, 15, 5]}},
 {"click": {"world": [20, 15, 5]}},
 {"key": "Escape"},
 {"expect": {"errors": 0}},
 {"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4, "start_at", 0], "value": 10}}}
]