Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Distributed Attributes and Attribute Syntax

  • Last UpdatedMay 25, 2022
  • 1 minute read

Since more than one instance of a distributed element is handled [n] is used to qualify which instance you are interested in.

The syntax is used on both queries and manipulations of attributes, as well as in PML1 expressions.

Syntax

:UDANAME\:UDETNAME

Example

-- Query the value of the :local\:process distributed attribute on Current Element (CE)

Q :LOCAL\:PROCESS

:local\process true

-- Set the value of distributed attribute :local\:process to false

:LOCAL\:PROCESS false

-- Query all LNLIST elements where distributed attribute :local\:process equals true

Q ALL LNLIST WITH (:LOCAL\PROCESS EQ true)

-- Query the value of the second instance of distributed attribute :local\:process

Q :LOCAL\:PROCESS[2]

:local\process[2] true

-- Set the value of the second instance of distributed attribute :local\:process to false

:LOCAL\:PROCESS[2] false

-- Query all LNLIST elements where second instance of distributed attribute :local\:process equals true

Q ALL LNLIST WITH (:LOCAL\PROCESS[2] EQ true)

In This Topic
TitleResults for “How to create a CRG?”Also Available in