Construction mode like Fusion: with nothing selected, X (or the toolbar's Construction, or the Sketch Palette's Linetype) switches the drawing line type, so new curves are construction (or centerline) until switched back, the active mode highlighted in the palette and named in the status bar; with a selection they convert it as before; the line type is part of the drawing's undo step. Scenarios: s35 construction mode, s36 the Sketch Palette shows while sketching (also over the tools, back after a window closes, both themes) and goes with the sketch; harness shown/not_shown checks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
bherbruckandClaude Opus 5.5 committed 2026-10-08 16:07:33 +00:00
1 parent 35ac9569dc
commit 90873e51bb
6 files changed
+246 -13

No files matched your search

+2
View File
@@ -52,6 +52,8 @@ scenarios!(
s27_move_triad,
s33_move_x_arrow,
s34_component_move_carries_sketches,
s35_construction_mode,
s36_sketch_palette_visible
);
/// Scenarios written ahead of their fixes or features (the user's open bugs): run with
@@ -0,0 +1,47 @@
[
{"note": "Construction mode like Fusion: with nothing selected, X (or the palette's Construction linetype) makes new curves construction until switched back; with a selection X converts it."},
{"start": "SketchCreate"},
{"click": {"plane": "XY"}},
{"expect": {"dialog": null}},
{"key": "X"},
{"expect": {"tool": null}},
{"start": "ShapeRectangleTwoPoint"},
{"click": {"sketch": [0, 0]}},
{"click": {"sketch": [30, 20]}},
{"key": "Escape"},
{"start": "CircleCenterRadius"},
{"click": {"sketch": [15, 10]}},
{"click": {"sketch": [20, 10]}},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4, "construction"], "value": true}}},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 0, "construction"], "value": true}}},
{"expect": {"query": {"command": "sketch.inspect", "path": ["profiles"], "value": []}}},
{"key": "Z", "cmd": true},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 4], "value": null}}},
{"key": "Y", "cmd": true},
{"shot": "s35_construction_mode"},
{"widget": "—"},
{"start": "CircleCenterRadius"},
{"click": {"sketch": [40, 10]}},
{"click": {"sketch": [45, 10]}},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 5, "construction"], "value": false}}},
{"widget": "- -"},
{"start": "DrawPolyline"},
{"click": {"sketch": [0, 30]}},
{"click": {"sketch": [30, 30]}},
{"key": "Escape"},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 6, "construction"], "value": true}}},
{"key": "X"},
{"click": {"sketch": [40, 15]}},
{"key": "X"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 5, "construction"], "value": true}}},
{"key": "Escape"},
{"start": "DrawPolyline"},
{"click": {"sketch": [0, 40]}},
{"click": {"sketch": [30, 40]}},
{"key": "Escape"},
{"key": "Escape"},
{"expect": {"query": {"command": "sketch.inspect", "path": ["curves", 7, "construction"], "value": false}}}
]
@@ -0,0 +1,99 @@
[
{
"note": "The Sketch Palette shows docked at the right whenever a sketch is active and no command dialog is open, comes back when the dialog closes, and goes with the sketch."
},
{
"expect": {
"not_shown": "SKETCH PALETTE"
}
},
{
"start": "SketchCreate"
},
{
"expect": {
"dialog": "Sketch",
"not_shown": "SKETCH PALETTE"
}
},
{
"click": {
"plane": "XY"
}
},
{
"expect": {
"sketching": true,
"dialog": null,
"shown": "SKETCH PALETTE"
}
},
{
"expect": {
"shown": "Finish Sketch"
}
},
{
"start": "ShapeRectangleTwoPoint"
},
{
"expect": {
"shown": "SKETCH PALETTE"
}
},
{
"click": {
"sketch": [
0,
0
]
}
},
{
"click": {
"sketch": [
20,
10
]
}
},
{
"key": "Escape"
},
{
"start": "ChangeParameterCommand"
},
{
"widget": "Close window"
},
{
"expect": {
"shown": "SKETCH PALETTE"
}
},
{
"call": "ui.set",
"params": {
"dark": false
}
},
{
"expect": {
"shown": "SKETCH PALETTE"
}
},
{
"expect": {
"shown": "Finish Sketch"
}
},
{
"widget": "Finish Sketch"
},
{
"expect": {
"sketching": false,
"not_shown": "SKETCH PALETTE"
}
}
]