OVERKILL — Delete Duplicate Objects
Deletes duplicate objects and combines overlapping lines and arcs.
- Command:
OVERKILL· Global name:_OVERKILL - Ribbon: Home › Modify
- Menu: Modify
Cleans a drawing of repeated objects: it erases exact duplicates and combines overlapping lines and arcs into a single one. It is useful with imported drawings or with objects drawn several times on top of each other.
Usage
- Enter OVERKILL.
- Select the objects to check and press Enter. If they were already selected before starting the command, they are used without asking.
Select objects:
- The Delete Duplicate Objects dialog box opens, as in AutoCAD 2027: the tolerance, the properties ignored when comparing and the combine options. OK cleans up. In scripts (and with -OVERKILL) the prompt shows the current settings; change the ones you want and press Enter (or choose Done) to clean up.
Current settings: Tolerance=…, Ignore=…, Optimize polylines=…, Combine partial overlap=…, Combine end-to-end=…. Enter an option to change [Done/Ignore/tOlerance/optimize Polylines/combine parTial overlap/combine End-to-end] <done>:
- When it finishes, the command line reports how many duplicates and how many overlapping objects or segments were deleted.
Options
- tOlerance (O): distance below which two points are considered equal.
Specify Tolerance <…>:
- Ignore (I): properties that do not count when comparing, separated by commas, or All or None. With none ignored, two objects on different layers are not duplicates.
Specify properties to ignore (…) or [All/None] <…>:
- Polylines (P): also looks for repeated segments within polylines.
- parTial (T): combines into one the aligned objects that partially overlap.
- End-to-end (E): combines aligned objects that only touch at their ends.
- Done (D): cleans up with the settings shown.
Notes
- The options start each time with their default values. Deleted objects come back with UNDO.
- The dialog box and the command line have the same options. AutoCAD's "Maintain associative objects" and "Do not break polylines" are not available.
- Only lines, arcs, circles, points and polylines are compared with tolerance; other types must be identical. A block with attributes is not recognized as a duplicate, and lines are not combined with polyline segments.
See also
-OVERKILL · ERASE · JOIN · PURGE · Selecting objects