You can add a Parameter Check node (
) to a geometry part or a geometry sequence to check the values of the input parameters (or local or global parameters). Such a check can be useful to make sure that a parameter value stays within a certain range, especially for input parameters to geometry s used in geometry models. The check gives an error if the condition that you provide is nonzero (true). For example,
r>30[mm] gives an error if the value of the parameter
r exceeds 30 mm. Put the node at a position before the use of the parameter if you want the error to appear before using the parameter that you want to check when building a geometry feature. The error appears in an
Error window and also as an
Error subnode under the
Parameter Check node. You enter the condition and error message in the following section:
In the Condition field, type an expression in terms of the parameters (global, local, and input parameters). When you build the feature, an error occurs if the expression is nonzero.
In the Error message field, type an error message to display if the condition for the parameter check is nonzero.