Layne env: ypt-ketiv

by Cameron Whetten, October 30, 2020

Changing Content Center Parts in Inventor with iLogic

Back to Blog

Content Center Parts in Inventor

The iLogic snippet to add a Content Center in Inventor part is really powerful. Not only does it make the placement process so easy, it also lets us change the size of a content center part that has already been placed.

This is a follow-up to our recent AVA session “Automated Assembly Generation with iLogic”, so be sure to check that out.

The video below demonstrates how this works, so take a look at it and then we will break down the details of the iLogic code below.

Below is the iLogic rule from the video.

Quick Summary for iLogic with Content Center in Inventor

Lines 1-2 exist to make sure this rule is automatically triggered when the size parameter is changed. The local variable “trigger” serves no other purpose.

Lines 4-8 create some local variables for storing values that will be used later in the rule. These values are calculated from parameters in the bracket part. As the bracket changes size, the new values need to be extracted from the bracket part.

Lines 10-15 place the bolt part from the content center using the iLogic AddContentCenter snippet. The AVA video explains this snippet in more detail, and some additional notes are given below.

Lines 17-18 constrain the bolt to the first hole in the bracket. See the AVA video for more info on this iLogic snippet.

Lines 20-25 create a rectangular component pattern using the iLogic pattern snippet. The AVA video gives more detail on this iLogic function.

Adding the content center part

When adding a content center part, the easiest way to make sure you are choosing a unique row from the family table is to use the key columns in the snippet. This is demonstrated in the AVA video. But it is possible to use any column, and there are times when a non-key column might be a better choice.

For example, this rule has parameters that are driving the diameter and length of the bolt. These parameters are numeric, decimal values. But the key column for bolt diameter is a text string which represents the fractional diameter value:

Instead of writing some complex string function to convert a decimal value into a mixed-number fraction, I can simply choose a different column for the bolt size that uses decimal numbers. Looking at the table view tab for this family, I find a column named Nominal Diameter. Hovering the mouse over the column title gives me the unique internal name of this column: THREADDIA.

This column represents the same data as the key column, but in a more convenient numeric format.

So, looking at line 13 in the code, you can see that the column names I have chosen are “THREADDIA”, “NLG”, and “TS”, and their values are boltDiameter, boltLength, and “UNC”, respectively.

“NLG” is the internal name of the nominal length key column. Since the “NLG” and “THREADDIA” columns contain numeric decimal values, I can use my boltLength and boltDiameter variables in the snippet.

Conclusion

If you have any questions about any of the information we went over today or anything related, feel free to reach out to us and we will help you out. You can also email our lifeline team at lifelin@ketiv.com or give us a call at 1-866-465-3848.

 

 

Back to Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

More stories from KETIV

Blog

Attention All Revit and Autodesk Users – Security Update Required by August 3rd, 2019

Transport Layer Security (TLS) version 1.0/1.1 is vulnerable to man-in-the-middle (MITM) attack that can compromise data exchanges. This means, if you have a single-user subscription using the software versions listed here, then you need to update…

Read post
Blog

What's New in Fusion 360 - Design & Manufacturing

What’s New in Design & Engineering for Fusion 360 There has been many, and I mean many new features and tools that have been released the past 3 months for Fusion 360. And since you are always on the latest and greatest version of Fusion,…

Read post