* claim: #3330 * Linked components: joints keep their face after Update Links (#3330) A linked design comes in as STEP text, which keeps no face names, so the faces of its bodies were named by their place in the file (`face:<k>`). An edit of the part that adds a face earlier in the file (a second hole of the same size) gave that place to another face, and a joint on the linked part moved there silently. When a link is made or updated, each imported face is matched to the part face it was written from (the same geometry), and the Import feature keeps that face's name in the part (`Feature::link_faces`, a new pending format change). The linked face is named `F<import>🔗<digest of that name>`, pieces keeping their qualifiers, so references follow the part's own history through Update Links as they do inside the part, and a face the part no longer has is reported. Linked faces still answer to `face:<k>`, so older references keep resolving; Update Links warns about joints that use them and reports joints that no longer solve. * Linked faces: a solid's twin keeps its own names; renamed faces count as an update Two solids of a part alike in one place each take the names of the solid the file names them after. Update Links reports a link whose part named its faces differently since as updated (a joint may follow that name to another face), not as unchanged; only a link getting its first names stays unchanged. * Linked faces: Extract to File carries the design's face names too Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: MateuszSychXpl <151755914+MateuszSychXpl@users.noreply.github.com> Co-authored-by: bherbruck <brennen.herbruck@gmail.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -30,7 +30,7 @@ tool built from a sketch, cut from each target, the cut body split into lumps) i
|
||||
| a body of the model before the feature | as they were |
|
||||
| a moved copy of one (pattern, mirror) | `<name>@F<feature>.<instance>` |
|
||||
| the cavity side of a shell grown outward | `F<feature>:inner:<name>` |
|
||||
| a body the feature built | by role: `F<feature>:side:<sketch curve>`, `start`/`top`/`bottom`/`end` caps, `+x`… box sides, `face:<k>` imported faces |
|
||||
| a body the feature built | by role: `F<feature>:side:<sketch curve>`, `start`/`top`/`bottom`/`end` caps, `+x`… box sides, `face:<k>` imported faces, `link:<digest>` faces of a linked design (see below) |
|
||||
| a copied tool of a patterned feature | `F<feature>:<role>@F<pattern>.<instance>` |
|
||||
|
||||
`crates/doc/src/history_names.rs` names each face of the result from its origins: a kept or
|
||||
@@ -56,6 +56,20 @@ curve the profile segment lies on exactly; nothing is sampled.
|
||||
|
||||
Names are worked out lazily, on first request, and shared by a body's clones.
|
||||
|
||||
### Linked designs
|
||||
|
||||
A linked design (Insert Design) comes in as STEP text, which keeps no names: its faces would be
|
||||
named by their place in the file (`face:<k>`), and adding a hole to the part can give that place to
|
||||
another face. So when the link is made or updated, each face is matched to the face of the part it
|
||||
was written from (the same geometry, so a point well inside one lies on the other) and the Import
|
||||
feature keeps that face's name in the part (`Feature::link_faces`). The face is named
|
||||
`F<import>:link:<digest>`, a digest of that name (which may hold anything: the part's feature
|
||||
numbers and `@`, `|` mean something else in the assembly), and a piece keeps its qualifier with the
|
||||
faces around it named the same way. A joint or other reference on a linked face therefore stays on
|
||||
it across Update Links exactly as it would inside the part, and says so when the part no longer has
|
||||
the face. Every linked face still answers to `face:<k>`, so references made before keep finding
|
||||
their face by place; Update Links warns about joints that do.
|
||||
|
||||
### Where there is no history
|
||||
|
||||
A body made by an operation that does not report history yet (some kernel paths return none; see
|
||||
|
||||
Reference in New Issue
Block a user