Is there a simpler way to delete layers that still have objects in them (without having to turn all other layers off, then select all objects to delete, etc. etc.)?
Is there a simpler way to delete layers that still have objects in them (without having to turn all other layers off, then select all objects to delete, etc. etc.)?
Look at the Express Tools LAYDEL. Be careful, It takes no prisoners. It will
delete everything on that layer.
"Sebastian Interns" <nospam@address.withheld> wrote...
LAYDEL (in Express Tools) will erase all entities on the selected layer and optionally purge the layer.Is there a simpler way to delete layers that still have objects
in them (without having to turn all other layers off, then select
all objects to delete, etc. etc.)?
If you have Express Tools, try LAYMRG instead of LAYDEL, and merge the
layer(s) with layer 0 (zero): gives you an opportunity to decide what really
needs to be deleted and what you need as far as entities and text etc.
--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
If you don't have express try this it's been around for a while.
dave
; ************************************************** ******************
; DELLAYER.LSP
; This program deletes all entities on a specified layer.
; ************************************************** ******************
(defun C:DELLAYER (/ olderr ocmd L S)
;(adas_code_start)
(prompt "Delete all objects on selected layer")
(setq ocmd (getvar "CMDECHO"))
(setvar "CMDECHO" 0)
(prompt "Point to object on layer to delete: ") (terpri)
(setq L1 (entsel))
(setq l2 (entget (car l1)))
(setq l3 (assoc 8 l2))
(setq l (cdr l3))
(setq S (ssget "X" (list (cons 8 l))))
(if S
(command "ERASE" S "")
(princ "Layer empty or not a valid layer name.")
)
(setq S nil)
;(adas_code_end)
(princ)
)
(defun dellayn (name)
;(setq name (getstring "\nEnter the layer name to delete"))
(setq S (ssget "X" (list (cons 8 name))))
(if S
(command "ERASE" S "")
(princ "Layer empty or not a valid layer name.")
)
)
"Dean Saadallah" <info from pendean> wrote in message
news:4151aa82$1_2@newsprd01...
If you have Express Tools, try LAYMRG instead of LAYDEL, and merge the
layer(s) with layer 0 (zero): gives you an opportunity to decide what
really
needs to be deleted and what you need as far as entities and text etc.
--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
These guys are giving it away http://www.nu-waycorp.com/Downloads.htm
--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
what isolate layers in layers do ?
deleting hyperlinks