I am trying to write code to bring a part in when the calculation is less than an certain integer. The code editor says it is correct but the rule does not function. It brings it in on every occasion. Can some one tel me where I went wrong? Thanks,
If Check Box is false I don’t want the part coming in. I am new to C# and learning as I go. The convert intergers are reading other dropdown box Values in the CFG. So I don’t know how to do the temp variables. I will look into that, Thanks,
It is a bit odd to be setting input values in the Keep When rules - usually you would do that in the configuration session (either on a combobox field change or a page event) so that it can be displayed. Then your Keep When rule expression simply becomes:
I made some assumptions that you were trying to include the checkbox in your expression since this is a method rule. I would use this and avoid the try / catch if you can.
I have two drop down values that use the calculation to figure the quantities for Row Units by Barwidth and Row spacing.
So I have a Part (Dist) that needs to come in if the row units are less than 13 and a Checkbox is true.
I need to do the calculation to get the number of row units to decide whether to bring the (Dist) on the Keep when rule for (Dist).
This evaluates the comparison and returns the boolean result. If the value is < 13 it would return ‘true’ which would keep your part. Otherwise it would return ‘false’ which would not keep the part (assuming the second part of the keep rule calls for the true condition).
Nice. In a former life I worked at a tillage and cultivation equipment manufacturer. Not too much different. Some of our equipment applied a different kind of fertilizer.