Category: Fusion

  • Drive all revolute joints

    I have two blog posts on driving revolute joints of a model:Drive robot arm in Fusion and Drive robot arm in Fusion – update However, in those cases you have to select the joints you want to drive and use the keyboard.If you prefer driving all the revolute joints’ rotation values through a slider, then…

  • Run commands from the “Text Commands” panel

    As mentioned in this article already, you can run registered Fusion 360 commands programmatically as well. You can also do it without creating a script or add-in, by using the “Text Commands” panel: In this case we are using Python, so make sure that the appropriate radio button is selected: import adsk.core, adsk.fusion app =…

  • Problem debugging Python code

    When using the latest two versions of the Python extension inside Visual Studio Code, then instead of VS Code showing up when you click "Edit" or "Debug" inside the  "Script and Add-Ins" dialog, another instance of Fusion 360 will come up 😬 Fortunately, you can simply downgrade back to version 2019.9.34911 of the Python extension to solve…

  • Un-remove Fusion 360 add-in

    Inside the "Scripts and Add-Ins" dialog you have the option to "Remove" a given add-in or script. This will not delete the add-in, but will simply mark it to be ignored in the future, and so it won't be listed or loaded anymore: But how can you bring it back if you changed your mind?…

  • Issues with migrating to Python 3.7.3

    As I mentioned it in this blog post, the new version of Python (3.7.3) that Fusion 360 migrated to seems more strict, and is causing some add-ins to fail. Here are the main issues I’ve seen pop up: 1) Having an empty code block: if/else, try/except, etcCode: try: except: Error: Sorry: IndentationError: expected an indented…

  • Cannot debug my Python add-in

    Just wrote an article on how to debug your Python script/add-in One thing missing from it is about what to do if the compiler runs into problems with the main module (vs an additional module your code is loading). In that case, checking "Raised Exceptions" in the "Breakpoints" section is not enough 🙁Your code will…

  • Debug Fusion 360 add-ins with VS Code

    As I wrote about it in this blog post, we were switching to Visual Studio Code as the debugging tool for Fusion 360 – I think that's great 😀 At the same time, we also upgraded the Python version used in Fusion 360 to 3.7.3 Unfortunately, some add-ins got caught up in that. It looks like…

  • New Python version and Visual Studio Code

    We are upgrading the Python version used in Fusion 360 to 3.7.3 in the September release.It could mostly impact add-ins written in Python where the version of  Python used to compile the source code to a *.pyc file has been locked down. If that is the case then please test your add-in once the September release is…

  • The new Fusion 360 UI is here!

    A new Fusion 360 toolbar UI is becoming official soon, including changes to the existing API. To ensure that your add-ins are still compatible, we highly encourage you to update your add-in using the new API: https://docs.google.com/document/d/174ISmaXs-60JRtn8bt4Sbr6Z3jqzkyoSizVD9YwChOQ/edit?usp=sharing For convenience I’m also pasting here the content: Tabbed Toolbar API UserInterface class changes http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-52303e26-c1c2-4a1c-8c1a-a3c199e6db63 app = adsk.core.Application.get()…

  • Existing add-ins and scripts now work with the UI Preview

    As I wrote about it before there is a new UI coming in Fusion 360 that might need the attention of add-in developers. However, in the latest release, the majority of the existing add-ins will be supported by accepting code placing command buttons at the old locations and putting them to the new ones automatically:…