Category: Inventor

  • Cannot load or reload add-in

    By Adam Nagy If you have issues with loading or reloading your add-in these might be the most likely issues.  1) Issues with loading the add-in This is the scenario when your add-in never gets loaded.  Is your add-in found by Inventor?– if your add-in is not listed in the Add-In Manager dialog then Inventor cannot…

  • Inventor API: Volume and surface area of the multibody part with overlapped bodies

    by Vladimir Ananyev let’s consider the part that consists of two equal overlapped bodies: + = Volume=2cm3 Area=10 cm2   Volume=2cm3 Area=10 cm2   Expected: Volume=3cm3 Area=14 cm2 Expected volume is 3 cm3.  But on the Physical property tab I see unexpected values: It looks like UI ignores bodies overlapping.  So the question is how…

  • No iProperty Change event fired for iPart row change

    <?xml encoding=”UTF-8″>By Adam Nagy If you have an iLogic rule then you can hook it up to various events – one of those is iProperty Change: Though ideally this event should fire even when the iProperty changes as a result of an iPart factory row change, it does not. It’s a limitation in the Inventor API. However,…

  • Texture Image of Asset

    <?xml encoding=”UTF-8″>By Xiaodong Liang Texture Image of Asset Question: I have made simple part and assign to one face “Norman – One-Third Running” material from “Autodesk Material Library” . Then I have run VBA sample code “Write out all document appearances API Sample” of API help. The code result does not retrieve texture image. How…

  • Manipulate Family Table of Content Center

    <?xml encoding=”UTF-8″>By Xiaodong Liang In Inventor UI, we can edit cell, add new columns to the family table. In API, there are equivalent objects and methods.  The presumption is the family has been copied to your custom library which is read-write enabled.   The demo below dumps gets the specific family, dumps all columns name,…

  • OnActivateCommand not firing for my command

    <?xml encoding=”UTF-8″>By Adam Nagy Built-in Inventor commands in general are expected to fire the OnActivateCommand event of the UserInputEvents object and set the ActiveCommand property of the CommandManager object. However, some of them do not for the following reason (which is the same reason your command might not fire it either): no interaction has been started. To…

  • Import and save non-native files

    <?xml encoding=”UTF-8″>By Adam Nagy When you import a non-native file then you are using a translator add-in to do the import. Each of them might have different options which can affect how you implement things. As shown in this blog post you can easily find out all the options available for a translator add-in:http://adndevblog.typepad.com/manufacturing/2014/02/get-option-names-and-values-supported-by-inventor-translator-addins-via-api.html  For SolidWorks translator…

  • Copy occurrences with constraints

    <?xml encoding=”UTF-8″>By Adam Nagy In the UI it’s quite straight-forward to copy occurrences: just select the components in the UI, do Ctrl+C, then click inside the Model View to make sure it has the focus, then click Ctrl+V. This copy/paste will keep the constraints between the copied occurrences in tact.  This functionality is not exposed in the…

  • WPF Window inside an Inventor Add-In

    <?xml encoding=”UTF-8″>By Adam Nagy The question could also be: how to use a WPF Window from a Class Library – which is not specific to Inventor programming. However, here is how you can do it. 1) Create an Inventor Add-In – e.g. using the Inventor Add-In template from File >> New >> Project… 2) Add a WPF User…

  • Pass parameters to a VBA macro from an iLogic Rule

    <?xml encoding=”UTF-8″>By Adam Nagy Though RunMacro functionality is only listed in the iLogic function browser tree without the argument parameters: RunMacro(projectName, moduleName, macroName)  … it seems it can be used this way too: RunMacro(projectName, moduleName, macroName, argument1, argument2, etc) – in which case argument1, argument2, etc. will passed as the VBA macro‘s input parameters in the same order. It was…