15 lines
983 B
JSON
15 lines
983 B
JSON
[
|
|
{"note": "#167: Offset Plane takes a planar face of a body, not only the origin and construction planes."},
|
|
{"call": "engine.execute", "params": {"command": "solid.box", "params": {"length": 40, "width": 30, "height": 20, "name": "Base"}}},
|
|
{"start": "construct.plane.offset"},
|
|
{"expect": {"dialog": "OffsetPlane"}},
|
|
{"click": {"world": [20, 15, 20]}},
|
|
{"widget": "OK"},
|
|
{"expect": {"errors": 0, "features": 2}},
|
|
{"call": "engine.execute", "params": {"command": "sketch.create", "params": {"plane": "Plane1"}}},
|
|
{"call": "engine.execute", "params": {"command": "sketch.rectangle.two_point", "params": {"p0": [0, 0], "p1": [10, 10]}}},
|
|
{"call": "engine.execute", "params": {"command": "sketch.finish", "params": {}}},
|
|
{"call": "engine.execute", "params": {"command": "solid.extrude", "params": {"distance": 10, "operation": "new", "body_name": "Pad"}}},
|
|
{"expect": {"errors": 0, "bodies": 2, "bbox": {"body": "Pad", "min": [null, null, 20], "max": [null, null, 30]}}}
|
|
]
|