When working with dense survey data, site layouts, or coordinate grids in AutoCAD, manually selecting
POINT entities inside circular boundaries can be slow and error-prone. While AutoCAD’s built-in WP (Window Polygon) selection works for single areas, it becomes tedious when you need to select points across dozens of circles at once.
Below is a free, lightweight AutoLISP routine (SelPtsInCircles) that lets you select multiple circles at once and automatically highlights every point inside them.
Features of This Routine
- Multi-Circle Selection: Select individual circles, drag a selection window, or select all—the script automatically ignores non-circle objects.
- 2D XY-Plane Filtering: Checks horizontal distance from each circle's center, meaning points at varying Z-elevations are still accurately captured.
- Instant Grip Selection: Highlights matching points immediately so you can move, delete, copy, or change their layer right away.
Download or Copy the AutoLISP Code
Download the ready-to-use .lsp file directly, or click Copy Code to paste it into Notepad:
How to Load and Use It
- Save the File: Download
SelPtsInCircles.lspusing the button above, or save the copied text asSelPtsInCircles.lsp(make sure the file extension is.lsp, not.lsp.txt). - Load into AutoCAD: Open your drawing, type
APPLOADin the command line, and press Enter. Browse to your saved file and click Load. - Run the Command: Type
SelPtsInCirclesin the command line and press Enter. - Select Circles: Click or window-select the circles you want to check and press Enter. All points inside those circles will now be selected!
Tip: By default, points resting directly on a circle's edge are included. If you want to exclude boundary points, change
<= to < on line 34.


No comments:
Post a Comment