Select objects by a written query
Select every object that matches a line you type, such as all the rectangles of one fill colour, with Edit › Select by Query….
How-toIntermediate3 minMenu: Edit › Select by Query…
Use Select by Query when you want every object of one kind, class, layer or size, and you can say which in words. You type one line, and the objects that match are selected. It is quicker than clicking each one, and nothing changes until you do something to the selection.
Steps
Choose Edit › Select by Query…. A line opens across the top of the drawing, with its cursor ready.
Type the query. Here,
rectangles where fill = #e76f51selects the rectangles with the orange fill.
Press Enter. The matching objects are selected, and the line says how many it found. Here, the two orange rectangles.

Tips
- Press Esc instead of Enter to put the selection back as it was.
- Use and and or to join conditions, as in
lines where length > 2m and layer = "Ground Floor". The query can name any kind, such as lines, arcs, text or groups, and fields such as class, layer, fill, pen, width, height and area. - Press ? on the line to see the full grammar and examples.
- Select objects that look alike from one of them with Select every object like the one you picked.
Limits
- A query selects only the drawing's own objects, not the parts inside a symbol. Select the symbol to reach its parts.