Skip to content

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

2.4 KB
Raw Blame
[
  {"note": "Intersection Curve takes curves of other sketches (#11048). A line on XY stands in for the plane y = 0 and a line on YZ at z = 5 for the plane z = 5, so the result is one linked 3D wire along X at y = 0, z = 5. After the first pick the status bar asks for the second; a right-click starts the picks over; after the curve is made the hint asks for the next pair."},
  {"start": "sketch.create"},
  {"click": {"plane": "XY"}},
  {"start": "sketch.line"},
  {"click": {"world": [-20, 0, 0]}},
  {"click": {"world": [20, 0, 0]}},
  {"expect": {"sketch_curves": {"own": 1}}},
  {"key": "Escape"},
  {"start": "sketch.finish"},
  {"call": "ui.view", "params": {"view": "iso"}},
  {"start": "sketch.create"},
  {"click": {"plane": "YZ"}},
  {"start": "sketch.line"},
  {"click": {"world": [0, -10, 5]}},
  {"click": {"world": [0, 10, 5]}},
  {"expect": {"sketch_curves": {"own": 1}}},
  {"key": "Escape"},
  {"start": "sketch.finish"},
  {"expect": {"errors": 0}},
  {"start": "sketch.create"},
  {"click": {"plane": "XY"}},
  {"call": "ui.view", "params": {"view": "iso"}},
  {"start": "sketch.intersection_curve"},
  {"click": {"world": [15, 0, 0]}},
  {"expect": {"status": "click the second face or curve"}},
  {"note": "A right-click forgets the first pick and asks for two again."},
  {"click": {"world": [15, 0, 0]}, "button": "right"},
  {"expect": {"status": "click two faces or curves of other sketches"}},
  {"expect": {"query": {"command": "sketch.inspect", "path": ["wires", 0], "value": null}}},
  {"click": {"world": [15, 0, 0]}},
  {"click": {"world": [0, 8, 5]}},
  {"expect": {"errors": 0, "status": "click two faces or curves of other sketches"}},
  {"note": "One linked 3D wire along X at y = 0, z = 5, from x = -20 to 20 in either direction."},
  {"expect": {"query": {"command": "sketch.inspect", "path": ["wires", 1], "value": null}}},
  {"expect": {"query": {"command": "sketch.inspect", "path": ["wires", 0, "start", 1], "value": 0}}},
  {"expect": {"query": {"command": "sketch.inspect", "path": ["wires", 0, "start", 2], "value": 5}}},
  {"expect": {"query": {"command": "sketch.inspect", "path": ["wires", 0, "end", 1], "value": 0}}},
  {"expect": {"query": {"command": "sketch.inspect", "path": ["wires", 0, "end", 2], "value": 5}}},
  {"shot": "intersection_curve_from_two_sketch_curves"},
  {"key": "Escape"},
  {"start": "sketch.finish"},
  {"expect": {"errors": 0, "sketching": false}}
]