Querying Elements and Attributes in Databases
- Last UpdatedFeb 19, 2025
- 2 minute read
To check what the current element is, enter
Q CE
To check the membership list of the current element, enter
Q MEMbers
The members will be listed in the order of their positions in the membership list.
To find out which element owns the current element (the inverse of the preceding example), type
Q OWNer
To ask what types of element may legally be members of the current element, type
Q LISt
To ask whether an element exists, type
Q EXISTS <element name/refno> [<type>] [UPDATE]
The optional <type> lets the user check whether the identified element is of a given type. The optional UPDATE can be used to tell the user whether the identified element can be updated or not.
The responses to this query are:
|
TRUEA |
If the user did not specify <type> and the element exists. |
|---|---|
|
TRUE |
If the user specified <type> and the element exists and is also of the given <type>. |
|
TRUEC |
If the element exists and can be updated. |
|
FALSEA |
If the element does not exist. |
|
FALSEB |
If the element exists but is not of the given <type>. |
|
FALSEC |
If the element exists but cannot be updated (if UPDATE was used). |
To ask what elements match specified criteria, enter
Q ALL <select>
where <select> is the selection expression. All elements matching your entered selection criteria will be output. For example
Q ALL BRANCH WHERE (HBORE GT 100) FOR /ATEST
will output all branches in the element /ATEST which have values greater than 100 for the attribute HBORE.
To check the settings of all attributes of the current element, type
Q ATTributes
(Any user-defined attributes (UDAs) will be output at the end of the attribute list.)
To check the setting of an attribute of a specific element, type
Q (<attribute> OF <id>)
For example:
Q (XLEN OF BOX1)
To check the settings of specific attributes only, query them by name, thus:
Q XLEngth
Q BORe
Q POSition
Q ORIentation
Q :TESTED( where :TESTED is a UDA)
and so on.
The user may query several specified attributes in a single command line. For example,
Q POS ORI XLEN YLEN ZLEN :TESTED
To query the contents of part of an array, enter
Q arrayname[index]
For example:
Q DESP[10]
To query the AVEVA E3D Design version from which the current Database (DB) was created, enter
Q CRINFO