Sunday, August 28, 2016

Creating an Inventor iFeature - Part 2

I will continue with the creation of an Inventor iFeature by covering how to edit existing iFeature, how to add user instructions, which can be displayed during placement, and how to create a table driven iFeature.  If you have not previewed the first article, on the creation of an iFeature, you can find it here.

I will continue with the iFeature from the first article which creates an internal bore with keyway by entering the desired bore and keyway width.
You can open an iFeature inside Inventor for editing.  The file extension is .IDE and normally is in the folder designated in your Inventor Application Options.  Once opened you will have three main icons across the main panel.  We will use the "Edit iFeature" command first.  

After selecting the command you will be presented with the Edit iFeature dialog box which looks very similar to the one used to create it.  You will notice that you are restricted in the things you can edit.  Feature geometry cannot be added or deleted from the iFeature which is why I mentioned in the first article to save your original model so if you have to change the iFeature geometry, you erase the old one and create the iFeature from scratch.  If you need to change the name of the iFeature, prompts, limit designation and default values, all can be accomplished here.  After making any changes select "Apply" to finish then save the iFeature.

Before I close the iFeature, I would like to add a Microsoft Word help file so users may open it during iFeature placement if they are unfamiliar with the required picks and clicks.  Click on the Tools tab then the "Import Object" command on the Insert panel.


In the Insert Object dialog box I will select the "Create from file" option then "Browse" to a previous created Microsoft Word document.  Select "OK" to finish.



This will place the document as a 3rd Party attachment in the Inventor Browser.  One last step is required to designate it as the help file for the iFeature.  Expand the entry and then right click on the "Embedding 1" entry.  Select "Placement Help" for the context menu to place a check mark beside it.  Save the iFeature file when finished.


The next time you place the iFeature in a model, you can activate the help file by selecting the icon shown below.  The help document will be open in a new window using Microsoft Word.  Of course you must have Microsoft Word installed on your computer if you use this process.  Other types of documents my be used PDF, Web Pages or text files.



I saved the best for last.  This iFeature is a great candidate for making it table driven.  All internal bores have standard width keyways.  The current iFeature requires you to enter the correct keyway width for the desired bore.  You may know them by heart or you may have to look them up each time you use the iFeature.  The internal bore diameter and the keyway width can be added to a table from which you can then simply select the desired bore and the iFeature will select the matching keyway width during the iFeature placement.  Open up the iFeature again and select the "iFeature Author Table"command.  This will open up the iFeature Author dialog box.



You will notice all of the model named parameters have been automatically added to the table.  I am only concerned with the "Bore" and the "Keyway_Width" columns.  Right click on the first entry and select "Insert Row".  Edit the column entering the next standard bore and matching keyway width.  You can repeat this process for as many standard bore diameters as your company needs.



You can always edit the iFeature at anytime to add or remove bore and keyway entries.  The next step is to assign as many column keys to the table as desired.  Designated key columns are the only ones displayed during iFeature placement.  I will  specify the "Bore" column as my first and only key column.  Right click on the column title and chose the key number desired.  Select "OK" to close the dialog box and save your iFeature.  One thing you need to notice is once the iFeature becomes table driven the "Edit iFeature" icon is not available.  All available changes will be made from the iFeature Author Table command.  Also the "Edit using Spread Sheet" command becomes available which allows the editing of the iFeature table using Microsoft Excel if you have it available.


The next time you place the iFeature in your model you will only see the "Bore" listing which you can select from and it will automatically apply the correct keyway width to the model.  The bore listing is also available if the iFeature needs to be edited to a different bore value.


As you can see Inventor iFeatures are a valuable asset to your design process both for speed of placement but accuracy making sure the proper keyway is always used.

Friday, August 26, 2016

Creating an Inventor iFeature

When designing in Inventor there will be part features that you will reproduce over and over.  These include features such as wrench flats, internal and external keyways, setscrew flats and many more.  iFeatures in Autodesk Inventor make placing these repetitive features easy and extremely quick.  Not only can they be used to add features to an existing part but they can be used to create the part from scratch.

I would like to use this article to explain the process of creating an iFeature for placing an internal bore with a keyway as shown in the model below.


The first step is to create the model with the features you will be capturing in your iFeature.  I have a few suggestions that I find helpful when creating the model.  These are:


  • Keep the sketch as simple as possible.
  • Avoid reference geometry
  • Add descriptive names to your parameters as you create the model.  These will automatically populate into the iFeature.
  • As in all good Inventor modeling, keep you sketch related to the origin of the part.  In this model the bore sketch is centered on the origin of the part.
  • Keep your sketch constraints to a minimum.  The only one I normally use is the coincident constrain to tie the sketch center to the center of the origin.  Use parameter dimensions instead.
