Linked designs: one changed while the assembly was closed is read again when it opens (#9739) (#9872)

* Claim #9739

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Linked designs: one changed while the assembly was closed is read when it opens (#9739)

A link now keeps the SHA-256 of its design file's bytes as the assembly
last read them (DesignLink::file_sha256, a pending format change), set by
Insert Design, Relink, Extract to File and Update Links. component.links
reports `changed` from it, hashing a file again only when its time or
size changed (vfs::design_path_stamp, behind the design-path rule). The
app treats a link it meets for the first time whose file changed as not
read yet, so opening an assembly, in its own tab or in place of the blank
design, reads those parts again as a tab coming back does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Linked designs: read what changed last when a design opens in place of the blank one (#9739)

A read is taken up only by the design revision it started from, and
adopt bumped the revision after starting it, so the read was dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
austin62jake
2026-10-31 07:28:24 +00:00
committed by GitHub
parent bfd6aa9b7d
commit 3c0d4e120e
8 changed files with 199 additions and 23 deletions
+3 -2
View File
@@ -385,7 +385,7 @@ Mesh** would. The part's solid bodies come
in as they sit in that design, and they are kept in the assembly, so it opens even without the
part file. The link is stored relative to the assembly's folder once the assembly is saved.
After the part file changes, **Update Links** (`component.update_links`) reads it again.
An assembly whose tab comes back to the front does that by itself for the parts whose files
An assembly that opens, or whose tab comes back to the front, does that by itself for the parts whose files
changed since it last read them, whether the part was saved in another tab, another window or by
a checkout. A part that cannot be read is tried again the next time, and holds up no other.
**Update changed linked designs when a tab comes back** (Preferences, Design,
@@ -393,7 +393,8 @@ a checkout. A part that cannot be read is tried again the next time, and holds u
To edit the source, right-click a linked component or occurrence in the Browser and choose
**Open Linked Design**. It opens the part in another tab and reports if its file is missing.
**Break Link** (`component.break_link`) keeps the bodies and forgets the file, and
`component.links` lists the links and whether their files are found. A linked component holds
`component.links` lists the links, whether their files are found, and whether they changed since
the assembly last read them (`changed`). A linked component holds
the part's bodies only: its timeline, parameters and sheet-metal data (flat pattern, bend
table) stay in the part's own design.