TeamcenterKnowledge

Configuring structures by modular variants > Viewing and creating option and variant data > Developing complex expressions with MVL

Example of an expression coded in MVL

In this example, the options in the following product structure are coded in MVL: I0100 – Car I0200 – BrakeSystem I0300 – Disk Brake Assembly I0400 – Standard Pads I0410 – Performance Pads I0420 – Solid Disk I0430 – Vented Disk I0300 – Disk Brake Assembly I0400 – Standard Pads I0410 – Performance Pads I0420 – Solid Disk I0430 – Vented Disk I0310 – Drum Brake Give the first of the I0320 lines the name front and the second one rear. Do this by modifying the bl_occ_occurrence_name occurrence name property. You should then add the following option declarations. Item Scope Name Type Values I0100 public Model string LS, LX, GX I0200 public Config string Standard, Semi Sports, Sports I0300 public Performance string Normal, High I0300 private Pads string OK, Good I0300 private Disk string Solid, Vented Now add the following MVL constraints: Item MVL constraints I0100 Copy if I0100:Model = "LS" then set I0200_BrakeSys:Config to "Standard" elif I0100:Model = "LX" then set I0200_BrakeSys:Config to "Semi Sports" else set I0200_BrakeSys:Config to "Sports" endif I0200 Copy set I0300:Performance to "Normal" if I0200:Config != "Standard" then set I0300:Performance[front] to "High" endif if I0200:Config = "Sports" then set I0300:Performance[rear] to "High" endif I0300 Copy set I0300:Pads to "OK" set I0300:Disk to "Solid" if I0300:Performance = "High" then set I0300:Disk to "Vented" set I0300:Pads to "Good" endif

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