Files
OneCAD/crates/ui-egui/tests/scenarios/s34_component_move_carries_sketches.json
T
62847173f4 Honor design units in sketch dimensions and measurements (#241)
* Honor design units in sketch dimensions and measurements

* fix: apply document units to specialized length controls

* Accept explicit units in length fields; document design-unit dimension values

Length fields in a design-unit control now evaluate what is typed as a
length expression: a bare number stays in the design's units, while an
explicit unit ("10 mm", "0.5 in", "1 in + 5 mm") is converted.
Document that a bare numeric sketch.dimension value from scripts, the
control channel or MCP is read in the design's units.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGw4gA5ZvKrU8MQP6sBgT

---------

Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:08:11 -04:00

203 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": "component.create"
},
{
"key": "Enter"
},
{
"start": "sketch.create"
},
{
"click": {
"plane": "XY"
}
},
{
"start": "sketch.rectangle.two_point"
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
30,
20
]
}
},
{
"key": "Escape"
},
{
"start": "sketch.finish"
},
{
"call": "ui.view",
"params": {
"view": "iso"
}
},
{
"start": "solid.extrude"
},
{
"text": "10"
},
{
"key": "Enter"
},
{
"start": "sketch.create"
},
{
"click": {
"world": [
15,
10,
10
]
}
},
{
"start": "sketch.circle.center"
},
{
"click": {
"sketch": [
15,
10
]
}
},
{
"click": {
"sketch": [
18,
10
]
}
},
{
"key": "Escape"
},
{
"start": "sketch.finish"
},
{
"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.00 mm",
"near": "X distance"
},
{
"key": "A",
"cmd": true
},
{
"text": "50"
},
{
"key": "Enter"
},
{
"widget": "Capture All Positions"
},
{
"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"
}
]