- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'll back up first and explain my use-case, since there may be a better way to do this (although my current setup it technically unsupported, which is why I'm pursuing this option)
I'm on Linux, so running Fusion360 through Wine. I also use a SpaceMouse quite heavily, and I've gotten that to work for navigation without issue. However, one thing I relied on under macOS was radial menus to expand the functionality of my SpaceMouse side buttons, and there's no such radial menu tool for the spacemouse under linux. I've created my own program for this that simulated a keyboard entry for macros when an option was selected, but I quickly realized that those keyboard entries don't actually get properly transmitted through Wine.
Because of this, my plan was to create an AddIn using the Fusion 360 API which would establish a socket connection to my radial menu program, and when I choose a menu option, an event would be fired which could be received on the Fusion API side. Up to this point, I've a plan for how this can work, I don't need help (well now I've jinxed myself) with that.
What I'm having a hard time with is trying to figure out how my Fusion AddIn could open a command for a user to interact with. I can't seem to figure out how to do it. I either can't seem to find a method for doing this or I've found documentation such as this which seems to indicate that executing a function from the API is possible (maybe, unless this is purely something to be ran in the background) But the syntax is not explained, it's just a brief one liner "Any command (standard Fusion 360 or API created commands) can be run by the user clicking a button or by a program calling the command definitions execute method."
With that said then, does anyone know how to go about this? I'm only interested in launching native fusion commands (e.g. Extrude, Revolve, Create Sketch, etc.) but if it could be interoperable with custom commands it'd be good to know.
Thank you for any help.
Solved! Go to Solution.