My sketch for this iFeature is shown below.  I have turned on dimensional expressions to show the parameters used in the iFeature.  The parameter table is also show which has been filtered to only show key parameters.





 The keyway broach depth is calculated by determining the length of the right triangle leg, indicated by the red arrow, and then adding half of the standard square key plus the radius of the bore.  Inventor has a great calculator and a versatile set of mathematical operations and functions built right into the software.  If you are not familiar with these, take a look at this Autodesk Knowledge Network article.  The parameter Keyway_ Depth equation is explained below.



Once you have completed your sketch, extrude the bore and internal keyway as a single feature using the "All" extents option.  This will make sure the iFeature will create a bore and keyway completely through any thickness part.

Before you create your iFeature make sure you save your master part.  This is not required by Inventor but if you need to edit the iFeature geometry it is a lot easier to recreate the iFeature from a modified model than editing the iFeature geometry itself.

When you are ready select the "Extract iFeature" command located under the Manage tab in the Author panel.



In the Extract iFeature dialog box the first thing you want to do is name the iFeature.  Spaces are not allowed.


The next step is to select the model feature(s) you want to include in the iFeature.  Looking at the browser, left click on "Extrusion 2" which will add it into the iFeature dialog box.  Do not select extrusion 1 because we are not interested in the addition of the base feature although this could be a possible option.



Take note that the iFeature prompts will automatically be configured using the model parameter names.  You can change them if you desire and in my case I will rename some that will automatically be calculated to help the user avoid them.  You may also wish to rearrange them by using a left click and drag routine.  We will not be using the "Limit" column in this iFeature but please explore the possibilities it offers.



The last area of the dialog box is the Position Geometry where there is only one entry at this point.  Think about what geometric features you will need to select in your model to place this iFeature correctly.  You will need to specify the profile plane or model surface to begin the bore and keyway, this has been already added.  You will also need to select the center of the model to place the bore and keyway, this one must be added.  To accomplish this highlight the Reference Point 1 in the Selected Features tree and use the indicated icon to add it to the Position Geometry box.



The order of the Position Geometry box can be altered as desired using a left click and drag method.  You may wish to edit the Prompts to more clearly describe what the user must select when placing the iFeature.  I my case I have done this.



You are finished with the iFeature creation and you need to save it.  If you select the "Save" icon, Inventor will automatically direct you to the location defined in the "Application Options".  You can use this or place it to a folder of your choice.  I would suggest selecting a folder within your project file scope to avoid problems down the road.  If you named the iFeature the save routine will automatically use this name.  Below is a screen shot of the Application Options showing the iFeature tab.



The last thing is to take you new iFeature for a test drive.  Open up or create a new part and then select the "Insert iFeature" command which is located on the Manage tab on the Insert panel.




Select the iFeature for the catalog dialog box which will then bring up the Insert iFeature dialog box.  The first Geometric Position prompt is automatically highlighted and the custom prompt I entered is visible.  After selecting the two Geometric Positioning requirements select "Next" to continue.  



Fill in the bore and matching keyway width and modify the standard engineering clearance amount if required.  This iFeature does not require any supplemental sketch modification so select "Finish" to place the iFeature.  




If you should need to change the placed iFeature bore and keyway width, right click on the iFeature in the browser and "Edit iFeature" from the context menu.  This will display the iFeature parameters dialog where you can make required size changes.



At this point you should be patting yourself on the back and also realizing the potential benefits of using iFeatures.  In  the next article I will will address editing and creating a table driven iFeature.  We will use the same one you just created and alter it so you can select the desired bore and matching keyway width from a drop down list.

Tuesday, August 16, 2016

Methods of Sharing Parameters Between Inventor Parts - Part 3

In this article I will cover the last two methods of sharing parameters between Inventor parts.  If you have not preview the first two articles, the first one can be found here and the second one here.  The third method is to "Export Parameters".  I will be using the same model as before with two model parameters and one user parameter.



In the original model you can export parameters to an .XML file which you can later import into another part model.  These two commands are found under the Manage tab in the download menu on the Parameters panel.



Selecting the "Export to XML" command will allow you to save the current part parameters to a file of your choice.  After saving, you can use the "Import from XML" command to a the exported parameters to a new part or an existing file.  The imported parameters will be added to the part as User Parameters.  Make sure you are aware that this includes all parameters from the part that the export XML command was executed.  This is not normally a problem because of the "Purge Unused" command inside the Parameters dialog box.  Once you have used the parameters which were imported, this command will allow you to purge all unused parameters from the part.


Please note that this process removes all Key and Export Parameter check marks from the original exported parameter table.

The last method is "Save As".  This may seem an obvious and useless method but can be quite valuable if you are creating multiple similar parts. The parameters from the original part are copied across into the new part created using the "Save As" or "Save Copy As" commands.  One advantage of using this method is the existing Key and Export Parameter are preserved.   If you remove a part feature, the model parameters, for that feature or sketch,  are removed but user parameters are maintained.

