Originally Published 8/29/2013
When using Frame Generator in Autodesk Inventor®, many people will incorporate the value of the member length (parameter G_L) in either the part number or description field in the BOM. I was asked online how to use the value of G_L without that pesky unit suffix, as in: 250mm, 24 in etc. If your drawing states somewhere that all dimensions are in inches, or millimeters… there is no need for the unit string. There are a number of overrides that can be used on individual parts, or BOMS that will rid the document of this string, including some ilogic that I saw… I don’t do ilogic, at least not yet.
I wanted to get rid of this string at the root so it would never show up in the first place. BTW… this tip will work for the unit string of any parameter in a model, not only G_L. So… as posted in the Autodesk ® Discussion Forums, here is what I did to get rid of it.
In Inventor go to Open From Content Center, then select the family you want to change. Select any member of that family, it doesn’t matter which one. I tend to select a medium sized one just so it’s easier to play with. Open it “As Custom” and give it a length that you can see to work with. (.001 is usually the default!)
|Open From Content Center|
|Open As Custom|
Once you have the new custom part opened, go to Parameters. Find G_L, then hover over the Equation value for it, right click and select Custom Property Format:
In the dialog box that opens, uncheck the box for “Unit String”. This will remove the units from the tail end of the length. Note the preview at the top.
Hit OK, then Done in the parameter window. Save the part. Remember where you saved it, this is important. Now go back to the Content Center and find that family again. (Manage\Editor) Right click on the family in the Editor window and select Replace Family Template.
|Replace Family Template|
A file window will open, navigate to the file you just modified and select it by double clicking it. Inventor will chew on it for a minute or two depending on the size of the Family, but SHOULD come back with a “Successful” replacement. The changes you made to that part are now propagated to the entire family, and any steel used from that family will no longer show the unit string when G_L is shown anywhere.
This process needs to be repeated for any families that you want to make this change to.
From another user question in the forums, I thought I would add that this can also be used to set overall units, and to set leading and trailing zeros on units.
“Autodesk® screen shots reprinted with the permission of Autodesk, Inc. Autodesk ® , AutoCAD ® , DWG, the DWG logo, Vault®, Autocad Electrical® and Inventor® are registered trademarks or trademarks of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and other countries.”