Télécharger
FR

Aide

Find and Replace

Searches the texts of the project, shows every match in a table, selects the objects that hold them and replaces the matches in one step.

Find and replace texts

Opens the Find and replace texts window. It searches single-line texts, multiline texts, the texts that dimensions write instead of their measured value, the labels of leaders and, if you ask, layer names. The window is not modal and follows the project: the table updates when the drawing changes.

Where to find it

Tools tab → Data group → Find and replace texts (Find and replace texts).

Before you start

  • A label that shows another object's value (an elevation, a length) has no text of its own and is not searched.
  • A dimension is searched only when it has its own replacement text.
  • Texts on locked layers are listed but never changed.

How to

  1. Click Find and replace texts. The cursor is in the Find box.
  2. Type the text to look for. The table fills in about a quarter of a second after you stop typing.
  3. Type the new text in Replace with. The Becomes column shows the result for each row.
  4. Choose rows in the table (Ctrl or Shift to pick several).
  5. Click Replace for the picked rows or Replace all for every row. The whole change is one undo step (Ctrl+Z).
  6. To look at the objects first, click Select (picked rows) or Select all. The objects are selected in the 3D view.

Parameters

FieldMeaning
FindThe text to look for. Empty means nothing is searched ("Type what to find." appears below).
Replace withWhat the matches become. With Regular expression, $1, $2 stand for the groups of the expression. Otherwise it is inserted as typed.
Match caseOff by default: upper and lower case are the same.
Whole wordThe match must not touch letters, digits or an underscore on either side.
Regular expressionReads Find as a regular expression.
Layer namesAlso searches the names of layers. The default layer keeps its name.
Selected objects onlySearches only the texts of the currently selected objects. The table follows the selection.

The settings of the window are remembered.

The table

ColumnContent
KindText, Multiline text, Dimension text, Leader text or Layer name
LayerThe layer of the object, or the layer whose name matched
TextThe text now (line breaks shown as spaces)
BecomesThe text after replacing; empty for a locked layer
StateLocked layer when the text cannot be changed

Click a header to sort. Rows are ordered by layer name, then by kind.

Buttons

ButtonEnabled whenWhat it does
SelectPicked rows include an objectSelects the objects of the picked rows. Layer names have no object.
Select allAny found row has an objectSelects the objects of every row
ReplaceA row is pickedReplaces in the picked rows (one undo step)
Replace allThe table is not emptyReplaces in every row (one undo step)
CloseAlwaysCloses the window

After selecting or replacing, a line under the table reports Selected objects: N, or Replaced: N in M texts., with Skipped, locked layers: N. and the layer names when some were skipped, and Left as they are: N. for rows that no longer match, the default layer, or a layer that would end up with an empty name.

If something goes wrong

MessageWhat to do
Type what to find.The Find box is empty.
A red text with the expression's errorThe regular expression is invalid; fix it. Nothing is found until then.
Nothing foundNo text matches. Check the options.
Locked layer (in State)Unlock the layer first; the text is skipped otherwise.