+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 19

Thread: Deleting layers

  1. #1
    Junior Member
    Using
    AutoCAD 2010
    Join Date
    Jun 2012
    Posts
    11

    Default Deleting layers

    Registered forum members do not see this ad.

    I am trying to tidy up some drawing by deleting layers. I have deleted all the object in the layer but still get this error.

    Untitled.jpg

    What do I need to do?

  2. #2
    Super Member Dana W's Avatar
    Computer Details
    Dana W's Computer Details
    Operating System:
    Windows 8 64 bit
    Computer:
    Dell XPS 410
    Motherboard:
    Dunno
    CPU:
    Intel I-5 3330S @ 2.7 Ghz
    RAM:
    6 Gb
    Graphics:
    On board barely adequate
    Primary Storage:
    1 Terrabyte
    Secondary Storage:
    1 Terrabyte external
    Monitor:
    All in one 27" touch & pen
    Discipline
    Construction
    Dana W's Discipline Details
    Occupation
    Independent Architectural Draftsman
    Discipline
    Construction
    Details
    Residential Homes, Construction and Renovation
    Using
    AutoCAD LT 2009
    Join Date
    Feb 2010
    Location
    Chuluota, Florida
    Posts
    1,764

    Default

    Try purge.
    Yogi Berra: "In theory there is no difference between theory and practice. In practice there is."

  3. #3
    Full Member pendean's Avatar
    Computer Details
    pendean's Computer Details
    Operating System:
    Windows 7 64it Pro
    Computer:
    HP
    Discipline
    Architectural
    Using
    AutoCAD 2013
    Join Date
    Jun 2011
    Location
    Texas
    Posts
    71

    Default

    Unless you are using an ancient version of AutoCAD, look up and use LAYDEL and/or LAYMRG commands.

  4. #4
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,779

    Default

    The "Layers containing objects" is the one that is probably the problem. An example you can have a block that exists in the dwg database but you have not inserted it anywhere, hence use Purge. Also CIV3d will not allow layer deletes if its connected to a style, but in 2013 you can remove un used styles then purge. I can see AC2012 but if drawing has proxy objects this problem will occur.
    A man who never made mistakes never made anything

  5. #5
    Full Member Ivan006's Avatar
    Computer Details
    Ivan006's Computer Details
    Operating System:
    Windows 7
    Discipline
    Mechanical
    Ivan006's Discipline Details
    Occupation
    CAD Operator
    Discipline
    Mechanical
    Using
    AutoCAD 2010
    Join Date
    Oct 2009
    Posts
    37

    Default

    Quote Originally Posted by pendean View Post
    Unless you are using an ancient version of AutoCAD, look up and use LAYDEL and/or LAYMRG commands.

    Thanks Pendean. Very helpful.

  6. #6
    Super Member CyberAngel's Avatar
    Computer Details
    CyberAngel's Computer Details
    Operating System:
    Windows XP Pro
    Computer:
    Dell Optiplex 330
    Discipline
    Civil
    CyberAngel's Discipline Details
    Occupation
    Civil Drafter
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Jul 2006
    Location
    Anywhere Else
    Posts
    976

    Default

    One of the "objects" that can prevent layer deletion is a block definition closer. When you define a block, the objects are added to the block table, along with one phantom object at the end to close the definition. That closer object always goes on the current layer. If you're not careful when you define a block, or you borrow a block from somewhere else, that layer is arbitrary, that is, you don't know what it is, and there's no way to find out what it is. That's why I always define blocks with layer 0 current.

    I'm not sure what happens when you use LAYDEL in that situation. The closer might get moved to the current layer, or to 0, or to some other layer. With AutoCAD there's no telling. If I had time I'd figure it out. If I had more time I'd write some code to manage the layers of block definition closers.
    breaking AutoCAD on a regular basis since 1991

  7. #7
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,932

    Default

    Quote Originally Posted by CyberAngel View Post
    I'm not sure what happens when you use LAYDEL in that situation.
    FWIW - LAYDEL is quite powerful... It will not only delete the Layer Object from the Layer Collection, but also all entities that reside on said layer (this includes Block Definitions).
    "Potential has a shelf life." - Margaret Atwood

  8. #8
    Super Member RobDraw's Avatar
    Using
    AutoCAD 2011
    Join Date
    Apr 2007
    Location
    Connecticut, USA
    Posts
    1,210

    Default

    Quote Originally Posted by CyberAngel View Post
    One of the "objects" that can prevent layer deletion is a block definition closer. When you define a block, the objects are added to the block table, along with one phantom object at the end to close the definition. That closer object always goes on the current layer. If you're not careful when you define a block, or you borrow a block from somewhere else, that layer is arbitrary, that is, you don't know what it is, and there's no way to find out what it is. That's why I always define blocks with layer 0 current.
    That makes no sense to me. I have never seen nor heard of this. Do you have any documentation? I think it may help me out with something.
    Rob

  9. #9
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,020

    Default

    Cyber: I don't think it matters what layer the block is created on when it comes to using LAYDEL. The block and the layer it was created on will both be deleted.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  10. #10
    Super Member CyberAngel's Avatar
    Computer Details
    CyberAngel's Computer Details
    Operating System:
    Windows XP Pro
    Computer:
    Dell Optiplex 330
    Discipline
    Civil
    CyberAngel's Discipline Details
    Occupation
    Civil Drafter
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Jul 2006
    Location
    Anywhere Else
    Posts
    976

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by RobDraw View Post
    That makes no sense to me. I have never seen nor heard of this. Do you have any documentation? I think it may help me out with something.
    Here's a link to an Autodesk docs page:
    http://docs.autodesk.com/ACD/2013/EN...ber=d30e579828

    The key phrase there is "Block definitions begin with a block entity and end with an endblk subentity." If you export a drawing to DXF format, you'll find an ENDBLK entity in each block definition, and that entity has a layer assigned to it.

    I am not making this up. I once had a layer that I couldn't purge, and I made it my mission in life to purge it. I looked into block definitions and found some info on ENDBLK. I found that if I could purge a particular block, then I could purge the offending layer. I redefined the block on a different layer and voila, the layer would purge.

    Quote Originally Posted by ReMark View Post
    Cyber: I don't think it matters what layer the block is created on when it comes to using LAYDEL. The block and the layer it was created on will both be deleted.
    I've never seen a block removed by the LAYDEL command. Just now, for fun, I put all the entities in a block on one layer and then used LAYDEL to remove that layer. The block wasn't removed, but as you might expect, it lost all its entities.
    breaking AutoCAD on a regular basis since 1991

Similar Threads

  1. Deleting Layers
    By Chandni in forum AutoCAD General
    Replies: 22
    Last Post: 7th May 2009, 02:16 pm
  2. Deleting layers
    By reyems in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 12th Mar 2009, 01:29 pm
  3. Deleting layers that have nothing on them..
    By NateSlink in forum AutoCAD Drawing Management & Output
    Replies: 13
    Last Post: 19th Nov 2008, 09:42 pm
  4. deleting layers
    By Figment in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 23rd Jan 2008, 05:49 pm
  5. Deleting certain layers
    By Starkey in forum AutoCAD General
    Replies: 3
    Last Post: 22nd Jan 2007, 10:04 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts