Tutorial 8A.2 -Custom HydrauliCAD Quick Select
Using The Custom HydrauliCAD Quick Select Tool

Step 1. On the Secondary Toolbar, click on:

Step 2 (Below). To make a new Outlet Selection Set, Highlight "Outlet"

then Click "New Rule"

Step 3. In this new Rule, Leave "Logic" Column blank, and Open Property Column ComboBox.

Select a Property to Query on, in this case the Property "Pressure"

 


Step 4. In the Condition Column, make your Selection.

Step 5a. In the Value Column, type in a numeric Pressure Value to Query on.

Step 5b. For Named Property Values (for example "Hydraulic Groups", Pipe Specs etc.), Hold Down "SHIFT" Key over the Value Field and the Pre-Named Properties will appear in the Value Column.

Make your selection.

Step 6. Click the "Select" or "Exclude" Button at the bottom of the Form.

This will create a new Selection Set in the Drawing which can be:
- Viewed and Edited "by Individual Object"
- Saved as a Temporary or Permanent Selection Set

NOTE 1: Following Query, you can edit any Property of your result en masse in the Properties Palette.

NOTE 2: You can also Save the resulting Selection Set for future recall (see Save Sets in this Section of the User guide or use the links below).

NOTE 3: You can also Cycle through the result "by Individual Object" using our "Cycle through selection" method, Viewing and / or Editing any individual Object. (See Cycle through Sets in this Section of the User guide or use the links below).

Further Explanation:


In HydrauliCAD Quick Select, user can define a combination of conditions that might exist in the network. All the conditions would be evaluated and if each hydraulic object satisfies the logical expression and the result of logical expression is true, that object can be selected or Excluded from selection set.
Before committing the Selection / Exclusion of objects that satisfy the conditions, by clicking on "Update Counts" user can see how many objects comply with the condition or if some objects are already selected, how many of objects which comply with the condition, can be excluded from the selection set.

To evaluate if a complex condition is satisfied, we need to know how logical expressions are evaluated.
Logical Expressions: Relational Operators
A logical expression can only have the values .true. or .false..
Relational operators are used to form logical expressions to determine choice and decision-making structures.

The following Table shows the relational operators and their meanings:

Table 1: Relational Operators
Operator Meaning
= equal to
!= not equal to
< less than
<= less than or equal to
> greater than
>= greater than or equal to
These logical operators are used to compare two values of the same type. Strings could be compared to strings, and numbers to numbers.
Example
Given that the REAL variable Elevation1 has the value 83.4 and the REAL variable Elevation2 has the value 96.3 Table 2 shows possible expressions and their values.

Table 2: Relational Operators
Expression Value
(Elevation1 > 50.0) .true.
(Elevation1 >= 90) .false.
(Elevation1 != Elevation2) .true.
Logical Expressions: Logical Operators
There are also logical operators which are used only between complete logical expressions.
To keep logical expressions in HydrauliCAD Quick Select simple, only AND and OR operators are used. The logical operator introduced at the start of every rule, is between the result of last rule and the result of the same rule which operator is in.
Table 3 shows the logical operators and their meanings.

Table 3: Logical Operators
Operator Meaning
AND True only if both logical expressions are true
OR True if either logical expression is true
Example
If a = 3.0 and b = 8.0, then
(a != b) AND (a < b) has the value .true. (Both logical expressions are true)
(a < b) OR (a > b) has the value .true. (One of the expressions is true)

Within the same level of priority, evaluation will proceed from first rule to next.

Instead of parenthesis, precedence of AND or OR operators are specified by a radio button in "Hydraulic Quick Select" labeled as "Priority to be With:"


In the following expression:
A AND B OR C
If OR has the priority (B OR C) is evaluated first, then its result would be ANDed with A. If AND has the priority, (A AND B) is evaluated first, then its result would be ORed with C.
To show what a difference it may make, consider A is .false. and B and C are .true.:
A AND (B OR C) = .false. AND (.true. OR .true.) = .false.
(A AND B) OR C = (.false. AND .true.) OR .true. = .false. OR .true. = .true.