So there you have a variety of methods to share parameters between Inventor part files.  Each one has pros and cons and serve various purposes.  I suggest that you practice with all of these and find the best situations for each.  Also try using them between assembly files.  You will have success with all except the "Derive Part" command which is to be expected from the command name.

Tuesday, August 9, 2016

Methods of Sharing Parameters Between Inventor Parts - Part 2

In this article I would like to continue with the methods of sharing parameters between Inventor parts.  If you missed the first article, I suggest you click here to review it before continuing.  The second method of sharing parameters is linking parameters between parts.  The process begins inside the Inventor Parameters table which can be opened from the Quick Access Toolbar, if it is enabled, or from the Manage tab on the Parameters panel.

I am using the same part model from the first article which contains two model parameters and one user parameter.


I will next create a new part and open up the Parameters table.  At this point it is empty because I do not have an saved parameters in my Inventor part template.  I will click the "Link" icon at the lower left of the table.  At the bottom of the resulting Open dialog box I have selected "Inventor Files" as my file type and selected the Hole Plate,ipt as my source file.  Select "Open" to continue.


The Link Parameters dialog box opens and you have to opportunity to select which model parameters you wish to link with the new part.  The small green arrow means these parameters have been exported from the referenced model.  Select the gray ball beside each parameter to enable linking and select again to return to a non-linked state.  I have selected all three parameters.  If you remove the check mark beside"Show All Parameters" only the exported parameters will be available for selection.  Select "OK" to continue.


The selected parameters will appear under User Parameters in the Parameters table listed under the path of the file they are referenced from.  They cannot be edited in this state which is indicated by the gray background and will automatically update if the source file parameters change.


Starting a new sketch, you may wonder how to use the parameters directly in the sketch dimensions.  The familiar ">" symbol on the right hand side of the dimension box is not available which would allow you to select model parameters from a list.  A little trick to make the selection symbol appear is to type the "=" key, then you can select parameters from the drop down list.


After you have used the linked parameters, they will appear under the Model Parameters in the Parameters table.  


The Lgth and Width parameters are still linked to the Hole Plate.ipt and will update automatically if the parameters change in the referenced model.  There will be times when you desire to break the link between the new part and the referenced file.  This is easily accomplished by two methods.  The first is to open up the Parameters table in the new part, right click on the linked file path and select "Delete Folder".  This will break the link for the Lgth and Width parameters turning them into editable User Parameters since they have been used.  The Hole_Dia parameter will be lost because it has not been used in the new part.



If you desire to break the parameter link for one or more parameters and retain the parameters that have not been used, right click on the reference file and select "Edit Folder".   In the Link Parameters dialog box you can deselect the parameters you which to break the link.


The resulting Parameter table is shown below.  The Lgth and Width parameters become User Parameters independent of the referenced part and the Hole_Dia remains linked and available for use in the new model.


In the next article I will cover the other two options for sharing Inventor part parameters.


Monday, August 1, 2016

Methods of Sharing Parameters Between Inventor Parts

There will be times when you have an Inventor part and would like to share or copy the parameters into another part for use in size or placement dimensions.  There are a variety of ways that Inventor can accomplish this all of which will transfer the parameters between parts but each method will treat the parameters differently.  I will describe these four methods and explain the resulting parameters.  These four methods are:

  1. Derive Part
  2. Link Parameters
  3. Export Parameters
  4. Save As
My model is a simple plate with four equal holes.  The Lgth and Width are "Model" parameters while the Hole_Dia is a "User" parameter.  The parameter table for the part is shown below.

Using the "Derive" command is probably the most used and versatile method of sharing parameters between parts.  When a new Inventor part is created, the "Derive" command is located  under the 3D Model tab in the Create panel.


I will not attempt to explain all the options available in this command but will concentrate on the deriving of parameters from one part to another.  In the Derive Part dialog box the parameters of the part being derived from are listed at the bottom of the tree.  You have the option to select which ones you wish to "derive" from the original part into the new part parameter table.  In this example I have selected the two model parameters and the one user parameter by selecting the circle beside each until it shows a "+".


By default these parameters are linked to the original file.  If these parameters are changed in the original file, the new part derived parameters will update to match.  This behavior can be suppressed or prevented by modifying the "derived" component settings in the browser.  Right click on the derived component and choose either "Suppress Link with Base Component" or "Break Link with Base Component".  It is important to remember the break link cannot be reversed once the part is saved.


All of the derived parameters are shown in the new part as User Parameters.  The gray background indicates that they are linked and the base component is listed at the top.  It is important to remember that additional parameters may be added to the derived part which are unique to the derived part and are not dependent on the base component.  These can be either model parameters, user parameters or both.

If the derived link to the base component is broken, the derived parameters are released and can be edited as needed within the new part.  Using this method you can create a similar but different parts easily.  


This article is getting a bit long so I will cover the other three methods in another article.