Rules for Part Search
You can reduce the search for parts by entering different search criteria. This includes, for example, the pre-selection mask for part insertion or the dialogue for editing catalogue pipe classes.The new syntax is basically the same as in HELiOS, with only slight differences.The detailed rules are listed in the following:
Search criteria with one value
The simplest type of search condition consists of only one value. The value '' (two single quotation marks) has a special role. It represents an empty attribute. When searching for strings, no distinction is made between upper and lower case.
Input |
Meaning |
---|---|
50 |
The criterion is met if the value equals 50. |
abc |
The criterion is met if the value equals the string abc. |
'' |
The criterion is met if the value is empty. |
Please note:
The single quotation mark ' on a German keyboard is located on the same key as # and should notget mixed up with the accent key (´, `).
Relational operators
The simple search criteria can be extended with a relational operator.
Input |
Meaning |
---|---|
< 50 |
The criterion is met if the value is smaller than 50. |
<= 50 |
The criterion is met if the value is smaller than / equals 50. |
!'' |
The criterion is met if the value is empty. |
< 'Text' |
The criterion is met if the value is lexicographically smaller than "Text". |
The following relational operators are available.
Operator |
Meaning |
---|---|
= |
equal |
!, !=, <> |
not equal |
< |
smalller |
<= |
smaller / equal |
> |
bigger |
>= |
bigger / equal |
Wildcards
When compared with a string, wildcards can also be used.
Wildcard |
Meaning |
---|---|
* |
A random number of random characters. |
? |
A single, random character. |
When using wildcards, the relational operators are limited to equal and not equal.
Input |
Meaning |
---|---|
valve* |
The criterion is met if the value starts with valve. |
val?? |
The criterion is met if the value starts with val and then contains exactly two random characters. |
!*valve |
The criterion is met if the value does not end with valve. |
Connect search criteria with and / or
Several simple criteria can be linked together by & (and). The overall criterion is met when each individual criterion is met.
Input |
Meaning |
---|---|
>30 & <50 |
The criterion is met if the value is between 30 and 50. |
*valve* & *din* & *steel* |
The criterion is met if the value of all three strings contains valve, din and steel in a random order. |
The criteria can also be connected by using the character |. It represents a Boolean or.
Input |
Meaning |
---|---|
< 30 | > 50 |
The criterion is met if the value is smaller than 30 or bigger than 50. |
*din* | *en* | *iso* |
The criterion is met if the value contains one of the three strings din, en or iso. |
& and | can also be combined. Thereby & has a stronger bond than |.
Input |
Meaning |
---|---|
>10 & < 20 | > 100 & < 200 |
The criterion is met if the value is between 10 and 20 or between 100 and 200. |
armatur* & *din* | *valve* & *iso* |
The criterion is met if the value contains the combination of armatur and din or the combination of valve and iso. |
Special characters
When used in search criteria, the characters ! < > = \ ' & | ? * have a special meaning. In order to search for these characters, they must be masked with a \.
Input |
Meaning |
---|---|
? |
The criterion is met if the value is exactly one random character. |
\? |
The criterion is met if the value is exactly one question mark. |
pipe\* |
The criterion is met if the value is equal to the string pipe*. |
Alternatively, the values can be masked by placing them within single quotes. The quotation mark itself cannot be masked this way.
Input |
Meaning |
---|---|
'?' |
The criterion is met if the value is exactly one question mark. |
'pipe*' |
The criterion is met if the value is equal to the string pipe*. |
When using single quotation marks, the entire term must be inside the quotation marks. This means that a search criterion of the type "pipe '*'" is incorrect. It is also not possible to use wildcards when searching with single quotation marks.
When searching for parts, only those parts can be found which met the search criteria for all attributes. An exception are attributes whose search criteria start with |. For the search it is then sufficient that only one of these search criteria is met. The criteria without | must all still be met.
For example:
Attribut |
Search criterion |
---|---|
Nominal diameter1 |
|50 |
Nominal diameter2 |
|50 |
Nominal diameter3 |
|50 |
Wall thickness |
5 |
This search query finds all parts whose wall thickness is 5 and at least one of the nominal diameters has the value 50.
Incorrect search criteria
If an incorrect search criterion is entered, a message is displayed with a description of the error.
Example of an error message in the pipe class editor