Have you ever tried mixing your units in Inventor parameter equations?

For example, you have a pattern of features which you would like to change depending on the length of a part:

You may have tried something like **pattern_qty**=**length**/2

Because **length** has units of inches and **pattern_qty** is unitless, the equation will turn red as Inventor does not understand the concept.

The trick is to strip the equation of its units by multiplying **length** by **1ul/1in**.

So, in the example shown the equation should read pattern_qty=(length*1ul/1in)/2.

Or, if you would like to round the resulting value down to the next whole number, then:

Pattern_qty=floor((length*1ul/1in)/2)

Have fun.

Brent.

### Like this:

Like Loading...

*Related*

Tags: Autodesk, Inventor, parameter, strip units

This entry was posted on November 12, 2009 at 3:55 PM and is filed under Manufacturing. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.

## Leave a Reply