Working with parameters

Working with parameters

bronc3buster842001
Advocate Advocate
938 Views
6 Replies
Message 1 of 7

Working with parameters

bronc3buster842001
Advocate
Advocate

How to use in parameters with unitless parameters and not get screwed up results.

 

From what I have figured out is unitless is actually in cm. 

The parameter conv is the conversion to make lengthofthread and numofcoils work together. Seems there should be an easier way to make the two work together. so basically for every inch of lengthofthread, numofcoils needs multiplied by 10.

 

So am I missing something on how to take a in parameter and a unitless parameter and make them work without the extra parameterUntitled.png

0 Likes
939 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Your 'lengthofthread' parameter is in inches and the 'conv' parameter is defined as unitless. The formula for 'conv' results in 'conv' being in inches rather than unitless. The easiest way to make it work would be to define 'conv = lengthofthread * 10ul / 1 in'. It's either as simple as that, or I don't understand your question correctly.

0 Likes
Message 3 of 7

bronc3buster842001
Advocate
Advocate

Ok that works. Just didnt know to divide by 1in again

0 Likes
Message 4 of 7

Frederick_Law
Mentor
Mentor

Just follow the equation:

NumberCoil (ul) = CoilLength (in) / pitch (in)

Don't need to convert units.

0 Likes
Message 5 of 7

SBix26
Consultant
Consultant

As others pointed out, the issue is with the units.  Here's possibly the easiest way to resolve this:

Parameter Units.png

 

The units of your pitch parameter should really be unitless/inch (threads per inch, right?).  That makes the units come out just right, without messy conversion stuff involved.


Sam B
Inventor Pro 2019.1.2 | Windows 7 SP1
LinkedIn

Message 6 of 7

bronc3buster842001
Advocate
Advocate

See I didnt know you could do that. I was under the impression the units had to be one or the otherI really just started playing around with using parameters..

 

0 Likes
Message 7 of 7

johnsonshiue
Community Manager
Community Manager

Hi! Yes, you can combine units in an expression. Unit in parameter is treated like part of the equation. All parameters in Inventor require a unit (or unitless unit).

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes