Repository navigation
Drawings: hole callouts on views (#7605) - #17009
tangency-repo-manager[bot] merged 33 commits into
Conversation
Walkthrough
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title "Drawings: hole callouts on views (#7605)" names the main change: read-only hole callouts for drawing views, as the linked issue and PR objectives describe. It is specific and concise. It is… |
|
| Linked Issues check | Directly linked issue #7605 asks for a read-only, model-derived hole-callout content slice below the UI. The reviewed head adds that slice: crates/doc/src/drawing/hole_callout.rs defines `HoleRef { … |
|
| Out of Scope Changes check | Changes outside the new callout files each support the callout or the command surface. (a) crates/engine/src/eval.rs: the move_motion helper is shared by the Move evaluator and the callout, so the… |
|
| Description check | The description follows the template's main sections: Change, Validation, Screenshots, and Integration status. It explains the callout command, its scope, and the three follow-up commits. It gives con… | |
| Existing Defaults Unchanged | The PR changes no existing UX default. The description's "Changes a default: no" matches the diff. Changes checked against base 235991e (git diff): - Additive: the drawing.hole_callout comm… |
Full details: Title check
-
Explanation
The title "Drawings: hole callouts on views (
#7605)" names the main change: read-only hole callouts for drawing views, as the linked issue and PR objectives describe. It is specific and concise. It is slightly broad because the PR does not place callouts on sheets, which the objectives state is deferred. That makes it partially aligned, but it still refers to the primary change.
Full details: Linked Issues check
-
Explanation
Directly linked issue
#7605asks for a read-only, model-derived hole-callout content slice below the UI. The reviewed head adds that slice:crates/doc/src/drawing/hole_callout.rsdefinesHoleRef { feature, point }with the outcomes resolved, suppressed, failed, and lost, and it reads the Hole feature's evaluated parameters.drawing.hole_callout(crates/engine/src/cmd/hole_callout.rs) is the read-only command, andcrates/engine/src/schema/hole_callout.rssupplies its schemas. Against the acceptance criteria: (1) through versus blind comes from the feature extent (Extent::ThroughandBlind), and the summary says the blind test covers a hole with a depth and no floor. (2) Depth from a pocket floor or target object is covered by tests. (3) Counterbore and countersink keep diameter and depth throughForm. (4) Count comes from the feature's points, and deleting a point yields lost, with the per-point fix in the follow-up commit. (5) Suppress, undo, and parameter-edit tests exist. (6) Thread is reported inthreadandthread_depth. (7) Hostile input is covered by validation (HoleRef::validate,TextStyle::validate,HoleFeatureParam,DecimalsParam, and the 10,000-point limit) and by tests. The summary reports 24 doc and 191 engine tests passing for the filtered set. Limit: this verdict relies on the summary and test names. I did not read the resolve code or the test bodies. Patterned or mirrored copies and sheet placement are deferred as the issue states.
Full details: Out of Scope Changes check
-
Explanation
Changes outside the new callout files each support the callout or the command surface. (a)
crates/engine/src/eval.rs: themove_motionhelper is shared by the Move evaluator and the callout, so the callout reads a Move the same way the model does. This is needed for the issue's requirement that the callout follow model edits. (b)crates/engine/src/cmd/drawing_ui.rsandcrates/ui-egui/src/workspace.rs: the placeholder ribbon ID changes todrawing.hole_callout.planned, which removes the duplicate registry ID with the real command. The ribbon label mapping is updated to match. (c)crates/doc/src/drawing.rs: unit validation now uses the sharedis_length_unithelper, which the callout'sTextStyle::validatedepends on. (d)crates/doc/src/drawing/dimension.rsandcrates/engine/src/cmd/drawing_dimension.rs:DEFAULT_DECIMALSmoves to a shared constant, and the callout uses it as its default. Locale andmod.rsedits register the pending label and the new modules. No change was found that is unrelated to hole callouts. The PR description states that the placeholder stays planned and that sheet placement is a follow-up, so the change does not add placement behavior. Thebridgeandtip_angleexclusion is documented in the PR description and matches the callout schema.
Full details: Description check
-
Explanation
The description follows the template's main sections: Change, Validation, Screenshots, and Integration status. It explains the callout command, its scope, and the three follow-up commits. It gives concrete validation (test counts, planted faults, named checks) and includes three screenshots with steps. Two template items are weak. The 'Changes a default' line is present and set to 'no' with a reason. The title line is absent from the body, so the first template comment (title) is not addressed in the text itself. The screenshots are linked from an external user-attachments URL, which is acceptable, but they show a non-UI flow, which the template allows. Known gaps and follow-ups are documented. Overall the description is mostly complete and specific.
Full details: Existing Defaults Unchanged
-
Explanation
The PR changes no existing UX default. The description's "Changes a default: no" matches the diff. Changes checked against base 235991e (
git diff): - Additive: thedrawing.hole_calloutcommand and its schemas, thehole_calloutdoc module, the pending locale file, and atests/kernel-cases/EXEMPTline. None of these alters an existing command. - Constant moved, same value:DEFAULT_DECIMALSmoved from a private const indrawing_dimension.rstopub constindimension.rs. The value stays2, so dimension behaviour is unchanged. - Validation refactor, same logic: the drawing-unit check now callsis_length_unit. The new helper,unit.trim() == unit && expr::unit_info(unit)is a length kind, is the same expression as the old inline check, so accepted units do not change. - Move evaluation refactor:move_motiontakes over the same computations that the Move arm ran inline. The turn-line fallback and the copy-placement check are kept. Any change in Move geometry would be kernel behaviour, which the check excludes. - Ribbon placeholder id:drawing.hole_calloutis renamed todrawing.hole_callout.plannedindrawing_ui.rsandworkspace.rs. The button was already a planned placeholder with no action. Its section, position and label ("Hole Callout") are unchanged. A search found no keybinding or shortcut that references the old id. No default setting, preference, shortcut, default layout or usual-use behaviour of an existing command changes. The check passes.
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
Drawings landed on main (#18615), so I've retargeted this PR to |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2803826 to
a4982af
Compare
|
Holding this one for now. I'm resetting the direction for drawings before more lands on top:
I'll lift the hold once that base is on main. Then please rebase onto it, and rework anything here that carries its own version of views, projection, references, dimensions, selection or controls. Drawing-only pieces (title blocks, parts lists, tables, balloons, revision tags, templates, PDF/DXF export) are very welcome on top of the shared pieces. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WIP: HoleRef resolves to resolved, suppressed, failed or lost; the callout's count, diameter or thread, through or blind depth from the start face, counterbore and countersink come from the feature record and the hole's own named faces. drawing.hole_callout returns it and its text. Acceptance tests in progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lled hole is blind (tangency-labs#7605) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…abs#7605) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One pass over a body's triangles for all its faces (face_spots), and only for bodies that have a face of the hole, not one pass per bore face. - A bore face is told wall or floor by its surface (a cylinder on the axis is the wall, a plane across it or a cone on it a floor); where a face has no known surface, by where its spot is, as before. - An id of a component, folder, canvas, joint, contact set, study or exploded view is an error, not lost. - A Single hole drills only at its first point; another point's callout is lost, never moved to that hole. - A hole a later feature cut away reads failed with that reason, not "cuts no material". - Messages: "hole callouts of X features", an unknown unit echoes at most 32 characters; the params doc says inches show at least 3 decimals. - Tests: a Single hole at a point; a hole drilled from a sketch on the top plane over the pocket starts on the floor; a To object depth; a later cut fails the callout; the p2 callout pinned to today's failed; each hostile case checks its own message; a component's id; the 1e999 mm diameter reads failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-labs#7605) Review on tangency-labs#7618: a callout takes its default decimals from where a dimension takes them, the length-decimals preference (2 by default), so the two read alike on one sheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…angency-labs#7605) tangency-labs#4486 gave counterbored and countersunk holes an optional tip angle; the callout keeps its text as before and ignores it for now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…angency-labs#7605) `drawing::dimension::DEFAULT_DECIMALS` now holds the default (2) next to `MAX_DECIMALS`. `drawing.dimension.add` uses it in place of its own private constant, and `hole_callout::DEFAULT_DECIMALS` re-exports it, so `drawing.hole_callout` takes the same one. No behaviour change: both were 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed holes (tangency-labs#7605) Review on tangency-labs#7618, items 2, 3, 4, 6 and 9: - A tapped hole with its own thread depth, shorter than the hole, gets a drill line of its own and the thread line that depth (`Ø6.75 ↧ 15.00` / `M8 ↧ 10.00`). Without one, or as deep as the hole, the text stays one line. - The thread is read with the Hole feature's own parse (`parse_tapped_thread`): ISO metric as written, catalogued UNC/UNF, G and Rp by their designation. - A later `solid.move` of the hole's body is followed: the hole is looked for where the move put it, and `start` and `direction` are in the model as it is now (and in the hole's own component). A body moved some other way reads as failed, saying it may have been moved. - Any length unit of the expression unit table, as a drawing may fix (one check, `drawing::is_length_unit`, for both). - A hole in sheet metal reads as failed, not supported yet: the sheet is rebuilt with no face named after the hole. - The doc comment notes that `count` is the feature's and the extent this hole's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mas (tangency-labs#7605) Review on tangency-labs#7618, items 1, 5 (schemas), 6, 8 and 9: - `drawing.hole_callout` is `.any_part()`: it works with a drawing open or with none. With one open, the drawing's fixed unit and its content language are the defaults; with none, the design's unit and `en`, as before. - Input and output schemas (`schema/hole_callout.rs`): the handler reads its parameters through the contract, so a wrong-typed value or an unknown key (`decimal`) is refused instead of ignored, and the reply is built from `CalloutResult`. - The default unit is `expr::length_unit_or_mm` of the design's. - Tests: a drawing open and its defaults, thread depth, G/Rp/UNC threads, a moved and turned body and a moved copy, one feature drilling through and blind, a hole in sheet metal (not supported yet) and a part placed twice; the schema's keys, strict errors and replies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cy-labs#7605) Review on tangency-labs#7618, item 5: `cmd.drawing_hole_callout` moves out of the four catalogs into `assets/locales/pending/drawing-hole-callout.json`, so no other PR conflicts with it. It gains ar, he and vi, which are complete catalogs on `drawings` now (the i18n test requires them). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fail (tangency-labs#7605) Review of 15ade12 (FIXLIST_W29A_1101 items 1, 2, 4, 5 and nits 12, 13): - The feature counts its thread depth from below any counterbore or countersink; the callout adds that recess, so the thread and drill depths read from the same face. A thread at least as deep as a blind hole is one line. - A bore whose wall radius or flat floor no longer matches the feature (offset face, scale) reads failed instead of showing stale numbers. - "removed or moved" only when a bore face of the feature lies off all of its holes' axes, so a removed hole with siblings still in place reads "removed". - start_face is looked up at the unmoved point; no shadowed at/dir. - MAX_DECIMALS is re-exported from drawing::dimension; a metric thread gets a capital M. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tangency-labs#7605) Review of 15ade12 (FIXLIST_W29A_1101 items 1-4, 7 and nits 8-11): - Tests: a later offset of a blind floor reads failed; one hole of a pair filled in reads "removed" while its sibling resolves; tapped holes under a counterbore and a countersink; a misspelt `decimal` is refused; the part placed twice is its own test, asserts the plate and hole are in the part, and moves the first placement off the origin. - CalloutValues is built from a destructured HoleCallout; every schema field has a description; the status and params prose name every failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ui-text skill asks a new label for ko too (review of 15ade12, nit 6). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two lines @Gleinkaa's merge of drawings (6f94406) changed in the callout: `Vec3` comes from `solidcore_record` with the geom prelude, and a point inside a sheet is `classify_point` = `Inside`, as `Body::contains` is gone. The replay onto drawings 4bd7b40 keeps them as a commit, in the merge's place. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Per ASME Y14.5 and ISO 6410 a tapped hole whose thread has its own depth reads thread first:
'2× M8 ↧ 14.00', then 'Ø6.75 DURCH', then the counterbore or countersink. The count goes on the
first line. A thread that runs the hole's length stays one line, '{count}{thread}{extent}'.
…cy-labs#7605) Merging drawings brought the hole table's M8 tap drill at 6.80, not the 6.75 the tests carried. The countersink case follows: its cone reaches (12.75 - 6.80) / 2 = 2.975 below the top, so the thread is 12.975 deep.
…ency-labs#7605) other_item listed every other id kind but these two, so an occurrence's id fell through to the below-the-counter branch and read as lost instead of the error the module promises. Add both, and an occurrence id to the hostile-input test next to the component case.
…after a point is deleted (tangency-labs#7605) hole_spots takes the design (tangency-labs#12919), and a counterbore names its bridge (tangency-labs#11103), which a callout leaves out. Since tangency-labs#8111 a Hole drills only the points still in its sketch, so a callout's hole is its point's place among those; before, a callout after a deleted point read the next hole's place. A Move turns about its origin since tangency-labs#12659: the callout now reads a Move through eval::move_motion, the one reading the Move feature itself uses, so a hole in a body turned about a pivot is where the model puts it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you Gleinkaa for the hole callouts, first in #7618, and CamWight for carrying them onto I know this PR is on hold while drawings move to the shared sketch base. The findings below are about how the callout reads a hole from the model, not about views or controls, so they should still matter after the rework. I tested Each repro is a JSON script. Run it with 1. A later feature moves the face a blind hole starts on, and the callout keeps the old depth[{"command":"solid.box","params":{"length":60,"width":30,"height":20}},
{"command":"solid.hole","params":{"position":[15,15,20],"diameter":6,"depth":10,"name":"H"}},
{"command":"sketch.create","params":{"plane":{"origin":[0,0,20],"x_dir":[1,0,0],"y_dir":[0,1,0]}}},
{"command":"sketch.rectangle.two_point","params":{"p0":[0,0],"p1":[30,30]}},
{"command":"sketch.finish","params":{}},
{"command":"solid.extrude","params":{"distance":4,"direction":"negative","operation":"cut"}},
{"command":"drawing.hole_callout","params":{"feature":2}}]The cut lowers the top round the hole to z = 16. The floor stays at z = 10, so the hole is 6 deep now. Expected: 2. A through hole closed by a later join still reads THRU[{"command":"solid.box","params":{"length":60,"width":30,"height":8}},
{"command":"solid.hole","params":{"position":[15,15,8],"diameter":6,"name":"H"}},
{"command":"sketch.create","params":{"plane":{"origin":[0,0,0],"x_dir":[1,0,0],"y_dir":[0,1,0]}}},
{"command":"sketch.rectangle.two_point","params":{"p0":[0,0],"p1":[60,30]}},
{"command":"sketch.finish","params":{}},
{"command":"solid.extrude","params":{"distance":5,"direction":"negative","operation":"join"}},
{"command":"drawing.hole_callout","params":{"feature":2}}]The slab joined underneath closes the exit, so the hole is blind and 8 deep. Expected: 3. A valid radial hole in a cylinder reads
|
| Hole | Expected | Actual |
|---|---|---|
M8X1 as typed |
M8x1 ↧ 15.00 |
M8X1 ↧ 15.00 |
M8x1.25, the coarse pitch |
M8 ↧ 15.00 (ISO 965-1 leaves out a coarse pitch) |
M8x1.25 ↧ 15.00 |
| Countersink at 6 decimals | ⌵ Ø12.000000 × 90° |
⌵ Ø12.000000 × 90.000000° |
| Ø0.05, 0.2 deep, at 0 decimals | Ø0.05 ↧ 0.2 |
Ø0 ↧ 0 |
The angle takes the length's decimals. A size that rounds to zero is drawn as 0.
A related problem outside this PR
A Hole picked on a curved face starts on the display mesh's facet, a little inside the exact surface, so its depth from the exact surface is off by the facet's sag (about 0.02 mm for a Ø40 cylinder). That is in the Hole feature, not in the callout. We report it in a separate issue.
Patches
We have patches with a regression test for each finding, in hole_callout_tests.rs. Each test fails on e1dbe7acc.
- 5 and 6 (the text): ready. A few existing expected values change from
× 90.00°to× 90°, each with a derivation in its commit message. They need a small rebase to stand on their own. - 1 to 4 (depth, through and count): not ready to offer. Our version samples the model with rays round the hole's axis. It still misreads some cases (a smaller hole below a bore, a chamfered rim, a copy that lands on a hole already counted), and it is slow on a part with many holes, where the callout today is fast. We are rewriting it to read the hole from its own exact faces (the bore walls, the floor and the start face of the feature's result). There is no code yet. We will say here before we open a PR, so that nobody does the same work twice.
Happy to open a PR for 5 and 6 on top of this one, or after the rework, whichever you prefer.
Generated by Claude Code
|
The drawings hold is lifted now that the projected-sketch base is on main. Next step: please run |
Co-authored-by: Cameron Wight <camfrawig@hotmail.co.uk> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I merged main into your branch for you (ed64f7b). Conflicts: the module lists in |
stray_bore and bore_floor measure along the hole axis with services::affine::distance_along instead of Vec3::dot; same maths. Co-authored-by: CamWight <91156642+CamWight@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Vec3 Co-authored-by: CamWight <91156642+CamWight@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I fixed the app-geometry failure in Format and repository checks for you (891f802) and merged main (merge commit, only your files differ from main). The callout's two new sites now call the kernel's existing ops and do the same maths:
Update, Nov 27: it conflicts with main again, in one place, FeatureKind::Move { bodies, copy, copy_frames, carry, leave, .. } => {with main's |
|
Hi @CamWight, thank you for carrying this on. I have been trying hole callouts against a few awkward designs and found three places where the note can read the wrong hole, or can't say something a drawing usually needs. These are suggestions for you to take or leave, since you own the feature. I have not opened a PR or touched your branch. My own fixes were written against a different callout reader, so I could not offer a patch that applies cleanly to yours; each item below has a small repro and what I'd expect, which you can turn into a test in 1. Two holes of one feature on one line. 2. A hole keeps its identity when the design is rebuilt. 3. Chamfer and thread callouts measured on the view, and "x2" after the note.
Generated by Claude Code |
|
@BT-USA Thanks BT! I'll feed this back in 👍🏼👍🏼 |
|
Thanks @bherbruck. That's the same resolution I have locally: your pattern for the Move arm, with main's |
…s name Main's hole spots with sketch points (tangency-labs#21485) name each point's hole after its point (`F3:point:p2:bore:side:0`), where the callout looked only for `F<id>:bore:`. So a callout on a hole at a sketch point found no bore and read "the hole cuts no material". The callout now names the bore it looks for from the hole's own point with main's `hole_point_role`, and the stray-bore check takes a bore of the feature at any of its points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… from another part's sketch, a widened wall - A callout that names a note, a rigid group or a configuration row is refused as "is a note, not a Hole feature" (and so on), like a joint's id: they take ids from the design's one counter. - A hole at sketch points is measured as the evaluator drills it: in its sketch's frame, against the bodies where they are shown (tangency-labs#17623), with the evaluator's own frames. Its start and direction are given in the frame of the part the bore is in. - A blind hole whose wall a later feature widened or narrowed reads failed: the wall's radius is checked wherever the wall lies, not only near the axis. - The flange test's six points are written out as coordinates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's cfcd82e moved the placement maths behind the kernel interface: the hole callout's import of affine is now solidcraft_kernel::affine, not services::affine. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t or closed it A callout that reads resolved promises the drawing is right. Three cases read resolved with the wrong note: - A later cut, press-pull or boss moves or covers the face the hole starts on. The bore keeps its faces at the old depth, so the callout kept the feature's depth. Now an exact ray along the hole, from above the widest rim (the counterbore's or countersink's), must meet the start face first, as far down as it did just after the hole. - A later join closes a through hole's far end. Its exit face is not one of the bore's, so the hole read THRU. A Hole without a depth drills through all, so now an exact ray along a through hole's axis, as far as it drills, must meet nothing of the bodies with the hole's faces. - A pattern or mirror copies the hole. The count was the feature's own points. Copies are not counted yet, so such a hole now reads failed, not supported yet. The repros come from review comments on the pull request. Tests also pin three cases that already read right: a radial hole in a cylinder, two holes of one feature in two plates moved onto one line, and a plate split through its hole. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eval.rs's Move arm conflicted: this branch reads the move's motion through `move_motion`, which the callout shares, and main's Move gained `carry` and `leave`. The arm keeps `move_motion` and binds main's two new fields for its constructions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l-cases list The kernel-cases coverage check asks every new command for a case or an EXEMPT line; a callout has no geometry to grade, and its tests are in hole_callout_tests.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rnel allows After any other wall's offset the kernel refuses a through hole's widen with "the wall is too thick: it leaves no room inside the body", though the walls stay 8 mm apart (tangency-labs/solidcore#3449). The test keeps its 4 holes, 4 offsets and expected results; only the order changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thank you @BT-USA, this is a really careful set of findings, and the repros make each one easy to check. I went In this PR, a callout that can't be sure says
Each of these has a test built from your repro. Already right on this head, now pinned by tests from your repros:
All of these tests pass on the new head. The thread text (5 and 6): yes please! A PR on top of this one would be very welcome: the class and hand Counting copies, and reading the hole from its exact faces: I'll leave that to your rewrite and won't start The drawing ideas in your 26 Nov #3:
Thanks again, this made the callouts much more honest. |
|
Thanks @CamWight, and @Gleinkaa for the original work. The Move arm merge is right, and the callouts now say |
7914630
into
tangency-labs:main
Hole callouts on drawing views: a callout reads a Hole feature and writes its note, such as
5× Ø9.00 THRUorØ8.00 ↧ 12.00with its counterbore. The callout work is @Gleinkaa's, from #7618, which closed while it waited. This PR carries it on, up to date withmain. Their 19 commits are here in their name, and three small commits on top fit the callouts to what has changed since.Closes #7605.
Changes a default: no
The callout is a new read-only command; nothing that exists changes what it does.
Change
@Gleinkaa's commits add the callout itself:
crates/doc/src/drawing/hole_callout.rsreads a Hole feature (its count, diameter or thread, through or blind depth, counterbore and countersink) and writes its note. A hole is named by its feature and sketch point, and a callout whose hole is gone readslost;drawing.hole_callout(crates/engine/src/cmd/hole_callout.rs) answers with the callout for a view's hole, read-only, with its schemas;assets/locales/pending/drawing-hole-callout.json.The three commits on top:
bridge(Hole: Bridged option for counterbores (3D-printing bridge layers) #11103), a printing aid, is left out of the callout as itstip_angleis.eval::move_motionnow reads the whole Move: its numbers, its pivot (solid.move: honour origin and matrix, taking over #7086 (#6959) #12659) and the edge it turns about (Move/Copy Rotate: a turn about a picked edge keeps turning about the edge's old position when an earlier step moves the body #17974), from the model just before it. The Move feature and the callout both call it, so they read a Move the same way. Before, a callout turned a hole about the world's origin, or about an edge's saved place after an earlier step had moved that edge, and read "failed" for a hole that was still there.drawing.hole_callout, the same id as the real command, so the command registry held one id twice. The placeholder is nowdrawing.hole_callout.planned, asdrawing.dimension.from_model.plannedis.What changed since 20 Nov
affine::distance_along(4cd2dfd, forcargo xtask app-geometry), a merge ofmain, and the surface axis passed tocosineas aVec3(891f802). Everything below is on top of them.main's Hole: removing a sketch point keeps joints on their original holes #21485, each sketch point's bore is named after its point (F<id>:point:<p>:bore:…). The callout looked only forF<id>:bore:, so it read "cuts no material" for those holes. It now asks for the name the evaluator gives (hole_point_role), so the two can't drift.failed. The wall's radius is checked wherever the wall lies, not only near the axis;failed, with the reason (from @BT-USA's findings of 22 and 26 Nov, each with a test built from their repro). A callout that readsresolvedpromises the drawing is right:drawing.hole_callouthas no geometry to grade, so its line intests/kernel-cases/EXEMPTsays where it is tested.a_later_edit_that_widens_or_narrows_a_holes_wall_reads_failedwidens the last through hole first. After any other wall's offset, the kernel refuses that widen ("the wall is too thick: it leaves no room inside the body"), though the walls stay 8 mm apart: Offset face: widening a through hole's wall is refused as NoRoom after an offset of another hole's wall solidcore#3449. The test keeps its four holes, four offsets and expected results; only the order changes.resolved.Merges of
mainmain49392c8195): no text conflict.main's cfcd82e moved the placement maths behind the kernel interface, so the callout importssolidcraft_kernel::affine, notservices::affine.main235991e554): one conflict, the Move arm incrates/doc/src/eval.rs. This branch reads a Move's motion throughmove_motion, which the callout shares.main's Move: Keep Axes With Body, so a Center Pole can follow its body #20139 (Move: Keep Axes With Body) gave the Movecarryandleavefor its constructions. The arm keeps both:move_motionfor the motion, andmain's two fields formove_constructions_with.mainchanged no callout file, and none of the eval functions the callout calls.Validation
On Windows,
--profile ci, headb68add5391:solidcraft-docandsolidcraft-enginenamedhole,drawing_dimensionordrawing_view: 904 run. The only failures are four tests ontests/KNOWN_FAILING_TESTS(a_new_hole_never_takes_the_dimension_of_an_undone_one,renaming_the_plate_keeps_its_five_dimensions,a_cylinders_sides_meet_its_rims_from_every_corner,a_hole_wider_than_the_part_says_it_removes_all_of_it), plus the widen test before its order change. All 36hole_callouttests pass on the head.cargo xtask fast --base 235991e554: every test failure outside this PR also fails onmainhere. That covers the known-failing list, 21solidcraft-ui-eguitests that fail the same way on235991e554itself, and five tests that need a long%TEMP%path or Python.kernel-cases,app-geometry,mesh-decisions,ui-containers,lists,i18n,i18n-cli,assets,icons,licences,skillsandlayerspass.rustfmt --checkis clean on the 13 changed Rust files. Two steps fail on this PC for reasons outside this PR:clippyreports onlymain's Windows-onlyunused_mutatcrates/ui-egui/src/workshop/mod.rs:247(2cb2be8);sharedfails only oncraft-plugin-wasm's Windows test (Plugins:folders.resolvereturns the name as typed on a disk that ignores case, so a craft-plugin-wasm test fails on macOS #22752).Screenshots of the behavior
A callout isn't drawn on a sheet in this PR:
drawing.hole_calloutis read-only and answers with the callout. So the evidence is the real app's model at each step, with the command's reply beside it. The steps are the new test's: a 60 × 30 × 8 mm plate with a 5 mm blind hole, 4 mm deep, at (45, 15).Ø5.00 ↧ 4.00, and the hole starts at (45, 15, 8), drilled downwards.Ø5.00 ↧ 4.00. The hole now starts at (45, −15, −8), drilled upwards.resolved, and the hole now starts at (45, −15, 42). Before the turn commit, the callout turned the hole about the edge's old place (z = 0), so it readfailedfor a hole that was still there.Pictures from the real app, window 1280×720, driven over the control channel, taken on 18 Nov at
1fb85974e5. The "before" for step 3 is the new test, which failed before the fix. The steps are tests that run on this head (results above); nothing that changed since makes them look different.Known gaps
resolved.M22x1-6H-LH,1/4-20 UNC-2B). The Hole feature already holds them (thread_class,hand), so it is text only.M8X1is kept as typed, a coarse pitch is not left out (M8x1.25forM8), a countersink's angle takes the length's decimals, and a size that rounds to zero is drawn as 0.@BT-USA offered a PR on top of this one for the thread text, and a rewrite that counts copies and reads the hole from its exact faces.
Follow-ups
Integration status
On
main235991e554(merged in 27 Nov), headb68add5391. #13031 (chamfer notes) is built on this PR. #22250 (press-in hardware callouts, draft) carries its commits.Summary by CodeRabbit