Results 1 to 6 of 6

Thread: Deleting Layers

  1. #1
    Sebastian Interns Guest

    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.)?

  2. #2
    Jason Rhymes Guest
    Look at the Express Tools LAYDEL. Be careful, It takes no prisoners. It will
    delete everything on that layer.

  3. #3
    R.K. McSwain Guest
    "Sebastian Interns" <nospam@address.withheld> wrote...
    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.

  4. #4
    Dean Saadallah Guest
    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
    --

  5. #5
    Dave Guest
    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
    --

  6. #6
    Dean Saadallah Guest
    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
    --

Similar Threads

  1. Deleting points
    By Mermaid in forum AutoCAD
    Replies: 1
    Last Post: 06-02-2005, 05:10 PM
  2. Deleting -VID and -HID layers
    By Chris in forum AutoCAD
    Replies: 1
    Last Post: 02-12-2005, 05:28 PM
  3. what isolate layers in layers do ?
    By prasath in forum Pro/Engineer
    Replies: 1
    Last Post: 01-24-2005, 12:51 AM
  4. deleting hyperlinks
    By Sean in forum VBA
    Replies: 1
    Last Post: 12-29-2004, 01:09 PM
  5. Deleting returns in mtext
    By dennisg in forum AutoCAD
    Replies: 2
    Last Post: 10-11-2004, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum