Where are Those Dang Blocks?

Discussion in 'AutoCAD' started by CS, Aug 19, 2003.

  1. CS

    CS Guest

    I am trying to locate a particular block in an Acad 2000 drawing in order to delete all occurances of it in that drawing. When I purge the drawing, that block still shows up on the block list as being referenced in the drawing. Is there a way to "find" that block's location in the drawing?

    Thanks...
     
    CS, Aug 19, 2003
    #1
  2. Catchy function name <g>
     
    Jason Piercey, Aug 19, 2003
    #2
  3. Thanks! ;-)

    --
    R. Robert Bell, MCSE
    www.AcadX.com


    | Catchy function name <g>
    |
    | --
    |
    | -Jason
    | Member of the Autodesk Discussion Forum Moderator Program
    |
    |
    | | > ;;; Written by: R. Robert Bell
    | > (defun rrbI:DieBlockDie (BlkN / Doc)
    |
    |
     
    R. Robert Bell, Aug 19, 2003
    #3
  4. CS

    DonB Guest

    This should list the enames of all references. From there it's up to you... &nbsp;:)



    &nbsp;



    (findBlkEnams YOURBLOCKNAME)



    &nbsp;



    (defun findBlkEnams (nam)
    &nbsp; (if (tblsearch "BLOCK" nam)
    &nbsp;&nbsp;&nbsp; (mapcar
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'cdr
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (vl-remove-if-not
    &nbsp;'(lambda (x) (= (car x) 331))
    &nbsp;(entget (cdr (assoc 330 (entget (tblobjname "block" nam)))))
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )
    &nbsp;&nbsp;&nbsp; )
    &nbsp; )
    )



    &nbsp;



    Don



    &nbsp;



    "CS" &lt;&gt; wrote in message news:...

    I am trying to locate a particular block in an Acad 2000 drawing in order to delete all occurances of it in that drawing. When I purge the drawing, that block still shows up on the block list as being referenced in the drawing. Is there a way to "find" that block's location in the drawing?

    Thanks...
     
    DonB, Aug 19, 2003
    #4
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.