Jump to content
OTRT

Block removal

Recommended Posts

Lee Mac
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)
)

Share this post


Link to post
Share on other sites
ibach

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...

Share this post


Link to post
Share on other sites
Lee Mac
... 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?

Share this post


Link to post
Share on other sites
ibach

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

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...