Database Management
Reference Manual
Attributes
:
Query Attributes
: Qualifier
Qualifier
Many pseudo attributes take a qualifier. The qualifier is the extra information required to make the query. Examples of where a qualifier is used are:
1.
Querying a ppoint position (PPOS) requires the ppoint number
2.
The ATTMOD attribute can be used to query when an attribute was modified. The qualifier is the attribute to test for modification.
3.
A direction/position may be queried wrt another element.
The definition of what pseudo attributes take what qualifier is described in the data model reference manual.
The qualifier follows the attribute name in brackets. Attribute qualifiers must be preceded by the keyword ATTNAME and element types must be preceded by the keyword TYPENAME.
Q PPOS(1) - PPOS has an int qualifier
Q LASTMOD(ATTNAME XLEN) - LASTMOD has an attribute qualifier
Q MEMBER(TYPENAME BOX) - MEMBER has an optional element type qualifier
For PML variables, the qualifier should be assigned to a PML array object and passed to the ‘Attribute’ method as the second argument:
to query PPOS 1
!q=object array()
!q[1] = 1
q var !!ce.attribute('PPOS', !q)
to query list of nominal bores:
!q=object array()
!q[1] = 'BORE'
q var !!ce.attribute('NOMBMM', !q)
to query Equipment members:
!q=object array()
!q[1] = object elementtype('EQUI')
q var !!ce.attribute('MEMBER’, !q)
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.