This post is a follow-up to the Assembly Automation Tutorial for Inventor iLogic post where we added the fifty-some odd lines of iLogic code to our Inventor Assembly. Today’s post will attempt to explain that code.
This post was supposed to be published yesterday, but I spent most of the day screwing around with a plugin that will eventually allow me to post Inventor iLogic code with the proper syntax highlighting that can be copy & pasted right from the webpage into your iLogic Code Editor without intermediate programs adding special characters that screw up the code. I’ll be posting a bit more on that in the next post. Until that is up-and-running, I’ll use images…

The first two lines of code (above) are creating variables. The Nut_Offset variable gets its value by reading the Nut_Offset parameter in the Hanger Bolt:1 part. The second variable, Overall_Size is reading two local parameters (Blue) and multiplying them against each other to get its value.

I left off in the
When writing iLogic code in Autodesk Inventor, you need to test the code constantly to assure that it is behaving as expected in your model. Some of what is happening would normally be hidden from view. The answer to that problem is to have a semi-transparent model while testing. Here’s how to do it….
We will be using the 


