I have a feature, a round, that I would like to suppress if another dimension exceeds a specific value. The round will fail under under this condition, so I would like to suppress it without using the Excel based DT (Design Table). As equations use "IIF" instead of IF / THEN statements, can an equation be written to suppress a specific feature? If so, how is this done?
Most of my programming was previously done using Pro/Program (Pro-E), and I have used SolidWorks equations for awhile, but not IF / THEN statements in SW part files. I found this information in the SW help menu about equations:
"You can also use the Visual Basic IIf function when specifying a model dimension. This function returns one of two values depending on the evaluation of an expression. For example, if the equation specified is "D1@Sketch1" = (IIf("D1@Sketch4">15, 20, 10)) + 8, then:"
If D1@Sketch4 is ... | Then D1@Sketch4 is set to ... | And D1@Sketch1 is set to ... |
> 15 | 20 | 28 |
<= 15 | 10 | 18 |