Edit Node Texts

<< Click to Display Table of Contents >>

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

Edit Node Texts

Previous pageReturn to chapter overviewNext page

This chapter describes how you can define the node texts for the Structure Tree.

By default, the tree shows the Tags with the Class Display Name or the PnPID with the Display Name in case an object has no Tag property.

Tree Settings 0014

Here you see the example from the PSD ISO Metric project from Test Projects where Fasteners have a Tag as well.

Tree Settings 0015

If you want different information for your tree nodes you select a class and then click on the Edit button under Expression for tree node text.

Tree Settings 0016

This opens the Expression Editor.

Tree Settings 0017

Here you can define your own expression. This example uses the Tag and the Part Family Long Description property.

Tree Settings 0018

After closing the Expression Editor you see the expression below the Edit button.

Tree Settings 0019

Now the valves and the tee (which is also under the Hand Valves class in the test projects) show the Tag and the Long Description.

Tree Settings 0020

We use the same expression also for the Piping Fittings and Piping Specialty Items classes. In this example, the Fasteners are under the Piping Fittings class as well. This class also has a Tag property in the test projects.

Tree Settings 0021

Now everything shows Tag and Long Description.

Tree Settings 0022

In the test projects the Reducers have a Tag property as well. If we have this example:

Tree Settings 0067

The tree looks like this:

Tree Settings 0023

In case you would like to see the two sizes in the node text you can do this as well. And maybe you want to have the larger size always first.

The sizes of a reducer are filled out by Plant 3D depending on the flow direction and orientation of the reducer. So Size can be smaller than Size 2. In this case you might want to see Size 2 first.

The challenge is, that Size and Size 2 are string properties and not integers. With imperial units you have the additional challenge that you have the " marks.

With the PTNominalDiameterOperater function you can compare metric or imperial sizes. The expression you see here check if Size is greater than Size 2. And if so, you will later see for example 100/80 or 6"/4". And if Size 2 is greater than Size you will see the same result.

Tree Settings 0024

This is how it look like after closing the Expression Editor.

Tree Settings 0025

In the tree you now see 100/80 for both reducers although the second reducer on the right has 80/100 for Size and Size 2.

Tree Settings 0026

For Nozzles you may want to see the Size.

Tree Settings 0027

Then you could use this expression.

Tree Settings 0028

Now you see the Size in addition of the Tag.

Tree Settings 0029

Next Chapter: Filter Nodes