Mixing and Stripping with Inventor

by

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:

stripping units 1

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.

stripping units 2

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) 

stripping units 3

Have fun.

Brent.

Advertisements

Tags: , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: