← Commit history

Initial commit: skill/fusion-update-libraries

Kyle Bergstedt ·f3d38d4d3b ·
2 files changed +271
README.mdadded+207
@@ -0,0 +1,207 @@+---+name: fusion-update-libraries+description: Update component libraries in a Fusion 360 Electronics PCB design, preserving silkscreen customizations and syncing the 3D board view. Use when the user says "update libraries", "update components", "update from library", "refresh library", "library update", "update machine pins", "update contacts", "sync 3d board", "push to 3d pcb", "update 3d preview", or "library out of date".+---++# Fusion Update Libraries++Update component library footprints/packages in a Fusion 360 Electronics PCB design while preserving silkscreen customizations, then sync the 2D layout to the 3D board view.++**Prerequisite:** `adom-desktop` must be connected (`adom-desktop ping`). The design must be open in the 2D PCB Editor workspace.++## Overview++Library updates in Fusion's Electronics workspace pull the latest footprint geometry from cloud libraries into the active board. However, they have two side effects that must be handled:++1. **Silkscreen text re-appears** — Names/values layers (tNames/bNames layers 25/26, tValues/bValues layers 27/28) that were intentionally deleted during board design get re-added by the library update. These must be identified and removed.++2. **3D board view is stale** — Fusion no longer auto-syncs 2D→3D. After updating libraries, you must manually push the 2D layout to the 3D PCB view before saving or exporting.++## Step-by-Step Workflow++### Step 1: Verify workspace state++```bash+adom-desktop fusion_get_app_state '{}' 2>&1 | python3 -c "+import sys,json+data = json.load(sys.stdin)+output = json.loads(data.get('output','{}'))+d = output.get('data',{})+print(f'Active: {d.get(\"activeDocument\")}, Workspace: {d.get(\"activeWorkspace\")}, Electronics: {d.get(\"isElectronics\")}')+"+```++Must be in `PCB Editor` workspace with `isElectronics: True`. If not:++```bash+adom-desktop fusion_electron_run '{"command":"EDIT .brd"}'+```++### Step 2: Capture pre-update silkscreen state++Before updating, capture the current silkscreen text so we can detect what gets re-added.++**Screenshot the silkscreen layers:**++```bash+# Show only silkscreen layers, hide everything else+adom-desktop fusion_electron_run '{"command":"DISPLAY NONE; DISPLAY 21 22 25 26 27 28; WINDOW FIT"}'+sleep 1+adom-desktop desktop_screenshot_window '{"hwnd":<fusion_hwnd>}'+```++**Export board info to get component text state:**++```bash+adom-desktop fusion_board_info '{}' 2>&1+```++This returns component placements with names/values. Save this data to compare after the update.++**Key EAGLE layers for silkscreen:**++| Layer | Name | Content |+|-------|------|---------|+| 21 | tPlace | Top silkscreen (outlines, markers) |+| 22 | bPlace | Bottom silkscreen (outlines, markers) |+| 25 | tNames | Top component reference designators |+| 26 | bNames | Bottom component reference designators |+| 27 | tValues | Top component values |+| 28 | bValues | Bottom component values |++### Step 3: Run the library update++```bash+adom-desktop fusion_execute_text_command '{"command":"Commands.Start Electron::UpdateDesignFromAllLibraries"}'+```++This updates all components from their linked cloud libraries. Wait 5-10 seconds for it to complete.++**Alternative — update from a specific library only:**+```bash+adom-desktop fusion_execute_text_command '{"command":"Commands.Start Electron::UpdateDesignFromLibrary"}'+```+This opens a dialog to select which library to update from.++### Step 4: Check for re-added silkscreen text++After the update, compare the silkscreen state. Library updates commonly re-add text on layers 25-28 (tNames, bNames, tValues, bValues) that was intentionally deleted.++**Screenshot the silkscreen layers again:**++```bash+adom-desktop fusion_electron_run '{"command":"DISPLAY NONE; DISPLAY 21 22 25 26 27 28; WINDOW FIT"}'+sleep 1+adom-desktop desktop_screenshot_window '{"hwnd":<fusion_hwnd>}'+```++**Compare before/after screenshots.** Look for text labels that appeared after the update. Common culprits:+- Component names (`>NAME`) appearing on tNames/bNames+- Component values (`>VALUE`) appearing on tValues/bValues+- Package outlines changing size on tPlace/bPlace++**To delete specific re-added text elements, use EAGLE DELETE command targeting the layer:**++```bash+# Delete a specific text element by selecting it+# First, identify the text position from board_info or visual inspection+# Then use DELETE command pointed at those coordinates+adom-desktop fusion_electron_run '{"command":"DELETE (<x> <y>)"}'+```++**Bulk approach — smash and delete names/values:**++If all component names/values on the board should be hidden (common for molecules where silkscreen is manually curated):++```bash+# SMASH separates name/value text from the component so they can be individually deleted+# Then delete the text on the names/values layers+adom-desktop fusion_electron_run '{"command":"DISPLAY NONE; DISPLAY 25 26 27 28"}'+# Group-select all visible text, then delete+adom-desktop fusion_electron_run '{"command":"GROUP ALL; DELETE (>0 0)"}'+```++**CAUTION:** Only delete text that was NOT present before the update. Compare screenshots carefully. Some designs intentionally keep certain reference designators visible.++### Step 5: Restore normal layer display++```bash+# Show standard PCB editing layers+adom-desktop fusion_electron_run '{"command":"DISPLAY NONE; DISPLAY 1 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 41 42 43 44 45 46 51 52; WINDOW FIT"}'+```++### Step 6: Push 2D layout to 3D board view++**CRITICAL — Fusion no longer auto-syncs 2D→3D.** You must manually push the updated 2D layout to the 3D PCB view before saving or exporting.++```bash+adom-desktop fusion_execute_text_command '{"command":"Commands.Start Electron::Pcb3DViewAdvanced"}'+```++This is the "Push to 3D PCB" command. It opens the 3D PCB view and syncs the current 2D board state into it. Wait 5-10 seconds for the sync to complete.++After the push, Fusion will be in the 3D PCB workspace. You can verify the 3D view looks correct:++```bash+adom-desktop desktop_screenshot_window '{"hwnd":<fusion_hwnd>}'+```++### Step 7: Save++Return to the 2D board editor, then save:++```bash+# Switch back to 2D board+adom-desktop fusion_electron_run '{"command":"EDIT .brd"}'+sleep 2++# Save to cloud+adom-desktop fusion_execute_text_command '{"command":"Commands.Start PLM360SaveCommand"}'+# Wait for Save dialog, then confirm+sleep 5+# Find Save dialog HWND and press Enter+SAVE_HWND=$(adom-desktop fusion_window_info '{}' 2>&1 | python3 -c "+import sys,json+data = json.load(sys.stdin)+output = json.loads(data.get('output','{}'))+for d in output.get('dialogs',[]):+    if d.get('title') == 'Save':+        print(d['hwnd'])+        break+")+adom-desktop fusion_send_key "{\"key\":\"enter\",\"hwnd\":$SAVE_HWND}"+```++Wait for the title bar to show the incremented version number without an asterisk.++### Step 8: Export (optional)++If exporting after update, use the **caching bug workaround** from the `fusion-export-for-hydrogen` skill:++1. Close all project tabs: `Commands.Start CloseDocumentCommand` (repeat for each tab)+2. Reopen the `.fprj` project file+3. Switch to 2D board: `EDIT .brd`+4. Run Export for Hydrogen: `Commands.Start Adom_AdomHelperJoe_export_for_hydrogen`++See the `fusion-export-for-hydrogen` skill for full export details.++## Quick Reference++| Action | Command |+|--------|---------|+| Switch to board | `fusion_electron_run '{"command":"EDIT .brd"}'` |+| Show silkscreen only | `fusion_electron_run '{"command":"DISPLAY NONE; DISPLAY 21 22 25 26 27 28; WINDOW FIT"}'` |+| Update all libraries | `Commands.Start Electron::UpdateDesignFromAllLibraries` |+| Update one library | `Commands.Start Electron::UpdateDesignFromLibrary` |+| Push 2D→3D | `Commands.Start Electron::Pcb3DViewAdvanced` |+| Save to cloud | `Commands.Start PLM360SaveCommand` |+| Close document | `Commands.Start CloseDocumentCommand` |+| Show all layers | `fusion_electron_run '{"command":"DISPLAY ALL; WINDOW FIT"}'` |+| Get board info | `fusion_board_info '{}'` |++## Important Notes++- **Always capture silkscreen state BEFORE updating.** Library updates are not easily reversible for individual text elements. If you miss something, you may need to undo the entire update.+- **The 2D→3D push is now mandatory.** Fusion removed automatic sync. Forgetting this step means the 3D view (and F3D/USDZ exports) will show outdated geometry.+- **Focus stealing warning:** The "Push to 3D PCB" command switches Fusion to the 3D workspace, which steals desktop focus. Warn the user.+- **Undo is available** if the library update causes unexpected changes: `Electron::Undo` or Ctrl+Z.
page.jsonadded+64
@@ -0,0 +1,64 @@+{+  "schema_version": 1,+  "type": "skill",+  "slug": "fusion-update-libraries",+  "title": "Fusion Update Libraries",+  "brief": "Update component libraries in Fusion 360 Electronics — preserves silkscreen customizations, syncs 2D→3D board view, handles the manual push required by recent Fusion changes",+  "version": "1.0.0",+  "tags": [],+  "license": "MIT",+  "discovery_triggers": [+    "update libraries",+    "update components",+    "refresh library",+    "library update",+    "update machine pins",+    "update contacts",+    "sync 3d board",+    "push to 3d pcb",+    "update 3d preview",+    "library out of date",+    "update from library",+    "silkscreen preservation",+    "2d to 3d sync"+  ],+  "discovery_pitch": "Update component libraries in Fusion 360 Electronics — preserves silkscreen, syncs 2D→3D board view after Fusion's removal of auto-sync.",+  "sample_prompts": [+    {+      "label": "Update libs",+      "prompt": "Update libraries for this Fusion board"+    },+    {+      "label": "Refresh",+      "prompt": "Update components from all libraries"+    },+    {+      "label": "Push 3D",+      "prompt": "Push 2D board layout to 3D PCB view"+    },+    {+      "label": "Sync board",+      "prompt": "Sync the 2D layout to the 3D board and save"+    },+    {+      "label": "Update pins",+      "prompt": "Update the machine pin and contact libraries"+    }+  ],+  "source_path": "SKILL.md",+  "readme": "---\nname: fusion-update-libraries\ndescription: Update component libraries in a Fusion 360 Electronics PCB design, preserving silkscreen customizations and syncing the 3D board view. Use when the user says \"update libraries\", \"update components\", \"update from library\", \"refresh library\", \"library update\", \"update machine pins\", \"update contacts\", \"sync 3d board\", \"push to 3d pcb\", \"update 3d preview\", or \"library out of date\".\n---\n\n# Fusion Update Libraries\n\nUpdate component library footprints/packages in a Fusion 360 Electronics PCB design while preserving silkscreen customizations, then sync the 2D layout to the 3D board view.\n\n**Prerequisite:** `adom-desktop` must be connected (`adom-desktop ping`). The design must be open in the 2D PCB Editor workspace.\n\n## Overview\n\nLibrary updates in Fusion's Electronics workspace pull the latest footprint geometry from cloud libraries into the active board. However, they have two side effects that must be handled:\n\n1. **Silkscreen text re-appears** — Names/values layers (tNames/bNames layers 25/26, tValues/bValues layers 27/28) that were intentionally deleted during board design get re-added by the library update. These must be identified and removed.\n\n2. **3D board view is stale** — Fusion no longer auto-syncs 2D→3D. After updating libraries, you must manually push the 2D layout to the 3D PCB view before saving or exporting.\n\n## Step-by-Step Workflow\n\n### Step 1: Verify workspace state\n\n```bash\nadom-desktop fusion_get_app_state '{}' 2>&1 | python3 -c \"\nimport sys,json\ndata = json.load(sys.stdin)\noutput = json.loads(data.get('output','{}'))\nd = output.get('data',{})\nprint(f'Active: {d.get(\\\"activeDocument\\\")}, Workspace: {d.get(\\\"activeWorkspace\\\")}, Electronics: {d.get(\\\"isElectronics\\\")}')\n\"\n```\n\nMust be in `PCB Editor` workspace with `isElectronics: True`. If not:\n\n```bash\nadom-desktop fusion_electron_run '{\"command\":\"EDIT .brd\"}'\n```\n\n### Step 2: Capture pre-update silkscreen state\n\nBefore updating, capture the current silkscreen text so we can detect what gets re-added.\n\n**Screenshot the silkscreen layers:**\n\n```bash\n# Show only silkscreen layers, hide everything else\nadom-desktop fusion_electron_run '{\"command\":\"DISPLAY NONE; DISPLAY 21 22 25 26 27 28; WINDOW FIT\"}'\nsleep 1\nadom-desktop desktop_screenshot_window '{\"hwnd\":<fusion_hwnd>}'\n```\n\n**Export board info to get component text state:**\n\n```bash\nadom-desktop fusion_board_info '{}' 2>&1\n```\n\nThis returns component placements with names/values. Save this data to compare after the update.\n\n**Key EAGLE layers for silkscreen:**\n\n| Layer | Name | Content |\n|-------|------|---------|\n| 21 | tPlace | Top silkscreen (outlines, markers) |\n| 22 | bPlace | Bottom silkscreen (outlines, markers) |\n| 25 | tNames | Top component reference designators |\n| 26 | bNames | Bottom component reference designators |\n| 27 | tValues | Top component values |\n| 28 | bValues | Bottom component values |\n\n### Step 3: Run the library update\n\n```bash\nadom-desktop fusion_execute_text_command '{\"command\":\"Commands.Start Electron::UpdateDesignFromAllLibraries\"}'\n```\n\nThis updates all components from their linked cloud libraries. Wait 5-10 seconds for it to complete.\n\n**Alternative — update from a specific library only:**\n```bash\nadom-desktop fusion_execute_text_command '{\"command\":\"Commands.Start Electron::UpdateDesignFromLibrary\"}'\n```\nThis opens a dialog to select which library to update from.\n\n### Step 4: Check for re-added silkscreen text\n\nAfter the update, compare the silkscreen state. Library updates commonly re-add text on layers 25-28 (tNames, bNames, tValues, bValues) that was intentionally deleted.\n\n**Screenshot the silkscreen layers again:**\n\n```bash\nadom-desktop fusion_electron_run '{\"command\":\"DISPLAY NONE; DISPLAY 21 22 25 26 27 28; WINDOW FIT\"}'\nsleep 1\nadom-desktop desktop_screenshot_window '{\"hwnd\":<fusion_hwnd>}'\n```\n\n**Compare before/after screenshots.** Look for text labels that appeared after the update. Common culprits:\n- Component names (`>NAME`) appearing on tNames/bNames\n- Component values (`>VALUE`) appearing on tValues/bValues\n- Package outlines changing size on tPlace/bPlace\n\n**To delete specific re-added text elements, use EAGLE DELETE command targeting the layer:**\n\n```bash\n# Delete a specific text element by selecting it\n# First, identify the text position from board_info or visual inspection\n# Then use DELETE command pointed at those coordinates\nadom-desktop fusion_electron_run '{\"command\":\"DELETE (<x> <y>)\"}'\n```\n\n**Bulk approach — smash and delete names/values:**\n\nIf all component names/values on the board should be hidden (common for molecules where silkscreen is manually curated):\n\n```bash\n# SMASH separates name/value text from the component so they can be individually deleted\n# Then delete the text on the names/values layers\nadom-desktop fusion_electron_run '{\"command\":\"DISPLAY NONE; DISPLAY 25 26 27 28\"}'\n# Group-select all visible text, then delete\nadom-desktop fusion_electron_run '{\"command\":\"GROUP ALL; DELETE (>0 0)\"}'\n```\n\n**CAUTION:** Only delete text that was NOT present before the update. Compare screenshots carefully. Some designs intentionally keep certain reference designators visible.\n\n### Step 5: Restore normal layer display\n\n```bash\n# Show standard PCB editing layers\nadom-desktop fusion_electron_run '{\"command\":\"DISPLAY NONE; DISPLAY 1 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 41 42 43 44 45 46 51 52; WINDOW FIT\"}'\n```\n\n### Step 6: Push 2D layout to 3D board view\n\n**CRITICAL — Fusion no longer auto-syncs 2D→3D.** You must manually push the updated 2D layout to the 3D PCB view before saving or exporting.\n\n```bash\nadom-desktop fusion_execute_text_command '{\"command\":\"Commands.Start Electron::Pcb3DViewAdvanced\"}'\n```\n\nThis is the \"Push to 3D PCB\" command. It opens the 3D PCB view and syncs the current 2D board state into it. Wait 5-10 seconds for the sync to complete.\n\nAfter the push, Fusion will be in the 3D PCB workspace. You can verify the 3D view looks correct:\n\n```bash\nadom-desktop desktop_screenshot_window '{\"hwnd\":<fusion_hwnd>}'\n```\n\n### Step 7: Save\n\nReturn to the 2D board editor, then save:\n\n```bash\n# Switch back to 2D board\nadom-desktop fusion_electron_run '{\"command\":\"EDIT .brd\"}'\nsleep 2\n\n# Save to cloud\nadom-desktop fusion_execute_text_command '{\"command\":\"Commands.Start PLM360SaveCommand\"}'\n# Wait for Save dialog, then confirm\nsleep 5\n# Find Save dialog HWND and press Enter\nSAVE_HWND=$(adom-desktop fusion_window_info '{}' 2>&1 | python3 -c \"\nimport sys,json\ndata = json.load(sys.stdin)\noutput = json.loads(data.get('output','{}'))\nfor d in output.get('dialogs',[]):\n    if d.get('title') == 'Save':\n        print(d['hwnd'])\n        break\n\")\nadom-desktop fusion_send_key \"{\\\"key\\\":\\\"enter\\\",\\\"hwnd\\\":$SAVE_HWND}\"\n```\n\nWait for the title bar to show the incremented version number without an asterisk.\n\n### Step 8: Export (optional)\n\nIf exporting after update, use the **caching bug workaround** from the `fusion-export-for-hydrogen` skill:\n\n1. Close all project tabs: `Commands.Start CloseDocumentCommand` (repeat for each tab)\n2. Reopen the `.fprj` project file\n3. Switch to 2D board: `EDIT .brd`\n4. Run Export for Hydrogen: `Commands.Start Adom_AdomHelperJoe_export_for_hydrogen`\n\nSee the `fusion-export-for-hydrogen` skill for full export details.\n\n## Quick Reference\n\n| Action | Command |\n|--------|---------|\n| Switch to board | `fusion_electron_run '{\"command\":\"EDIT .brd\"}'` |\n| Show silkscreen only | `fusion_electron_run '{\"command\":\"DISPLAY NONE; DISPLAY 21 22 25 26 27 28; WINDOW FIT\"}'` |\n| Update all libraries | `Commands.Start Electron::UpdateDesignFromAllLibraries` |\n| Update one library | `Commands.Start Electron::UpdateDesignFromLibrary` |\n| Push 2D→3D | `Commands.Start Electron::Pcb3DViewAdvanced` |\n| Save to cloud | `Commands.Start PLM360SaveCommand` |\n| Close document | `Commands.Start CloseDocumentCommand` |\n| Show all layers | `fusion_electron_run '{\"command\":\"DISPLAY ALL; WINDOW FIT\"}'` |\n| Get board info | `fusion_board_info '{}'` |\n\n## Important Notes\n\n- **Always capture silkscreen state BEFORE updating.** Library updates are not easily reversible for individual text elements. If you miss something, you may need to undo the entire update.\n- **The 2D→3D push is now mandatory.** Fusion removed automatic sync. Forgetting this step means the 3D view (and F3D/USDZ exports) will show outdated geometry.\n- **Focus stealing warning:** The \"Push to 3D PCB\" command switches Fusion to the 3D workspace, which steals desktop focus. Warn the user.\n- **Undo is available** if the library update causes unexpected changes: `Electron::Undo` or Ctrl+Z.\n",+  "author": {+    "id": "695820315b5f1e4db2fcf602",+    "name": "Kyle Bergstedt",+    "email": "[email protected]"+  },+  "visibility": {+    "public": true+  },+  "hero": null,+  "metadata": {},+  "created_at": "2026-05-28T05:29:34.693Z",+  "updated_at": "2026-05-28T05:29:34.693Z",+  "sub_skills": [],+  "parent_app": null+}\ No newline at end of file