Delete everything inside circles

Delete everything inside circles

stephenwFKTB4
Explorer Explorer
628 Views
3 Replies
Message 1 of 4

Delete everything inside circles

stephenwFKTB4
Explorer
Explorer

Hi, 

i have a lisp routine to trim scribe lines and add circles but i need something to select everything inside the yellow circle and delete it, then delete the circle. 

2024-06-07 15_23_52-AutoCAD Mechanical 2015 - [MPG TANK SIDE A.dxf].png

i have  the code to select all my circles but am struggling with the rest

(if (setq ss (ssget "_X" '((0 . "CIRCLE") (8 . "TEXT"))))
    (progn ; then
	(repeat (setq n (sslength ss))
		(setq
          cir (ssname ss (setq n (1- n)))
		)
	
	)
	  ); progn
	)

 i attached the whole code and the dxf i am working with

thanks

0 Likes
Accepted solutions (1)
629 Views
3 Replies
Replies (3)
Message 2 of 4

paullimapa
Mentor
Mentor

This thread may point you in the right direction to select objects inside a circle 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

Sea-Haven
Mentor
Mentor

I  think this will do what you want, select circle select inside.

 

SeaHaven_0-1717811064968.png

Need to add delete circle, but should be there to remember the object selected. Maybe line 703.

0 Likes
Message 4 of 4

stephenwFKTB4
Explorer
Explorer
Accepted solution

Thanks guys,  while trying to get those suggestions to work i figured out i could just use a rectangle since i will only ever need to select those 5 lines. 

0 Likes