Configure Visual Queries
- Last UpdatedSep 06, 2024
- 2 minute read
Allows an administrator to configure visual queries for use on one or more projects. A visual query has three components:
-
An Expression which is used to select the elements to which the query will apply, this expression must return a Boolean value, for example:
( ATTRIB BORE GT 150mm )
( ATTRIB STVDSC( /ConstructionStatus ) eq 'Approved' )
-
A View Style, consisting of a color, translucency value and edges setting, these settings have the same meaning as their equivalents on the Drawlist window.
-
A Type Collection which is a list of element types, for example, PIPE or EQUIPMENT.
In addition, each component in the configuration has a description. View styles and type collections are defined separately enabling reuse across a set of visual queries.
Use the Visual Queries Configuration window to define the visual queries, view types and type collections.
If no visual query configuration has been defined, the Visual Queries Configuration window prompts to create the high level application data structure to store the configuration.

Create Application Data World
An application data world is a hierarchy in which visual query configuration information is stored. Click Create Application Data World to create the application data hierarchy. These tabs are displayed:
|
Visual Query Sets |
Add query sets and specify their queries |
|
Visual Queries |
Add and define visual queries. |
|
View Styles |
Specify styles to apply to queries. |
|
Type Collections |
Specify collections and their types. For example, specify a Pipes and Equipment collection of type PIPE EQUI. |
Apply
Saves the configuration to the database.
Reset
Reverts the settings to the currently saved state or last Apply.
Export
Exports the visual queries configuration to a macro file which can be run from the command line in another project.
Cancel
Discards any changes since the last Apply.