Repository navigation
Description
What are you trying to do
Use another design's user parameters by name, so that many designs can share one set of sizes.
I keep shared sizes (fits and clearances, insert and screw holes, key geometry: 76 parameters
today) as user parameters in one standards design. Every design in the product family should
use them by name, and pick up a change after an update, without anyone editing 20 files.
Today parameters belong to one design. parameters.import copies a CSV once and keeps no link
back, and Insert Design (component.insert_design) links another design's bodies but not its
parameters.
This is a first, narrow step towards #3778 (external references): parameters only, no geometry.
How you imagine it working
A design keeps a list of linked designs whose user parameters it uses, read-only. The design
was discussed on Discord, and the points below include that review's answers.
Commands. They mirror component.insert_design, update_links, relink, break_link and
links.
| Command | What it does |
|---|---|
parameters.link_design {path, scope?} |
Reads the design and brings in its user parameters. scope: all (default) or favorites. |
parameters.update_links {design?} |
Reads the linked designs again and rebuilds. Reports changed [{name, from, to}], added, removed. |
parameters.relink {design, path} |
Points a linked design at another file (moved or renamed). Reads it before changing anything. |
parameters.break_link {design?} |
Keeps the values as ordinary user parameters and forgets the file. |
parameters.links |
Lists the linked designs with their state: up_to_date, out_of_date, missing, unreadable, or outside the folders an agent may use. |
Behaviour:
-
Values, not expressions. A linked parameter comes in as its value in its own unit
(8.2 mm,45 deg), worked out in the linked design. It's one moreParamDef, so evaluation,
cycles(), the users list, completion and the evaluation cache follow with no other change. -
Kept in the design. The values are stored in the design, so it opens and rebuilds when the
file is missing. This is the same ruleDesignLinkfollows. -
Read-only. One "who owns this name" lookup decides every edit path: change, add, rename,
delete, comment, move, import, configuration columns and rules,timeline.add {params}, and
feature-input naming. An edit to a linked name is refused, and the error names the file. -
Refused links:
- a name already used in this design;
- linking a design to itself;
- a direct loop (A → B → A);
- linking the same design twice.
Linked designs' own links don't come in, as with Insert Design.
-
Updates are all or nothing. The update rule is one function in
doc. It refuses a name
clash, and refuses removing a name still in use (throughparam_users, so Renaming a parameter follows it into sheet-metal and plastic rules and canvases (#4420) #4423's new users
protect linked parameters too). A rename in the linked design reads as removed plus added, and
the docs will say so. -
Paths are relative to the design's folder in the file, and survive Save As (including the
desktop app's save-on-a-copy) and undo. -
On open, only "missing" is checked. "Out of date" is worked out when it's asked for, by
comparing the stored values with the file's in their text form. -
Design file: one key for the linked designs, added as one
format/pending/file with no
migration step. -
Window: a Linked Parameters section in the Parameters window, with one group per linked
design: its state, and Update, Relink and Break Link buttons. Plus Favourite all for a
group. -
Telling the user the file changed: a "needs attention" dot on the Parameters button, driven
by a desktop-only check of each file's length and modification time. No automatic updates,
as the review advised: saves run on a copy, an automatic update would be an undo step nobody
made, and it would slip past the agent gate.
Plan:
- The shared module for links to other design files (path rules, opening with a reason for each
state, one set of state words). Drawing W11, W12, W15: where drawings are saved, their records and their commands (#3890) #3891 plans the same move, so I'll coordinate there rather
than duplicate it. - Engine, design format and docs, shown through the CLI.
- The window and the shared dot, with screenshots.
There's a working prototype; the draft PR follows.
Activity
github-actions commentedon Oct 23, 2026
Claimed by @CarelT through #5355. The claim lapses after 14 days without pushes.
Move the design-link path helpers into one module
Engine: one module for the design-link path helpers (no behaviour cha…
UI kit: one shared needs-attention mark, used by the agent chat's badge
UI kit: one shared needs-attention mark, used by the agent chat's bad…
github-actions commentedon Nov 7, 2026
Nothing has been pushed for 14 days, so this one is free again. Anyone can
/claimit.CarelT commentedon Nov 10, 2026
/claim
github-actions commentedon Nov 10, 2026
Claimed by @CarelT. Please open a draft PR referencing #5354 within 72 h; the claim lapses otherwise.
/unclaimreleases it.