I adapted an API sample to work with iLogic. This utility removes assembly appearance overrides in your assemblies, as shown below. Here's the code: Public Sub RemoveAssemblyOverrides() ' Get the active assembly document. Dim asmDoc As AssemblyDocument Set asmDoc = ThisApplication.ActiveDocument ' Iterate through the objects that have an override. Dim obj As ComponentOccurrence For... Continue Reading →
Get Control Definition Names – iLogic Tool
By Jhoel Forshav For this blog post I thought I’d share the code for an iLogic tool I’ve written to easily find the names of control definitions. I’ve seen on the Inventor Customization Forum that users from time to time ask about the these names in order to execute them through the CommandManager (ThisApplication.CommandManager.ControlDefinitions(”ControlDefinitionName”).Execute). So,... Continue Reading →
iLogic Quick Tip: Delete Sick Dimensions
Have you ever wanted to delete orphaned or unattached dimension on an Inventor drawing? The good news, is that it's really easy to do, and Autodesk have provided a sample VBA program to do this in the API help files. I've converted this to work with iLogic, see the GIF below: Here's the iLogic code... Continue Reading →
iLogic: Supress Constraints & Ground All Components
Several months back, I created an iLogic routine that will delete all mates & joints in an assembly, and ground all of the components. I was asked if I could do something similar for a client. The requirement was to supress all mates and joints, then ground all of the components in the assembly. The... Continue Reading →
iLogic Quick Tip: Launch Drawing From Model
I recently saw a question, where an Inventor user wanted to open a drawing from a model, using iLogic. The code below will achieve this, the trick here is that your model (.ipt or .iam) needs to be saved first, so that it has a file name for iLogic to use. Here's the code, it... Continue Reading →
Running Inventor in the Cloud – with Forge
Autodesk have now retired Configurator 360, meaning that if you want to configure Inventor files in your browser, you will need to move to Forge, and specifially the Design Automation API for Inventor. To help move you over to Forge, Autodesk have published open source code on Github which will allow developers on Forge to... Continue Reading →
iLogic: Show Overridden Dimensions
By Dutt Thakar I have written a handy iLogic utility to check if any dimensions on a drawing are overridden. It scans all of the dimensions on the sheet and checks whether they are overridden or not. If any dimensions are overridden, it will highlight them in red and then show the user that how... Continue Reading →
iLogic – Occurrence Selection Filter In Drawings
Guest Post by Jhoel Forshav When developing iLogic rules, it’s quite common that you’ll need to prompt the user to pick something from the model window. For example, it could be a face, a component occurrence, a model edge etc. For most of the different types of selections your code might require, there’s a corresponding... Continue Reading →
iLogic: Setting Extra Layers In DXF Exports
Guest Post by Jelte de Jong Have you ever wanted assign specific profiles in your flat pattern to a custom layer before exporting them to DXF? Click me for HD version I have been working on updating an Inventor add-on which we use at work. The tool exports sheet metal flat patterns to our CAM software.... Continue Reading →
iLogic: Export All Flat Patterns To One DXF
Guest Post by Jhoel Forshav Since this is my first guest blog post on the Unofficial Inventor blog, I’d like to thank Clint Brown for inviting me to do this. Those of you who visit the Inventor Customization Forum from time to time may have seen my name before, as I’m a very active in... Continue Reading →
You must be logged in to post a comment.