Insert Design on the ASSEMBLE panel and in the File menu (#1240) (#1405)

component.insert_design (a saved part as a linked component) had no button, so an
assembly of separately saved parts looked impossible. It is now on the ASSEMBLE panel
of every tab and in the File menu; it asks for the file, and a STEP or mesh file picked
there is inserted as Insert STEP or Insert Mesh would.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bherbruckandClaude Opus 5.5 authored and GitHub committed 2026-10-15 10:28:02 -04:00
1 parent 4823c293dd
commit b156b5e09c
5 files changed
+64 -3

No files matched your search

+4
View File
@@ -390,6 +390,10 @@ fn file_menu(app: &mut SolveApp, ctx: &egui::Context) {
app.start("file.insert_mesh");
close = true;
}
if item_if(ui, &format!("{}…", app.tr_label("Insert Design")), "", shown) {
app.start("component.insert_design");
close = true;
}
if item_if(ui, app.tr("ui.save"), "Ctrl+S", shown) {
save(app);
close = true;