Author: Adam Nagy

  • Error getting Thumbnail using Apprentice

    I already have an article on problems with using Apprentice from a side thread, which also mentions that this side thread needs to be a single-threaded apartment. However, the main thread of your application might be a non single-threaded apartment (i.e. multi-threaded apartment) too – something to watch out for. Depending on the language you…

  • 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?…

  • Constrain Sketch Blocks

    You can group sketch geometry together by creating a SketchBlockDefinition out of them using the “Create Block” command: If you have SketchBlock‘s (instances of SketchBlockDefinition) in your Sketch then through the UI you can constrain them together without creating any additional geometry in the SketchBlock‘s definition (SketchBlockDefinition) – e.g. using the midpoint of one of…

  • 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…

  • Entitlement API changes in Inventor 2020

    We already have some articles on using the Entitlement API from Inventor:– Entitlement API in Inventor– Entitlement API in Inventor 2018 There is now a change you have to be aware of.Starting with Inventor 2020, to guarantee the Entitlement API calls work properly to get the UserName, call the Inventor API’s Application.Login() function before or…

  • 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…

  • New API’s in Inventor 2020.1

    For the clearance hole APIs we expose the HoleFeatures.CreateClearanceInfo and also make the HoleFeature.ClearanceInfo writable in Inventor 2020.1 so users now can create a clearance hole via API. Here is a sample: Sub test() ‘ open a part document with a hole feature Dim oDoc As PartDocument Set oDoc = ThisApplication.ActiveDocument Dim oHole As HoleFeature…