Message 1 of 9
Skip overlapping objects in entsel selection
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys, how have you been?
I wanted to ask you a question about the entsel function.
Is there a way to skip overlapping objects when selecting with the entsel function?
For example, I need to select a line, but there are other objects on the line.
I once saw that it was possible, but now that I need it, I don't know how to do it.
I would appreciate any help you can give me.
I am attaching a dwg where I am testing it, it contains a mesh and on the edges of the mesh there are lines, but there is the mesh and a 3d polyline superimposed on it.
(defun c:xxx (/ e)
; Selection
(if (setq e (entget (car (entsel "\nSelect Line: "))))
(if (= "LINE" (cdr (assoc 0 e)))
(princ "\n Selected Line")
(princ "\n Invalid object")))
;
(princ)
;
)
AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)