Skip to content

Fix toolbar tab discovery for newer Fusion 360 versions#20

Open
cheewee2000 wants to merge 1 commit intothomasa88:masterfrom
cheewee2000:fix/toolbar-tab-retry
Open

Fix toolbar tab discovery for newer Fusion 360 versions#20
cheewee2000 wants to merge 1 commit intothomasa88:masterfrom
cheewee2000:fix/toolbar-tab-retry

Conversation

@cheewee2000
Copy link
Copy Markdown

Summary

  • Add retry logic with delay for toolbar tab discovery during add-in startup, since newer Fusion 360 versions may not have tabs ready immediately
  • Try multiple tab IDs (ToolsTab, UtilitiesTab) and lookup methods (workspace-based and allToolbarTabs) for broader compatibility
  • Add null checks in stop() to prevent errors when UI elements were not fully initialized
  • Fix relative import references for thomasa88lib modules (importlib.reload calls)

Test plan

  • Verify add-in loads correctly in current Fusion 360
  • Verify add-in loads correctly in older Fusion 360 versions
  • Verify toolbar panel and commands appear under the correct tab
  • Verify clean unload (stop) without errors

In newer Fusion 360 versions, toolbar tabs may not be ready during
add-in startup, causing the add-in to fail silently. This adds:

- Retry logic with delay to wait for tabs to become available
- Multiple tab ID fallbacks (ToolsTab, UtilitiesTab)
- Workspace-based tab lookup in addition to allToolbarTabs
- Null checks in stop() to prevent errors during cleanup
- Fix relative import references for thomasa88lib modules

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant