powered by CADENAS

Manual

Manual

5.9.10.3. Dialog area Filter (optionally)

In dialog area Filter, you can optionally determine, if in the accessory part, all rows shall be displayed or only certain ones, if it is opened. If no filter is set, simply all rows are displayed.

Simple example

Set a simple condition via VariableValue combination.

  1. In the dialog area Filter, click on the button New .

    -> A new row is added.

  2. In the column Variable, open the list and select that variable with whose value you want to perform the restriction.

  3. In the column Value, open the list field and select the desired value.

In this way, create any number of rows (filters).

Alternatively, you can determine the desired rows directly in the table. Then an appropriate formula expression is automatically generated.

  1. In the dialog area Filter, click on the button New from table .

    -> The dialog box Select lines is opened.

  2. Select the desired table rows (Ctrl = several single, Shift = as block) and click on Add row.

    Accessory part with 4 characteristics (rows)

    Accessory part with 4 characteristics (rows)

    -> On the right, the created formula is displayed.[45]

    In above example:

    IDNR.LE.2

    That means the variable IDNR shall be equal or less than 2.

  3. Confirm with OK.

    -> Now the created expression is displayed in the dialog area Filter.

  4. Update the index and open the part in PARTdataManager.

    In the docking window Links, select the list field option Accessories.

    -> You can see the accessory part determined before.

  5. Open the accessory part.

    If a filter is used when opening a part, you can recognize this by the button accessory part filter on/off top left in the table. With this button you can activate/deactivate the filter.

    The following figure shows, that only rows with IDNR less or equal then 2 have been opened. In fact, the part has 4 rows. Compare Fig. „Accessory part with 4 characteristics (rows)“.

    accessory part filter on/off

    accessory part filter on/off

Example with access on variables of source file

The use can be interesting, if a certain part in accessory part shall match a value in source part.

  1. For this, select the option New .

    [Note] Note

    With New from table , you cannot access variables of the source file.

    -> A new row is added.

  2. In the column Variable, select the option Algorithm....

    -> The dialog box Edit algorithm is opened.

  3. With secondary mouse key, open the context menu and there, open the option Variables.

    -> The source part's and accessory part's variables are displayed.

    [Note] Note

    The source part's variables are marked wit the prefix SOURCE@.

    With the help of Fortran syntax you can build the condition that in accessory part only that rows are displayed, where the selected variable value of source part equals the variable value of accessory part, for example.

    Example: "R" in accessory part equals (EQ stands for "equal") "R" in source part.

    R.EQ.SOURCE@R

Example with value range variable as filter

If a value range variable is selected as variable, the dialog box Edit value range filter is opened. Here, you can select a Standard value and if needed, change the value range definition.

Then the Standard value is the preselected value in the value range variable, if the accessory part is opened.

[Note] Note

In the dialog box Edit value range filter, there is also the possibility to use a source variable as Standard value.

For this, in the input field of Standard value, open the context menu.

Via value range definition you can even restrict the value range in accessory part. If, for example, the original specification was "3,4,5", you can change it to "3,4" or change "[0:10]" to "[0:5]", for example.

As already mentioned, in PARTdataManager, a restriction of table is signalized by the respective icon in table.

Value range filtered: "3,4"

Value range filtered: "3,4"

Value range unfiltered: "3,4,5"

Value range unfiltered: "3,4,5"



[45] For the formula, Fortran syntax is used. On this please see under Section 15.2.1, “Fortran Syntax ”.