Purge xref - definition is in an unknown block

Purge xref - definition is in an unknown block

skylinejeff
Advocate Advocate
1,245 Views
4 Replies
Message 1 of 5

Purge xref - definition is in an unknown block

skylinejeff
Advocate
Advocate

Hey Guys and Gals

 

I've received a file from a client that started out as a complete mess.  I've been able to clean it up quite a bit, and I've detached all xrefs (since they were not part of the transmitted data and are not needed for my scope of work).

 

I'm left with a single "master" drawing, model space only (the default Layout 1 contains no data and no objects), and no xrefs except for one bugger that I can't get rid of.

 

I tried 

 

1) Purge All until purge options die

2) qselect to attempt to select "External References" which does not show up as an option, so the xref is not part of the reference structure of the main file

3) Audit to look for invalid objects (there were > 1000 at the beginning but now at zero)

 

So I'm convinced that there is a block reference that references the xref somehow within the block.  I've got a couple hundred unique blocks in the drawing, and I REALLY don't want to explode them all.

 

When I simply list all blocks through the command line, the offending xref does indeed show up, with the note that it's an xref.  But for whatever reason, AutoCAD doesn't seem to have any way to find WHICH block is referencing the xref.

 

I want to find that ONE block, explode it, delete the xref reference, convert back to a block, then detach the xref from the main file.

 

The are BLOCKS I'm talking about, NOT xrefs (yes, I know the difference).

 

I used to use LISP back in the day and I seem to recall some sort of tablesearch routine that could find nested corrupt objects, but I'm at a loss.

 

Any ideas?

 

Jeff

0 Likes
Accepted solutions (1)
1,246 Views
4 Replies
Replies (4)
Message 2 of 5

leothebuilder
Advisor
Advisor

From within the xref dialog is it possible to bind the xref and use "insert as block" option?

0 Likes
Message 3 of 5

skylinejeff
Advocate
Advocate

 

I should have added that the xref is actually unresolved.  It's a dwg file that I don't have, so since it's unresolved I can't bind it.

 

Good thought though.

0 Likes
Message 4 of 5

M_Hensley
Advisor
Advisor
Accepted solution

Create a new drawing with nothing in it. Name it the same as the unfound xref. Reattach it in your drawing then bind it.

0 Likes
Message 5 of 5

skylinejeff
Advocate
Advocate

So Simple...So Brilliant!  

 

Thanks a bunch!

0 Likes