See the top rated post in this thread. Click here

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: Help finding the relevant Block so Layer 1 can be Purged

  1. #11
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,831
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Quote Originally Posted by jaberwok
    The block definition.
    If you drill it down, layer "1" is referenced in the anonymous block "*X6"
    (A04119 contains an INSERT of this anonymous block).
    R.K. McSwain | CAD Panacea |

  2. #12
    Active Member
    Join Date
    2003-02
    Posts
    62
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    So how did you find it & what is the solution?

  3. #13
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,831
    Login to Give a bone
    1

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Quote Originally Posted by bjack56
    So how did you find it & what is the solution?
    I didn't try every trick in the book, but I didn't see layer "1" in there by using normal means. However, as soon as you purge the block "*X6", then layer 1 becomes elegible for purging. Maybe layer "1" is referenced in xdata contained in this block....

    SuperPurge is good for these types of problems.
    R.K. McSwain | CAD Panacea |

  4. #14
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    I used Wblock and picked each block, one at a time, from the dropdown list then opened the new file.

  5. #15
    Active Member ralphsanchez's Avatar
    Join Date
    2004-10
    Location
    Austin, TX
    Posts
    67
    Login to Give a bone
    1

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Ten years ago, Jay Garnett wrote a LISP routine, MYSTERY, which prompts you for a layer and then shows you a list of all of the blocks in your drawing that contain entities on that layer. The code can be found in his post here. I still use it to this day. A zip file containing the LSP and DCL files is attached..
    Attached Files Attached Files

  6. #16
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Cool info ... didn't know how to do this sort of thing. Something new learned today.
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

  7. #17
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,831
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Quote Originally Posted by ralphsanchez
    Ten years ago, Jay Garnett wrote a LISP routine, MYSTERY, which prompts you for a layer and then shows you a list of all of the blocks in your drawing that contain entities on that layer.
    That lisp doesn't work on this drawing.

    One reason is that it skips anonymous blocks, but even if you bypass that, it still doesn't find it.

    Ok, I found the culprit. The ENDBLK entity of the block *X6 is on layer "1".
    Apparently, whatever created or last edited this block introduced this error since I'm guessing that the ENDBLK entity should always be on the same layer as the BLOCK entity.
    Neither RECOVER or AUDIT catch it either.

    To query this entity, do this:
    Code:
    (entget (handent "4e95c"))
    Last edited by rkmcswain; 2006-09-13 at 08:52 PM.
    R.K. McSwain | CAD Panacea |

  8. #18
    Active Member ralphsanchez's Avatar
    Join Date
    2004-10
    Location
    Austin, TX
    Posts
    67
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Thanks for the info, RK. I've never seen anything like this, and I'm obsessive about clean DWG files. Was A04119 originally hatched in AutoCAD, bjack56? Based on the fact that the layername is "1" and that *X6 isn't a regular AutoCAD hatch, I'm guessing it may have come from Microstation somewhere in its history.

    As RK pointed out, this emphasizes how nice superpurge is, since it easily takes care of the layer 1 problem in that DWG when using the "hard" option. Interestingly, after erasnig ALL, even spurge seems to have trouble purging the block block TICK1 from that drawing.


    Quote Originally Posted by rkmcswain
    That lisp doesn't work on this drawing.

    One reason is that it skips anonymous blocks, but even if you bypass that, it still doesn't find it.

    Ok, I found the culprit. The ENDBLK entity of the block *X6 is on layer "1".
    Apparently, whatever created or last edited this block introduced this error since I'm guessing that the ENDBLK entity should always be on the same layer as the BLOCK entity.
    Neither RECOVER or AUDIT catch it either.

    To query this entity, do this:
    Code:
    (entget (handent "4e95c"))

  9. #19
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,831
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Quote Originally Posted by ralphsanchez
    Thanks for the info, RK. I've never seen anything like this,
    Remember back in R14, there was a bug that allowed programmers to create a SEQEND entity with a layer different than the layer of the VERTEX entities when using (entmake) to create a POLYLINE.

    This is similar although I don't know if you can do this on purpose using VBA or LISP in 2004/5/6/7
    R.K. McSwain | CAD Panacea |

  10. #20
    Active Member
    Join Date
    2003-02
    Posts
    62
    Login to Give a bone
    0

    Default Re: Help finding the relevant Block so Layer 1 can be Purged

    Thanks for all the help & info....I will try some of the fixes after my deadline for getting the Bid Set drawn passes in the next couple of days.

    I have no idea where this originated, but it has cropped up from time to time in my drawings, probably some Civil Engineer....JUST KIDDING!!

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Finding out why an item can't be purged.
    By Wish List System in forum AutoCAD Wish List
    Replies: 18
    Last Post: 2019-03-29, 03:18 AM
  2. 2015: Find command not finding field values in dynamic block
    By jpcadconsulting347236 in forum Dynamic Blocks - Technical
    Replies: 3
    Last Post: 2017-07-27, 07:56 PM
  3. Finding a block within a drawing
    By csorensen in forum AutoCAD General
    Replies: 2
    Last Post: 2010-06-09, 04:13 PM
  4. Is RMEP relevant?
    By Liamnacuac in forum Revit - In Practice
    Replies: 3
    Last Post: 2009-02-06, 06:03 PM
  5. Finding objects on a particular layer
    By zride91 in forum AutoCAD General
    Replies: 3
    Last Post: 2008-09-10, 12:31 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
  •