Filter Nodes

<< Click to Display Table of Contents >>

Navigation:  PlantSpecDriven > How to use > Configuration > Tree Settings >

Filter Nodes

Previous pageReturn to chapter overviewNext page

This chapter describes how you can filter out individual Nodes in the Structure Tree by using the Expression Editor.

Under Enable/Disable Classes you already saw how you can disable classes. However, it can make sense to filter the tree depending on some values in some properties. For example, often you are not interested in the smaller sizes in your P&ID drawings, because you will route only pipes above a certain size.

Let's use this as an example where we have a line with different sizes.

Tree Settings 0030

The Pipe Line Group looks like this with the different Pipe Line Segments, Inline Assets, Piping Fittings incl. Fasteners.

But the goal is to only see the objects with sizes 50 (2") or above.

Tree Settings 0040

To define a filter you select the class and then click on the + sign in the Filter Editor under the Class object filter section.

Tree Settings 0031

This creates a new entry which you then can modify.

Tree Settings 0032

First select the property Size.

Tree Settings 0033

Which results in this expression:

Tree Settings 0034

Now you select Is greater than or equal to.

Tree Settings 0035

Which results in this expression:

Tree Settings 0036

Now you click in the box behind the greater or equal sign and type in 50. Imperial users can also type in 2".

PlantSpecDriven will automatically convert the size diameters to the project units. So even in an imperial project you can use 50 instead of 2".

Tree Settings 0037

The final result looks like this.

Notice, that the graphical express is also shown as a text expression. You can actually edit the text expression too.

Tree Settings 0038

If you copy the text expression with CTRL+C...

Tree Settings 0039

...you can go to the Piping Fittings and Piping Specialty Items classes and paste it in the text section of the Filter Editor.

Tree Settings 0050

Here for the Piping Specialty Items.

Tree Settings 0051

In the tree you can now see the result where the Inline Asset symbols in the Pipe Line Segments with sizes smaller than 50 (2") are greyed out.

Tree Settings 0041

For reducers you may want to consider both sizes. First select the Reducers class.

Tree Settings 0042

What we need to do in this case, is to check if either Size or Size 2 is >= 50.

For this we change the And to Or.

Tree Settings 0043

We click on the + sign again.

Tree Settings 0044

We get a new row again.

Tree Settings 0045

We use the same expression as before.

Tree Settings 0046

But now we click on the + again.

Tree Settings 0047

Which create a new row again.

Tree Settings 0048

But now we select Size 2 instead of Size.

Tree Settings 0049

Here is the example from the top again.

Tree Settings 0030

Especially the most right reducer has Size = 32 and Size 2 = 50, but because we check for both sizes, the reducer will not be hidden. You can see this reducer at the bottom of the tree.

Tree Settings 0052

What is left is the filtering of the Pipe Line Segments. For that we copy the text expression from the Hand Valves class again.

Tree Settings 0053

And paste it for the Pipe Line Segments class.

Tree Settings 0054

The graphical representation of the text expression is created automatically.

Tree Settings 0055

For completeness you may want to copy the expression also for the Inline Instruments.

Tree Settings 0056

And now the Pipe Line Segments are also greyed out if smaller than size 50.

Tree Settings 0057

If we use the Show/Hide button again the greyed out nodes are hidden.

Tree Settings 0058

Next Chapter: Color Settings