Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems Fusion 360 calls the "execute" handler without the user ever clicking the "OK" button. This happens whenever Fusion 360 needs to close the command dialog to run some other dialog. In my case and many others this can create a major problem for the end user.
This is very easy to reproduce:
- Use the Fusion 360 command to make a new AddIn and run it using "Debug". In Visual Studio set a breakpoint on "command_execute" in entry.py
- Invoke the AddIn as usual and bring up the command dialog that shows "Some Text" and "Some Value" and the OK and CANCEL buttons as usual. Leave this up. Do not click anywhere in the dialog.
- Go the the SOLID tab and under MODIFY pick "fx Change Parameters." This also seems to work for any command that needs a new dialog displayed.
- Visual Studio will stop at the breakpoint in command_execute and the usual stack trace is shown.
- In Visual Studio debug, click the "run" arrow. The sample AddIn runs as it usually does and shows output up on the screen. Go ahead and close the response dialog box.
- Only then does the "fx Parameters" dialog open up.
Is anyone else seeing this? Can anyone suggest a workaround? Can I get a sense of when this might, or might never, get improved?
Solved! Go to Solution.