You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drawings: the Center Mark button places a centre mark on a picked circle or arc #25430
area:uidesktop/web front end, dialogs, viewportin progresssomeone is working on it (see comments)needs-triageno priority yet; a maintainer sorts it with /triage
The Center Mark button on the Drawing ribbon (DRAWING ANNOTATE > SYMBOLS) is still a planned entry, so there is no way to place a centre mark from the app.
The engine side is done: @armin0411's #16132 added drawing.center_mark.add / edit / inspect / remove (and the centre line commands), and #16144 added automatic marks. Only the button is missing.
Today: planned!("drawing.centre_mark", "Center Mark", "4896") at crates/engine/src/cmd/drawing_ui.rs:76.
What this adds
The Center Mark button becomes a real tool: pick a circle or arc in a drawing view and it places a centre mark with drawing.center_mark.add.
The tool stays active so you can pick more circles, like Inventor's Center Mark; Esc ends it.
A picked mark can be removed with Delete and undone with Ctrl+Z, through the existing commands.
Overshoot uses the command's default; editing it can follow in the mark's panel.
What it does. The button starts a tool on the sheet. Hovering a circle or arc in a view shades it. A click places a centre mark on it through drawing.center_mark.add, with the command's default overshoot. The tool stays in hand for more holes, and Esc puts it away. Any other line says "Pick a circle or arc" in the status bar. Each mark is one undo step, so Ctrl+Z takes it back. I'll check in the app that Delete on a selected mark removes it, and add that if it doesn't.
How. The Dimension tool already picks an edge in a view and names it the way drawing.center_mark.add takes it (drawing_workspace/dimension.rs: pick, shape_of, the hover cache, the shading). So the first commit moves that into one shared edge_pick module with no change in behaviour, and both tools use it. No second copy of the edge naming. The pick costs what the Dimension tool's does: one line_at per pointer rest.
Tests first. A harness test starts the tool. A click on a hole's edge adds one mark. A click on a straight edge adds none and says why. Esc ends the tool. The Dimension tool's tests stay as they are.
Design. It follows docs/design/drawing-ui/README.md (Annotate › Symbols › Centre Mark) and D21. The C shortcut from D30 is left out for now, since D30 asks for a check against the app's shortcuts first.
Out of scope. Centre lines (#19942), automatic marks (#16144), and editing the overshoot.
@Nathan-Dane, one question: do you want a small right panel for this tool, like Dimension's and Detail View's, or just the status line? I'll go with a one-line panel saying what a click does, unless you'd rather not.
Here's the plan for every button in #25431. Each button becomes a tool that runs a command the engine already has. Nothing changes in the engine or in crates/geom, apart from one paper form for Section View (below).
How all of them fit. Each button keeps its ribbon id. The Drawing workspace's start opens its tool or runs its command. can_open_options names the same ids through runs_for_the_sheet, as in #18986. So a button is enabled exactly when start handles it. Whichever of #18986 and #25431 lands second keeps both sets of arms. Scripts still call the real commands. Each change is one undo step, and errors go to the status line.
Order of commits, one per button:
Edge picking, shared. The Dimension tool's pick, hover cache and shading move into one edge_pick module, with no change in behaviour. Center Mark and Balloon both use it, so there is one way to name a picked edge.
Pictorial View, Flat Pattern View, Model Dimensions (Drawing ribbon: Pictorial View, Flat Pattern View and Model Dimensions are greyed out #18995). Pictorial View opens Base View's placement with the isometric orientation chosen. Flat Pattern View runs drawing.view.flat on the open sheet. Model Dimensions runs drawing.dimension.from_model on the selected view. With no view selected, the status line asks for one.
Insert Image and a title block logo (Drawings: an image or a title block logo can't be added from the app #19031). Insert Image asks for a PNG or JPEG with the app's file dialog. The image then follows the pointer at its own size: its pixels at the drawing's resolution, shrunk to fit the sheet if needed. A click places it with drawing.image.add. A right-click on a title block text cell offers Logo… and Remove Logo, which run drawing.title_block.logo.
Section View (Drawings: the Section View button can't be used, so a section view can't be made from the app #19019). Pick the parent view, or start from a selected view. Click the cutting line's two ends, snapping to model points with the same picking as Dimension. The section's box then follows the pointer on the projection side, and a click places it. The engine takes the line on the parent's plane in model millimetres. So drawing.view.section gains a paper form, line_mm, converted by the same rule the Detail command uses for boundary_mm. The preview is the view's box only, so no model is cut while the pointer moves.
Tests first, in each area's existing test file. Each button is enabled with a drawing open, and a click runs its command or opens its tool. Each command runs in one undo step, and Esc ends the tool. The tests that list these buttons as faded change as each one goes live. Every slice also gets 3 or 4 planted faults.
Pictures: each tool in the real app, with a plain test part, at 1280×720 and in a small window.
Left out, because someone else holds them: GD&T and Datum (#7362), Break View (#7578), Hole Callout (#22250), Auxiliary View (#25374). Update Drawing, Check Drawing and Revision Table stay in #18986.
@Nathan-Dane, the drawing ribbon and its tools are yours. This only wires buttons that already have a place in your design. The question in the Center Mark plan (a small right panel, or the status line only) goes for Insert Image and Section View too. Your thoughts on the look are very welcome.
area:uidesktop/web front end, dialogs, viewportin progresssomeone is working on it (see comments)needs-triageno priority yet; a maintainer sorts it with /triage
Activity
github-actions commentedon Dec 2, 2026
Claimed by @CamWight through #25431. The claim lapses after 14 days without pushes.
CamWight commentedon Dec 2, 2026
Plan for the Center Mark button, before any code:
What it does. The button starts a tool on the sheet. Hovering a circle or arc in a view shades it. A click places a centre mark on it through
drawing.center_mark.add, with the command's default overshoot. The tool stays in hand for more holes, and Esc puts it away. Any other line says "Pick a circle or arc" in the status bar. Each mark is one undo step, so Ctrl+Z takes it back. I'll check in the app that Delete on a selected mark removes it, and add that if it doesn't.How. The Dimension tool already picks an edge in a view and names it the way
drawing.center_mark.addtakes it (drawing_workspace/dimension.rs:pick,shape_of, the hover cache, the shading). So the first commit moves that into one sharededge_pickmodule with no change in behaviour, and both tools use it. No second copy of the edge naming. The pick costs what the Dimension tool's does: oneline_atper pointer rest.Tests first. A harness test starts the tool. A click on a hole's edge adds one mark. A click on a straight edge adds none and says why. Esc ends the tool. The Dimension tool's tests stay as they are.
Design. It follows
docs/design/drawing-ui/README.md(Annotate › Symbols › Centre Mark) and D21. The C shortcut from D30 is left out for now, since D30 asks for a check against the app's shortcuts first.Out of scope. Centre lines (#19942), automatic marks (#16144), and editing the overshoot.
@Nathan-Dane, one question: do you want a small right panel for this tool, like Dimension's and Detail View's, or just the status line? I'll go with a one-line panel saying what a click does, unless you'd rather not.
CamWight commentedon Dec 2, 2026
Here's the plan for every button in #25431. Each button becomes a tool that runs a command the engine already has. Nothing changes in the engine or in
crates/geom, apart from one paper form for Section View (below).How all of them fit. Each button keeps its ribbon id. The Drawing workspace's
startopens its tool or runs its command.can_open_optionsnames the same ids throughruns_for_the_sheet, as in #18986. So a button is enabled exactly whenstarthandles it. Whichever of #18986 and #25431 lands second keeps both sets of arms. Scripts still call the real commands. Each change is one undo step, and errors go to the status line.Order of commits, one per button:
edge_pickmodule, with no change in behaviour. Center Mark and Balloon both use it, so there is one way to name a picked edge.drawing.center_mark.addruns. The tool stays in hand, and Esc ends it.drawing.view.flaton the open sheet. Model Dimensions runsdrawing.dimension.from_modelon the selected view. With no view selected, the status line asks for one.drawing.balloon.addruns. A selected or double-clicked balloon opens its panel, which runsdrawing.balloon.edit.select.setand Delete take a tag like a note.drawing.view.move_to_sheetordrawing.view.copy_to_sheet. The status line says where the view went.drawing.image.add. A right-click on a title block text cell offers Logo… and Remove Logo, which rundrawing.title_block.logo.drawing.view.sectiongains a paper form,line_mm, converted by the same rule the Detail command uses forboundary_mm. The preview is the view's box only, so no model is cut while the pointer moves.Tests first, in each area's existing test file. Each button is enabled with a drawing open, and a click runs its command or opens its tool. Each command runs in one undo step, and Esc ends the tool. The tests that list these buttons as faded change as each one goes live. Every slice also gets 3 or 4 planted faults.
Pictures: each tool in the real app, with a plain test part, at 1280×720 and in a small window.
Left out, because someone else holds them: GD&T and Datum (#7362), Break View (#7578), Hole Callout (#22250), Auxiliary View (#25374). Update Drawing, Check Drawing and Revision Table stay in #18986.
@Nathan-Dane, the drawing ribbon and its tools are yours. This only wires buttons that already have a place in your design. The question in the Center Mark plan (a small right panel, or the status line only) goes for Insert Image and Section View too. Your thoughts on the look are very welcome.
Nathan-Dane commentedon Dec 3, 2026
Please use the small right panel with a one-line instruction. That keeps the guidance visible and consistent with Dimension and Detail View.
Drawing tools: one shared edge pick for the tools that pick a line in…
Drawings: tests for the Center Mark button (tangency-labs#25430)
Drawings: the Center Mark button marks the centre of a picked circle …
Drawings: the Center Mark panel ends with Cancel, as Dimension's and …