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. The next
snippet of code (above) creates a new variable