Configuring structures by modular variants > Viewing and creating option and variant data
Create module constraints
Use a module constraint to set option values within a module. You may create a module constraint for the following reasons: To set a private option value that depends on a value of the public option in the module. You can use logic and simple mathematical operators to set conditions. To set a default option value. The user can override this value when configuring the structure. In this case, there is no condition on other option values and Teamcenter sets a value. To set fixed (hard-wired) option values that the user cannot override when configuring the structure. As before, if there is no condition on other option values, Teamcenter sets a value. In the refrigerator freezer example, you use a module constraint to set the Door Height private option in the Fridge Freezer module according to the Appliance Height public option. This constraint is defined with mathematical operators in MVL (modular variant language), rather than through the user interface. To define a module constraint:
Procedure Select the module on which you want to define a constraint and click the Constraints button. Teamcenter displays the Constraints dialog box, as shown in the following figure. Constraints dialog box Make the following entries in the dialog box: Choose Set or Fix from the list. Choose Set to set a private option from the value of a public option. Choose Set or Fix to directly associate an option with a defined value in the To Value list (do not use the Condition box.) Choose an option in the Option list and choose its value in the To Value. When you do this, you set the option—in this case, the private option, unless you set a value with no condition. In the Condition box, specify the constraint condition of the public option that is setting the private option. When you have made the appropriate selections, click OK or Apply. If you click Apply, the Constraints dialog box remains displayed and you can create other constraints.
Caution Do not click OK and Apply or you will create two identical constraints. Repeat steps 1 through 3 for each public/private option value combination that must be mapped.
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/pse/por1737253406260/zni1737253408834/mod_vars_module_constraints.html · retrieved Sat Jul 11 2026 00:00:00 GMT+0000 (Coordinated Universal Time)