TeamcenterKnowledge

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

Understanding MVL conventions

When coding in MVL, note the following conventions: MVL is case sensitive. All statements and keywords are typed in lowercase. White space is ignored, except when contained inside single or double quotation marks. Single and double quotation marks have semantically different meanings. Single quotation marks are required for some identifiers (IDs) and double quotes are used for string literals. Text appearing inside square brackets is optional. However, if the ‘[’ and ‘]’ characters appear inside single quotes, you should type them. Words that are in monospaced font are keywords and should be typed exactly as shown. Words in italicized font are primitives, and the most common ones follow. Lines preceded with a # character contain comments. If an MVL expression contains comments, you cannot view it in the user interface. Primitive Description Examples ID Module ID OptionName PathName An ID may be: A string that starts with a letter and only contains alphanumeric characters, or A string enclosed in single quotation marks and containing any icons. Inside the single quotes, you can use the \ character to escape a single quotation mark, and itself. Use IDs for module IDs, path names, and option names.

Note Siemens Digital Industries Software recommends that you do not a reserved word as the ID, module ID or path name. Car ‘My Car’ ’an option name’ front Option An option is a module ID, followed by a : and an option. In certain circumstances, an option can be followed by a path name inside square brackets. Car:Model ‘My Car’:‘an option’ Wheel:Tyre[front.left] String A string literal is any characters enclosed inside double quotes. You can use the back slash character to escape itself and the double quotes character. "This is a string "hello" " Integer An integer literal is any number. Optionally, you can place a - in front of the integer. 34342 -18344 Real An real number is any floating point number. To distinguish a whole number from an integer, always include the decimal point in real numbers, even if it is followed by a zero. However, Teamcenter attempts to interpret an integer as a real number if the context allows. 1.3432 -2342.1343 67.0 Logical A logical literal. true false

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