Author: Adam Nagy

  • ReleaseComObject vs FinalReleaseComObject

    When freeing up COM objects in your Inventor add-in, don’t use FinalReleaseComObject() as it will badly affect other add-ins. It fully releases the object, so that other add-ins previously referencing it will not be able to access it either. Here is an example. AddIn1 does this when being unloaded: public void Deactivate() { Marshal.FinalReleaseComObject(m_inventorApplication); m_inventorApplication…

  • iLogic variable not up-to-date

    When an iLogic rule runs and it has a variable with the name of a given Inventor parameter, then it will take the current value of that parameter and keep using it – its value will not get updated if the value of the parameter is changed in the meantime outside the rule.The following article…

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

  • Hook up a chain using iMate’s with MatchList

    I already had a blog post on Hook up a chain using iMate’s, but I was recently asked about more iMate related API samples, so I thought I could also demonstrate the usage of iMate MatchList.  In theory, when using a MatchList, the iMates in the various components should be matched automatically when using the…

  • Change Front camera view of model

    In the UI there is an option to modify the Front/Top/etc orientation of camera for the model. It’s available under the View Cube‘s menu item “Set Current View as” – see left side of picture You can also run that command programmatically to achieve the same result. First set the camera to the direction that you…

  • Modify Inventor Project (*.ipj file) directly

    The Inventor API exposes pretty much all the Project related functionality through the DesignProjectManager and DesignProject objects: However, if a certain functionality is not exposed or is not working correctly, you may modify the project file (*.ipj) directly as well. 1) Make sure that a copy of the project file is saved somewhere so that…

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

  • Join us for our DevDays Online webinars

    Join us for our special series of webinars where we’ll be going over some of the topics covered last year's DevCon events in detail (see full list below). These webinars are a great opportunity for you to learn about Autodesk Forge and, of course, where Autodesk is taking the desktop platforms in the coming year.…

  • Join us for our DevDays Online webinars

    By Sajith Subramanian Join us for our special series of webinars where we’ll be going over some of the topics covered last year’s DevCon events in detail (see full list below). These webinars are a great opportunity for you to learn about Autodesk Forge and, of course, where Autodesk is taking the desktop platforms in…

  • Using Visual Studio to Debug iLogic Rules

    In Inventor 2019, we have incorporated an experimental mechanism that allows you to use Visual Studio to debug your iLogic rules.  It is not a seamless experience, but nevertheless is an effective technique.  We are looking for feedback as to whether the quirks in the experience are tolerable, versus the benefits of being able to…