Hello, everyone. I would need a command to select (and then delete) at the same time multiple objects (blocks, lines, texts) equal and overlap.
Someone knows how to do it.
Thank you.
express tools are additional programs, from autocad help: how to check if express tools has been loadedto the command line, type express to activate the tools.
you can install autocad express tools as part of autocad installation or add it later using the application installation feature in the control panel.
how to access express tools and related toolbarsto display the express menu, to the command line type menuexpress.
to view the toolbars express, right-click a toolbar anchored. click express and select an express toolbar. repeat this procedure until all desired express toolbars are displayed.
suggestions once you see the toolbars express, select and save a work area. the bars of the express tools will therefore always be included in this work area.
commentsto select overlapping objects I tried to put down this code that exploits overkill, a selection group is created that you can switch to the next command object selection request by typing p (previous). It would work. :smile:
(defun cverselect)
(command "_undo" "_begin")
(cverkill)
(setq sel_after (ssget "_x"))
(command "_undo" "_end")
(command "_u")
(setq sel_new (ssadd))
(setq sel (ssget "_x"))
(Sect n. 1)
(repeat (sslength sel)
(setq e1 (ssname sel (setq n (1+ n)))))
(if (not (ssmemb e1 sel_after) (setq sel_new (ssadd e1 sel_new)))
)
(command "_select" sel_new")
)
; at the launch of a command type p (previous) to the request for selection of objects.