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

127 lines
1.3 KiB
JSON

[
{
"note": "Configurations: a parameter column (d1) in the configuration table switches the design (config.configure)."
},
{
"start": "sketch.create"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "sketch.rectangle.two_point"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
40,
20
]
}
},
{
"key": "Escape"
},
{
"start": "sketch.dimension"
},
{
"click": {
"sketch": [
20,
0
]
}
},
{"click": {"sketch": [20, -8]}},
{
"text": "40"
},
{
"key": "Enter"
},
{
"key": "Escape"
},
{
"start": "sketch.finish"
},
{
"start": "solid.extrude"
},
{
"text": "10"
},
{
"key": "Enter"
},
{
"expect": {
"volume": 8000
}
},
{
"start": "config.configure"
},
{
"widget": "Add Column"
},
{
"widget": "d1"
},
{
"widget": "Add Row"
},
{
"widget": "40 mm",
"near": "Configuration2"
},
{
"key": "A",
"cmd": true
},
{
"text": "60 mm"
},
{
"key": "Enter"
},
{
"widget": "Activate",
"near": "Configuration2"
},
{
"expect": {
"param": {
"d1": 60
},
"volume": 12000,
"errors": 0
}
},
{
"widget": "Activate",
"near": "Default"
},
{
"expect": {
"param": {
"d1": 40
},
"volume": 8000
}
},
{
"shot": "s23_configs"
}
]