Skip to the page
Tutorial areas

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

  1. Choose Edit › Select by Query…. A line opens across the top of the drawing, with its cursor ready.

  2. Type the query. Here, rectangles where fill = #e76f51 selects the rectangles with the orange fill.

    The query line reading rectangles where fill equals #e76f51, marked 1, with 2 matches on Design Layer-1 under it
  3. Press Enter. The matching objects are selected, and the line says how many it found. Here, the two orange rectangles.

    The drawing with the two orange rectangles selected and the teal and yellow rectangles left alone

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.