Insert Design: pick one of the other open designs, or browse for a file (#8570) (#8571)

* claim: #8570

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

* Insert Design: pick one of the other open designs, or browse for a file (#8570)

With other designs open in tabs, Insert Design first lists them under the
button: one click inserts a saved one as a linked component; one with
unsaved changes inserts its saved file and the status line says so; one
never saved is greyed out, as there is no file to link. Browse... opens
the file picker, as the button did before, and it still goes straight
there with no other design open.

Preferences > Design > Linked designs > "Insert Design lists the designs
open in other tabs first" (insert_lists_open_designs) turns the list off.

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

* Insert Design list: sit with the other menus' items, so run_item keeps its doc comment

Review on #8571: insert_design_items had landed between run_item and its comment. The
rebased menu-walk list keeps main's Target::HistoryControls beside Target::InsertDesign.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ryan
2026-10-29 17:11:25 +00:00
committed by GitHub
parent 6ebfe91661
commit d05a114241
9 changed files with 248 additions and 15 deletions
+6 -1
View File
@@ -373,7 +373,12 @@ leaves the design as it was unless `apply` is true.
**Insert Design** (`component.insert_design {path, translate?}`, on the **ASSEMBLE** panel and
in the **File** menu) adds a component linked to another saved design, so each part can live in
its own document. A STEP or mesh file picked there is inserted as **Insert STEP** or **Insert
its own document. When other designs are open in tabs, the button first lists them under
**Open designs**. One click inserts that design; a design not saved yet is greyed out, as it has no
file to link; one with unsaved changes inserts its saved file, and the status line says so.
**Browse…** at the end opens the file picker, as the button does when no other design is open.
Preferences › Design › **Insert Design lists the designs open in other tabs first** turns the list
off. A STEP or mesh file picked there is inserted as **Insert STEP** or **Insert
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.