Find every place a group of objects repeats, then turn the repeats into block references, place a block everywhere it fits, or swap one block for another. For tidying imported drawings and laying out repeated details.
Before you start
- Stratal Draft or above (2D drafting).
- These are exact geometric calculations within a tolerance you set. Nothing leaves your computer.
- Patterns can hold lines, arcs, circles, polylines, ellipses, points, splines, text, multiline text and block references.
Steps: find repeats and convert them to a block
- Select the objects that make up one copy of the pattern (or select them after starting).
- Click Review > Compare and check > FINDREPEATS (or type
FINDREPEATS; the alias isREPEATS). - At
Select the pattern's objects, Enter when done, or Enter now for suggestions [Suggest/Tolerance/Mirror/SCale], click objects to add them (click one again to take it out), then press Enter. - Every other place where the same objects occur, moved or turned, is boxed, and the command line reports what was found.
- At
Repeats [Select/Convert/Mirror/SCale/Tolerance/Exit] <Exit>:- Select selects the pattern and all its repeats, for use with another command.
- Convert asks
Name of the new block, thenBase point of the block <lower-left corner of the pattern>, and replaces the pattern and every repeat by a reference to the new block, in one undo step.
Steps: let Stratal suggest
- Start
FINDREPEATSwith nothing selected and press Enter at the first prompt (or choose Suggest). - The command line lists numbered suggestions: groups of 2 to 64 touching objects that occur more than once, loose objects that look like an existing block (for example after EXPLODE), and an OVERKILL clean-up of the whole drawing.
- At
Suggestion to preview (1-n) [Exit] <Exit>type a number. What it involves is selected and the command line previews what it would add, erase and change. This is worked out on a copy; nothing changes yet. - At
Suggestion [Accept/Next/List/Exit] <Exit>choose Accept to apply it in one undo step, or Next to see the next suggestion.
Steps: place a block like an example (PLACELIKE)
- Click Review > Compare and check, open the repeats split button and choose PLACELIKE (or type
PLACELIKE). - Pick a block reference you have already placed, for example a door in one wall opening.
- Select the objects it is placed against (the wall lines round that opening) and press Enter.
- Every other place where those objects repeat gets a reference placed the same way, turned or mirrored with them, unless it already has one. Clouds mark the places and the command line says how many objects would be added.
- At
[Accept/Exit] <Exit>choose Accept. The references go on the example's layer with its properties, in one undo step.
Steps: replace one block with another (BREPLACE)
- To replace only some references, select them first. Otherwise every reference is replaced.
- Type
BREPLACE(also in the repeats split button). - At
Replace the references of blocktype the old block name; atwith blocktype the new one. - Check the preview, then choose Accept. Each reference keeps its place, rotation, scale and layer. Attribute values whose tag the new block also has are kept; the others are reported.
Options
| Option | What it does |
|---|---|
| Tolerance | How far apart points may be and still match, in drawing units. Default 0.000001. Must be greater than zero. |
| Mirror | Includes or leaves out mirrored repeats (toggles; the command line says which). PLACELIKE uses the same setting. |
| SCale | Includes or leaves out scaled repeats (toggles). |
| Suggest | Lists suggestions instead of searching for a pattern you chose. |
Example
An imported survey has 40 identical manhole symbols drawn as loose circles and lines. Select one symbol's three
objects, run FINDREPEATS, press Enter, then choose Convert, name the block MH and press Enter for the base
point. All 40 become references to MH in one undo step.
Tips and common mistakes
- Repeats on other layers, or with other colours or linetypes, are reported and left as they are, so the new references look exactly like what they replace.
- Settings (Tolerance, Mirror, SCale) are remembered for the next run while Stratal CAD is open.
Troubleshooting
| Message or symptom | What it means and what to do |
|---|---|
| "No suggestions: no repeated groups, no loose copies of blocks, nothing to clean up." | The drawing has nothing to suggest. Select a pattern yourself. |
| "No repeat has the pattern's properties; nothing to convert." | All repeats differ in layer or properties. Give them the same layer and properties first, then convert. |
| "Not convertible: …" | One repeat differs in a way a block reference cannot reproduce. The reason follows. |
| "The drawing has no block "<name>"." | BREPLACE: check the block name (the Blocks panel lists them). |
| "That is not a block reference." | PLACELIKE: the first pick must be a block reference. |
| "The tolerance must be greater than zero." | Type a small positive number such as 0.001. |
Related
Related
- Backing up and recovering drawings
- Checking, purging and recovering a drawing
- Comparing drawing revisions
- Checking a drawing against your standards
- Markup comments and marked-up PDFs
- Project support packages and material libraries
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.