Qualifier
- Last UpdatedJan 28, 2025
- 1 minute read
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:
-
Querying a ppoint position (PPOS) requires the ppoint number
-
The ATTMOD attribute can be used to query when an attribute was modified. The qualifier is the attribute to test for modification.
-
A direction/position may be queried wrt another element.
The definition of what pseudo attributes take what qualifier is described in the Data Model documentation.
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 LASTMOD(TRUE) - When at an ENGITE, LASTMOD is checked against all linked items and uses the most recent date of any of these items as the value to check against
Q MEMBER(TYPENAME BOX) - MEMBER has an optional element type qualifier
For Programmable Macro LAnguage (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)