DpTreeView

The DPTreeView lists data point types and data points in a tree view as these are shown in the PARA module.

Figure 1. DpTree View

To create a DP Tree view

  1. Click on the DPTreeView symbol in the GEDI.

  2. Click in the panel work area. Specify the size by dragging the pointer over the desired area.

  3. Open the Property Sheet

  4. Enter the object name (Name).

  5. On the "Standard" tab, change the properties of the Dp tree view, for example, color. On the "Extended" tab, specify the Dp tree view specific properties such as "treeStepSize", "itemMargin" and "rootIsDecorated" (see Properties of complex graphics objects and Control/Control Graphics/DpTreeView functions).

A double-click on the DpTreeView in the panel during engineering opens the OnLButtonClk script.

Save the last expanded view in the DpTreeView

By using the "expandedStateName" attribute the last expanded view in the DpTreView can be saved.

Individual icons in the data point tree view

With the CTRL function dpTreeSetIcons() you can set individual icons for a system, a data point type or a data point element in the data point tree view that are then global effective for the entire UI.

Figure 2. DPT PUMP1 with individual icons

Drag & Drop of data point types and data points

WinCC OA supports drag & drop of data point types and data points from the DP tree view (as you can see it, for example, in the PARA) to a panel. From a predefined set of standard symbols for a data point type, the user can decide which symbol should represent the data point on the panel.

The definition of the available symbols takes place at the data point type in the PARA (see Standard symbols for DPTs). If after that this data point type or one of its data points is added to a panel using drag & drop, a preview window opens which allows the selection of the symbol that should be used for this data point.

If drag & drop is performed while holding KEY_SHIFT, the data point will be removed from the current DpTreeView.

For more information see Drag & Drop of DPTs and DPs.

Figure 3. Preview window with available symbols