Delete a layer...

Discussion in 'AutoCAD' started by tsigwing, Feb 19, 2004.

  1. tsigwing

    tsigwing Guest

    I've got some layers in my drawing that absolutely have nothing on them and they are not referenced by any blocks, but I cannot purge them out. Seems that sometimes when this has happened if I delete all of the viewports (even though the viewport is not on that layer) I can then purge out the layer(s). I have too many viewports in my current drawing to do this. Any ideas on how to get rid of these layers?
     
    tsigwing, Feb 19, 2004
    #1
  2. tsigwing

    BillZ Guest

    Use:

    (setq ss (ssget "X" (list (cons 8 "LayerName"))))

    to check each layer to see if there is anything on them.
    Could be a zero length text line or viewport.
    Either change the ents in ss to another layer or delete them.

    You could wblock the entire drawing out to another name and see if you can purge it and then replace the old drawing with it.

    HTH

    Bill
     
    BillZ, Feb 19, 2004
    #2
  3. Is the layer frozen in one of the viewports?

    --

    -Jason
    Member of the Autodesk Discussion Forum Moderator Program


    referenced by any blocks, but I cannot purge them out. Seems that sometimes when this has
    happened if I delete all of the viewports (even though the viewport is not on that layer)
    I can then purge out the layer(s). I have too many viewports in my current drawing to do
    this. Any ideas on how to get rid of these layers?
     
    Jason Piercey, Feb 19, 2004
    #3
  4. tsigwing

    tsigwing Guest

    Yes.
     
    tsigwing, Feb 19, 2004
    #4
  5. Thaw that layer in all the viewports, then you should
    be able to purge (assuming there are no other items
    referencing the layer)
     
    Jason Piercey, Feb 19, 2004
    #5
  6. tsigwing

    tsigwing Guest

    That got it. Is this because the vp holds the layer name in the extended data?
     
    tsigwing, Feb 19, 2004
    #6
  7. Yes.
     
    Jason Piercey, Feb 19, 2004
    #7
  8. tsigwing

    Jan C Guest

    If you can not purge a layer that is not used, even in a block, than mostly
    it contains invisible objects.
    Invisible objects are for instance Text that contains spaces or Blocks that
    do not contain any objectst.
    You can not erase those objects because yo can not select them with a
    crossing or window.
    You can only select them with the option keyword ALL.
    Do the following:

    1: Thaw, On and Unlock all layers.
    2: Go to Model
    3: Zoom All.
    4: Activate ERASE.
    5: Type in: ALL <Enter>
    6: De-select everything on your screen with a crossing (pressing
    <Shift>).
    7: Press <Enter> to end selection.
    8: Repeat 3 - 7 in all layouts.
    9: Try to purge your layer.

    JanC.

    and they are not referenced by any blocks, but I cannot purge them out.
    Seems that sometimes when this has happened if I delete all of the viewports
    (even though the viewport is not on that layer) I can then purge out the
    layer(s). I have too many viewports in my current drawing to do this. Any
    ideas on how to get rid of these layers?
     
    Jan C, Feb 21, 2004
    #8
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.