| Author |
Message |
Sebastian Interns
Guest
|
Posted:
Wed Sep 22, 2004 4:58 pm Post subject:
Deleting Layers |
|
|
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.)?
|
|
| Back to top |
|
 |
Jason Rhymes
Guest
|
Posted:
Wed Sep 22, 2004 5:10 pm Post subject:
Re: Deleting Layers |
|
|
Look at the Express Tools LAYDEL. Be careful, It takes no prisoners. It will
delete everything on that layer. |
|
| Back to top |
|
 |
R.K. McSwain
Guest
|
Posted:
Wed Sep 22, 2004 5:23 pm Post subject:
Re: Deleting Layers |
|
|
"Sebastian Interns" <nospam@address.withheld> wrote...
| Quote: | 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.)?
|
LAYDEL (in Express Tools) will erase all entities on the selected layer and optionally purge the layer.
|
|
| Back to top |
|
 |
Dean Saadallah
Guest
|
Posted:
Wed Sep 22, 2004 8:38 pm Post subject:
Re: Deleting Layers |
|
|
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
-- |
|
| Back to top |
|
 |
Dave
Guest
|
Posted:
Thu Sep 23, 2004 1:13 am Post subject:
Re: Deleting Layers |
|
|
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...
| Quote: | 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
--
|
|
|
| Back to top |
|
 |
Dean Saadallah
Guest
|
|
| Back to top |
|
 |
|
|
|
|