Thank you Mister!
(defun cancella_cerchi (/)
(setq n 0)
(setq p_linea (VLAX-ENAME->VLA-OBJECT (car (entsel))))
(repeat (length lista_cerchi)
(setq cerchio_obj (VLAX-ENAME->VLA-OBJECT (nth n lista_cerchi)))
(IF (/= (vlax-invoke p_linea 'intersectwith cerchio_obj acextendnone) nil)
(entdel (nth n lista_cerchi))
)
(setq n (1+ n))
)
)
But I have a problem. I need to extract the boundary of the hatch and not to select it manually.
I create my hatch with:
(command "_-bhatch" "_L" "bordo" "_a" "_r" "_y" "_i" "_y" "" "_p" "_u" "0" passo "_y" p "" ) and it can be have more that one polyline.
I really don't know how to do that, any advice?
Thanks!