PML Customisation User Guide

Using PML in AVEVA Products : Using PML in AVEVA E3Dâ„¢ : Accessing DB Elements As Objects
A special global variable !!CE has been provided which always refers to the current element in the database. !!CE can be used to obtain the DB reference of the current element:
!!CE is of type DBREF so the new variable !Item will also be of type DBREF. The dot notation can be used to access attributes and pseudo-attributes of a database element:
Assigning a new reference to the !!CE variable makes the new reference the current element by navigating to it in the database:
P-points are accessed using the P-point number like an array subscript. For example, to access the direction of P-point[1]:
A NULREF is treated as UNSET, so a NULREF can be tested for in two ways:
There is also the function BADREF which will detect whether a database reference is unset or invalid (i.e. impossible to navigate to):

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo