TeamcenterKnowledge

Configuring structures by modular variants > Viewing and creating option and variant data

Edit expressions in MVL

There are certain complex conditions that you cannot create or edit in the Variant Condition dialog box. In these cases, you must edit the modular variants language (MVL) that represents the condition directly in expert mode. For example, you may want to set the following condition for the refrigerator freezer: Copy Door Height = (Appliance Height/2)-50mm

Procedure In the Variants pane, open the Constraints node and double-click the Complex Constraints entry node. Complex constraints Teamcenter displays a dialog box in which you can edit and save the MVL expression. Saved MVL expression Edit the MVL expression as appropriate. You can use many mathematical operators.

Caution If you edit an expression in expert mode in this way, Teamcenter marks the module as an Expert module. You can no longer maintain the module with the basic user interface. You can view the MVL of existing variant data for examples of the required syntax. An example of how to use mathematical operators with options follows: Copy set 002504:'Door Height' to 002504:'Appliance Height'/2*002504: 'Clearance'-002504:@Offset' In this example, 'Clearance' and 'Offset' are private options you created to store a variable for use in this logic. If a name or identifier includes spaces or special characters (for example, - ), you must embed them in quotation marks, for example: set 'MV-2504':'Door Height'. To identify the available entries at any point in the expression, Teamcenter utilizes Intellisense™. When you create or edit the expression, Teamcenter displays a list of available entries. Select an entry with the mouse or the up and down arrow keys, then press Enter to put the entry into the expression.

Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/pse/por1737253406260/zni1737253408834/mod_vars_edit_mvl.html · retrieved Sat Jul 11 2026 00:00:00 GMT+0000 (Coordinated Universal Time)