RINGCLEAR – Erase Everything Between Two Boundaries (Free AutoCAD LISP)
RINGCLEAR – Erase Everything Between Two Boundaries (Free AutoCAD LISP)
FREE AUTOCAD LISP
RINGCLEAR — empty the ring between two closed shapes, cut at the edge
Pick an outer closed shape, pick an inner one, and everything trapped between the two is gone. What lies outside the outer shape and what lies inside the inner one stays exactly as it was. Clearing a margin around a detail, emptying a corridor along a route, punching a clean frame into a busy plan — all of it in one command, instead of twenty minutes of trimming and erasing by hand.
The whole point is the edge. Anything crossing a boundary is cut exactly at it rather than deleted whole — a pipe run that passes straight through keeps its outside part and its inside part and loses only the middle. Lines, polylines with arc segments, circles, ellipses and splines all trim cleanly, and both boundaries survive untouched.
Text, blocks, hatches and dimensions are the exception, because AutoCAD cannot cut them at all. There RINGCLEAR uses the only honest rule left: the object’s centre. Centre in the ring and the whole object goes; centre outside it and the whole object stays, overhang and all. The demo shows both cases happening side by side.

How to use it
- Unzip, then load the .lsp with
APPLOAD. - Make sure Express Tools is installed – the cutting is done through its ETRIM command.
- Type
RINGCLEAR. - Pick the OUTER boundary, then the INNER one. Any closed curve works: a polyline with arcs, a circle, an ellipse, a closed spline.
- If the routine cannot work out a point between the two on its own, it asks you to pick one.
- The ring comes out empty. Don’t like the result? One U puts the whole drawing back.
Good to know
| Boundaries | Any two closed curves – polyline with arc segments, circle, ellipse or closed spline. The inner one must lie completely inside the outer one; RINGCLEAR checks and stops if it doesn’t |
| Keeps | Everything outside the outer boundary, everything inside the inner one, and both boundaries themselves |
| Trims | Lines, polylines, arcs, circles, ellipses and splines are cut exactly where they cross a boundary |
| Text, blocks, hatches, dimensions | Nothing AutoCAD can trim: erased when the object’s centre falls in the ring, kept whole otherwise |
| Leaves no mess | Locked layers are unlocked for the run and locked again afterwards, and every system variable the routine touches is restored on every exit – including Esc |
| Undo | The whole operation is a single undo step – one U reverses it |
| Needs | Express Tools installed, and model space. Thaw and turn on any layer you want processed |
| Command | RINGCLEAR |
From the same workshop — watch what the paid add-ons do
This tool is part of our free AutoCAD LISP collection — 20+ routines, all free, all tested on real projects.









