Jump to content

Block removal


OTRT

Recommended Posts

Lee Mac, I have block named $AUDIT_BAD_BLOCK_RECORD1 that cannot be removed i.e it comes back after audit. What can I do about it? Any ideas?

Block is empty...

 

Refer: http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=12056161&linkID=9240617

 

Also, have you tried WBLOCK'ing the entire drawing?

 

The following simple LISP provides a quick way to do this:

 

(defun c:wba ( / dwg fnm tmp )
   (setq fnm
       (strcat
           (getvar 'dwgprefix)
           (cadr (fnsplitl (getvar 'dwgname)))
           "_wblock"
       )
   )
   (if (findfile (setq dwg (strcat fnm ".dwg")))
       (progn
           (setq tmp 1)
           (while (findfile (setq dwg (strcat fnm "(" (itoa (setq tmp (1+ tmp))) ").dwg"))))
       )
   )
   (command "_.wblock" dwg "*")
   (princ)
)

Link to comment
Share on other sites

  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • ibach

    8

  • Lee Mac

    5

  • OTRT

    4

  • dbroada

    3

Top Posters In This Topic

I have, and it helped, but than I had to use paperspace pages from the old dwg (a hell a lot of them) that i cannot redraw manually, when I imported them, all went to old error. So the error is somewhere in paperspace, but I do not know where... There are 100+ A0 pages...

Link to comment
Share on other sites

... when I imported them, all went to old error. So the error is somewhere in paperspace, but I do not know where...

 

To clarify: what is the error message that you receive?

Link to comment
Share on other sites

no message at all.

When I import paper space pages from the old dwg i get $AUDIT_BAD_BLOCK_RECORD1 reappearing in drawing after audit, that's why i know the error is in pspace in old dwg.

After AUDIT i get "no errors found". (Of course, old dwg was purged of $AUDIT_BAD_BLOCK_RECORD1 before importing layouts.)

Edited by ibach
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...