Fusion 360 Script Error: "(filename) is an active document"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I'm experiencing a persistent issue when trying to run a Python script in Fusion 360. I keep getting the error message:
AttributeError: 'NoneType' object has no attribute 'isActive'
or
No active document / No active product
Here's what I've tried so far:
I start Fusion 360 normally
I create a new design via File → New Design
I do NOT open the script dialog first
Then I go to Utilities → Scripts and Add-Ins, select my script, and click Run
The script crashes immediately with the error that no active design/product is found
Even with this minimal test script:
app = adsk.core.Application.get()
ui = app.userInterface
if not app.activeDocument:
ui.messageBox("No active document found")
return
…I still get the same error, even though a new design is definitely open.
I’ve already:
Reset Fusion settings
Cleared the cache folders
Disabled all add-ins
Reinstalled Fusion 360
Nothing helps.
Has anyone else encountered this issue or found a workaround?
Any ideas would be greatly appreciated!
Thanks in advance.
Fusion 2601.1.34 x86_64
Aktiver Plan: Privatanwender
Windows 11 Home 23H2 (22631.5126)