I;m trying to make a "smart" part using key parameters and equation. But i can not seem to get 2 parameters to divide by each other. it should come out to 3 but its red and give me some random number.
Solved! Go to Solution.
Solved by SBix26. Go to Solution.
Solved by JDMather. Go to Solution.
Do you want the result to be a unitless (ul) number (then set to ul rather than in)
or do you want the result to be inches (in) then multiply by 1in.
Designation of Units
Inventor is "units aware", and dividing inches by inches gives a unitless number; however, the units designated for the parameter in question is inches. I suspect that you actually want it to be unitless, so right click on the units in the NUMBER_OF_REBAR (or whatever its name is) row and select unitless (ul).
Now, if the NUMBER_OF_RE... parameter is actually calculating a specific number of features, parts, etc, then this will need to be an integer (no digits after the decimal), so you will also need to add a function to round or remove the fractional part of the result; check out the floor, ceil, and round functions.
Sam B
Inventor Pro 2019.3 | Windows 7 SP1
LinkedIn
Hi, thanks for the heads up on this issue.
I had a value and wanted to divide by a dimension value, thanks for reminding me that divide will lose its units, so I did this isolate(25000 ul / d1307;ul;mm) to put it back to mm.
Hope this helps others with the same issue.
That's what the isolate function is for, yes! But it's generally even easier to (in your case) multiply by 1mm to get the units you need. Likewise, when applying functions that require a unitless value (square root, for example) to a dimensional value, you can simply divide by 1mm for the function, then multiply at the end to regain the units.
Sam B
Inventor Pro 2024.2 | Windows 10 Home 22H2
Can't find what you're looking for? Ask the community or share your knowledge.