Hi all,
I'm making a parametric part where the connection height is based on a calculation that may not result in integer values (e.g. 6.75"). I figured out a formula that uses the mod operator (%) (available in the Model Parameters Calculator) and rounds a number to its nearest value: N+((N%1)-(2*((N%1)%0.5))) . "Hooray!" I thought, since this formula works perfectly inside the Model Parameters dialog box (see SS below). However, when I try to look at the Size Parameters, I get a message that says "One or more calculated values failed", and consequently, my part can't be validated and used. Through some troubleshooting, I'm 99.9% sure that it's because of the % operator I'm using in the Model Parameters.
My question is: Is there a certain way I need to format the % operator so that it doesn't cause an error in the Size Parameters? Or, know of any ways to round the number without using %?
Any ideas are appreciated.
Thanks,
Brad