Autodesk Inventor - Ipart: Beyond The Basics
Autodesk Inventor - Ipart: Beyond The Basics
This is the second in a two-part Skill Builder series that explore iParts. A previous
exercise covered iPart basics. This exercise covers controlling color, material,
feature suppression, multiple keys, and using Microsoft Excel functions to edit the
table.
Scenario
The handle has:
Three sizes
Small, Medium, and Large
In This Exercise
In this Skill Builder, you use some of the advanced configuration and editing tools for iParts. In this exercise, you learn to:
1 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
Workflow Overview
Download the file dual_mount_handle.zip
Extract the files dual mount handle complete.ipt and dual mount handle iPart.ipt
Prerequisites
Download
The zip file contains two Autodesk Inventor R2008 part files named dual mount handle complete.ipt and dual mount handle iPart.ipt.
The part file dual mount handle complete contains a finished example of the iPart using the steps covered in this exercise.
2 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
Unsuppress the feature named Tapped Hole. The iMates associated to this feature are unsuppressed as a result of the operation. Use
an Undo command to restore the part to the previous state, then unsuppress the features Thru Hole and Counterbore. The iMates
associated to these features are unsuppressed while the iMates associated with the tapped hole are suppressed. Execute an Undo to
restore the part to the previous state. Notice that the iMate states are dependent on the parent feature state.
When an iPart is created, both named parameters and features that have been suppressed are automatically added to the table. A
feature that is not suppressed prior to creating the iPart can be manually added to the table via the Suppression tab in the iPart Author.
Features that are included in the table can be computed or suppressed on a row by row basis. You can create iParts that do not share
all of the same features.
1. Click Tools > Create iPart to open the iPart Author dialog box. The suppressed features were added to the table along with the
iMates associated with them. It is not necessary to control the iMates from the table. Inventor suppresses or enables them
depending on the status (Suppress/Compute) of the parent features in the table. Select all the table columns labeled as iMates
(IM0001, IM0002, etc.), right-click, and select Delete Column from the context menu. Delete the column Handle_Rad. It is not
necessary to control this variable in the iPart. It is driven by the value of Major_Rad (Major_Rad*2 ul).
3 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
2. Navigate to the Threads tab and add Tapped Hole:Designation (M5x0.8) to the columns to control the tapped hole size.
3. Navigate to the Properties tab, expand the Physical entry and add Material to the columns.
Note: The part was previously saved with the material Aluminum-6061 assigned to the Physical iProperties.
4. Next, you will add a column for Color control. Navigate to the Other tab in the iPart Author. Choose Click here to add value, and
then name the new entry Color. Right-click the new entry in the Other tab or alternatively the column header, and select Display
Style Column from the context menu. The column can be used to designate the color for each row of the iPart. In the column
under Color titled New Item, enter 6061 Small which is a locally saved color style.
5. Choose OK to exit the iPart Author dialog box. We will finish configuring the iPart in Excel.
6. Save the file.
4 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
Before we proceed with the exercise, there are some things to be aware of concerning the way Excel treats cells with a unit designation.
The best way to describe this is by showing two workflows to create an equation in Excel in which the variable Height (E2) is equal to the
value of Length (C2) x Width (D2).
3. Before starting the function in Excel, delete the mm value from cells C2 and D2. This converts the cells to a number format without
having to use the Format Cell function. An easy way to tell if the cell was formatted correctly is to observe the cell justification. If it
changes from left to right, the cell was formatted correctly.
4. The next time you use Edit Table, the column managed by Excel is shown in red and cannot be edited outside of Excel.
1. Appearance in Edit Table (Length and Width do not have unit designation):
5 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
3. In Excel the fields for Length and Width contain a small triangle in the upper-left corner which indicates that the field is a number
currently formatted as text. To use these cells in an equation, you must change them to a number format.
4. Once the cells are formatted as numbers, the equation will succeed.
5. The next time you use Edit Table, the column managed by Excel is shown in red and cannot be edited outside of Excel.
Some of the following steps contain explicit cell designations (for example C2). Your
cell numbers may not match if you used a different sequence to create the iPart.
This will not impact the outcome. If your cell numbers dont match, follow the text
describing the field name and enter the appropriate cell number.
2. When Excel opens remove the mm designation from the cells for Handle_Mtg (C2), Minor_Rad (E2), and Thru_Hole (I2). It
6 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
converts these cells to a number format so they can be used in a formula. Note that when you remove the mm designation the
cell justification changes from left to right.
1. To the right of the column labeled Color<style></style> (P1) enter the text Overall_Length to define a new column. We will use
this column to calculate the outside to outside width of the handle. In the empty cell below the column header (P2) we will calculate
the value of Minor_Rad x 2 plus the value of Handle_Mtg.
When you finish, the calculated value should display in cell P2 as 106.5
We will now create a new column that uses the calculated value from column P and
some plain text to create a catalog description for each row. This joining is referred
to as a Concatenate operation.
The letter M plus the value of cell I2 (Thru_Hole) followed by a lower case x, then the value of cell P2 (Overall_Length) followed by
the minus character (-) and ending with the value of cell N2 (Material). Note that all text characters have a quotation mark ()
before and after the character entry. The cell entries have none.
We will now add 5 more rows to complete the handle iPart factory.
5. Navigate to the left-hand side of the Excel spread sheet. Highlight the lower right corner of cell A2, press and hold the left mouse
button and drag down to cell A7 for a total of 6 rows. Note that Excel renumbers each cell appropriately.
7 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
7. Configure each row as follows. Do not enter any information for Overall_Length and Catalog. We will use the same drag and
populate technique used on the file and part number cells with these cells. Do not enter the units for numbers in the new rows. If
you do, the formulas will not work until you remove the units and format the cell as a number.
Thread_Depth 6 6 8 8 10 10
Notes:
It is not necessary to type the entire word Compute or Suppress. All that is required
is a capital C or a capital S. If you type the entire word, it is case and spelling
sensitive.
You can also use a 1 for Compute and 0 for Suppress if you plan to exchange this
iPart between different Inventor language versions.
The information you enter for the color and material columns in the table must exist
in the local or external style library and the spelling must match the style name.
The exercise file contains the following local color styles: 6061 Small, 6061 Medium,
6061 Large and ABS Blue, ABS Red, and ABS Yellow.
8 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
Thru_Hole 5 5 6 6 8 8
Tapped_Hole Compute S C S C S
Counterbore Suppress C S C S C
Color 6061 Small ABS 6061 Medium ABS 6061 Large ABS
Blue Red Yellow
9. Save and close the Excel file. In the Inventor Model browser select Edit Table from the context menu. Notice that the data you
entered in Excel is painted red in the iPart Author. This means that these fields cannot be edited in the iPart Author, they must be
edited in Excel.
10. Save the file.
There are multiple ways to check your work for errors. If you are using Edit Table, select the Verify button at the bottom of the iPart
Author dialog. Any cells containing errors will highlight in yellow. If you are using Edit via Spread Sheet, Excel informs you of any
errors in the cells.
Another method of testing the design is to build the iPart to each row value by double-clicking each entry under Table in the browser or
setting each row as the default in Edit Table. This method has the added benefit of visual inspection of the resulting part. For example, if
the row contains a hole to be suppressed but the hole is present when the row is active then there is an error in the table. These types of
9 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
Navigate to the Model browser and expand the Table and the iMates areas. Double-click each row in the table to build the part to the
values in the row and visually check for configuration errors in the iPart.
Notice the iMates enabled/suppressed state is dependent on the state of the parent feature. Also, the color of the part changes with each
row activation.
Make sure that dual mount handle iPart-01 is checked as the default before moving on.
1. Right click the Table and choose Edit Table from the context menu.
2. Navigate to the Catalog column, right-click the column header and select Key 1. You can also navigate to the Other tab and
right-click the Catalog entry to assign the key.
3. Repeat these steps to assign Material as Key 2, and Handle_Mtg as Key 3. Click OK when finished to close the dialog box.
Expand the Table in the browser.
Notice that assigning keys changes the appearance of the table entries in the
browser.
No Keys:
With Keys:
10 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
You can switch the browser display between these two representations by right-
clicking the table in the browser and setting the display preference from the context
menu.
If the browser display is set to List by Keys you must double-click the lowest entry
(last key) for the row in the table to rebuild the part to that row.
11 of 12 1/21/2010 6:57 PM
Autodesk - Autodesk Inventor Services & Support - iParts - Beyond the... http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=109215...
Summary
In this Skill Builder you:
Used a supplied part to create a table driven iPart file that contained six definitions each a specific size, color, and material.
Computed and suppressed individual features.
Controlled the material and color definitions of different iPart members.
Used Excel to modify the iPart table. Specifically:
Used Excel functions to calculate overall length.
Used the Excel function Concatenate to combine text and values from different cells to create a new entry for the catalog
description.
Create multiple keys to simplify selecting the correct part when you place the iPart in an assembly.
Inserted different versions of an iPart with multiple keys in an assembly.
12 of 12 1/21/2010 6:57 PM