Files
OneCAD/crates/ui-egui/tests/scenarios/s34_component_move_carries_sketches.json
T

202 lines
2.0 KiB
JSON

[
{
"note": "User bug 4 (owner solvecraft-repo): moving a component carries its sketches, and a sketch on a body face follows the body."
},
{
"start": "FusionCreateNewComponentCommand"
},
{
"key": "Enter"
},
{
"start": "SketchCreate"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
30,
20
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "Extrude"
},
{
"text": "10"
},
{
"key": "Enter"
},
{
"start": "SketchCreate"
},
{
"click": {
"world": [
15,
10,
10
]
}
},
{
"start": "CircleCenterRadius"
},
{
"click": {
"sketch": [
15,
10
]
}
},
{
"click": {
"sketch": [
18,
10
]
}
},
{
"key": "Escape"
},
{
"start": "SketchStop"
},
{
"expect": {
"sketch_world": {
"sketch": "Sketch2",
"point": "c1.center",
"at": [
15,
10,
10
]
}
}
},
{
"expect": {
"sketch_world": {
"sketch": "Sketch1",
"point": "p1",
"at": [
0,
0,
0
]
}
}
},
{
"call": "ui.menu",
"params": {
"x": 100,
"y": 170,
"target": {
"type": "component",
"id": 1
}
}
},
{
"call": "ui.menuPick",
"params": {
"item": "Move/Copy"
}
},
{
"widget": "0.0 mm",
"near": "X distance"
},
{
"key": "A",
"cmd": true
},
{
"text": "50"
},
{
"key": "Enter"
},
{
"widget": "Capture Position"
},
{
"expect": {
"bbox": {
"body": "Body1",
"min": [
50,
0,
0
],
"max": [
80,
20,
10
]
}
}
},
{
"expect": {
"sketch_world": {
"sketch": "Sketch1",
"point": "p1",
"at": [
50,
0,
0
]
}
}
},
{
"expect": {
"sketch_world": {
"sketch": "Sketch2",
"point": "c1.center",
"at": [
65,
10,
10
]
}
}
},
{
"shot": "s29_moved"
}
]