TeamcenterKnowledge

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

Using the expert mode

As mentioned previously, the expert mode editor for complex constraints includes the Intellisense autocompletion feature. If you type a new constraint, the editor displays a dialog box containing suggestions for what you might type next. The contents of the dialog box changes according to any additional characters you type. If your typing does not match any of the suggested entries, the dialog box disappears and the text typed appears in the current cursor position in the text area. However, if you press a tab key or Enter key while the dialog box is open, Teamcenter transfers the current selection in the dialog box into the text area. You can use the up and down arrow keys to scroll through the list of suggestions or you can right-click in the suggestion list to select an entry directly. At any time, you can press the backspace key in the dialog window to hide the menu; you can type a space character, tab or new line to redisplay the appropriately populated dialog window. The following table shows the suggested value that you can select, depending on the position of the cursor: Cursor position Possible selections Comments 1 Start of the expression set, fix, if, warn, error, inform Variant conditions (as opposed to defining constraints) do not have possible selections. These must be logical expressions that decide whether the selected structure line is loaded. Go to line 2 of this table. 2 Where an option selection is required Module interface This selection includes all options of current module and public options of directly included child modules. If an option is being presented as a possible value, only options having the same type as the required value are displayed. If the option directly follows set or fix then go to line 3 of this table, otherwise go to line 5 (in this case, option selected is a value). 3 set or fix following by an option to If you selected the option rather than typing it, to appears automatically and you do not need to make this selection. Go to line 4 of this table. 4 When a value selection is required Valid value If the option requiring a value is an enumeration, a list of allowable values is shown. If the option is logical, true and false is shown. A value may also be another option of the same type from the module interface (see line 2). You must type strings and numbers manually in double quotes. Go to line 5. 5 After value Appropriate operator or expression end If the expression already contains a comparison operator, and and or are shown. If you select one of these, go to line 2. If the value is numeric +, -, *, and / are shown. If you select one of these, go to line 4. If the value follows if and precedes a comparison operator, = and !=, as well as <, <=, >, and >= if the value is numeric. If you select one of these, go to line 4. If you are building a constraint and the value follows both an if and a comparison operator, then is also shown. If you select this, go to line 6. If the constraint also contains then, else, else if, and endif are also shown. If you select else, go to line 6. If you select else, go to line 2. If you select endif, Teamcenter disables all buttons other than OK and Cancel. If you are building a variant condition and the value follows both if and a comparison operator, endif is also shown. If you select this, Teamcenter halts interactive expression building. 6 After then in a derived default set, fix, error, warning, info If you select set or fix, go to line 2, otherwise go to line 7. 7 After error, warning, or info None. You must type the message text. Teamcenter creates single quotes (open and close) and places the cursor between them. You can place the cursor to the right of the closing quote to make else, else if, and endif available as selections (see line 5).

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