diff --git a/svelte-app/src/lib/export.ts b/svelte-app/src/lib/export.ts index 2229702..68342b6 100644 --- a/svelte-app/src/lib/export.ts +++ b/svelte-app/src/lib/export.ts @@ -248,7 +248,8 @@ export async function exportSVG() { } lines.push(''); - downloadBlob(new Blob([lines.join('\n')], { type: 'image/svg+xml' }), 'test_view.svg'); + const mcmName = layout.currentMcm || 'export'; + downloadBlob(new Blob([lines.join('\n')], { type: 'image/svg+xml' }), `${mcmName}_Detailed_View.svg`); } /** Emit EPC symbol — polyline + icon + right box, wrapped in with id/label */