Removing Large Quantity of Unreferenced, unnested XREFs

Removing Large Quantity of Unreferenced, unnested XREFs

phil_ferlino
Participant Participant
177 Views
12 Replies
Message 1 of 13

Removing Large Quantity of Unreferenced, unnested XREFs

phil_ferlino
Participant
Participant

Somehow through using successive pdf imports into model space, I have ended up with thousands of unreferenced xrefs. I want to remove these as it cloggs up the file. If I do this manually, it takes days (literally). How can I remove them in a batch manner rather than manually? I've seen some conflicting comments that you can use the PURGE command, but I believe you have to (manually) detach them first, which is where the problem lies. These are not nested or even linked to their original content. I hate having to import large pdfs as handy as it is for small imports. Any help is greatly appreciated. Thx. 

0 Likes
Accepted solutions (3)
178 Views
12 Replies
Replies (12)
Message 2 of 13

paullimapa
Mentor
Mentor

That's odd because PDFImport command only brings in vector and image files.

How do you end up with a drawing that has unreferenced xrefs?

Could you share a sample dwg using eTransmit command?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 13

pendean
Community Legend
Community Legend
Accepted solution

WBLOCK command, select only what you see on screen that you want to keep: the newly created file will only contain your selections, nothing more @phil_ferlino and it only takes a minute per file at most.

 

PLUS there are freebie add-ons at the Autodesk App Store plus LISP tools everywhere to "purge" your files with one click out there too, start exploring, no one has had to spend days purging a file in decades now.

 

HTH

0 Likes
Message 4 of 13

BhaskarMurari
Autodesk
Autodesk
Accepted solution

@phil_ferlino 

That contain Xref PDF o

0 Likes
Message 5 of 13

phil_ferlino
Participant
Participant
Accepted solution

Thanks everyone for the replies. With the use of the WBLOCK command, I was able to save all geometry AND sheet tabs to a fresh drawing without 10k+ XREFs. Success!!

 

When using the pdf Import command, I will be watchful of what comes into the XREF panel.

 

Ideally, we get DWG's from the architect, but sometimes we need to work quickly with what we have, and while the pdf import command is a great addition, it can add alot of clutter to the DWG file. 

0 Likes
Message 6 of 13

paullimapa
Mentor
Mentor

Curious did you manually goto each layout tab one at a time and execute the WBLOCK command to save the layouts?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 7 of 13

phil_ferlino
Participant
Participant

Actually no, I simply executed the WBLOCK command, then selected 'entire contents of drawing'. I did not have to select anything, and it grabbed all the geometry AND the sheet tabs and made a *.DWG file. I simply opened it up and all geometry was intact in model space including all the pdf objects, the sheet tabs, but with only 3 XREFs in the XREF panel. It was quite magical and the exact solution that I was hoping for. 

0 Likes
Message 8 of 13

paullimapa
Mentor
Mentor

When you say “Sheet tabs” are these layout tabs?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 9 of 13

phil_ferlino
Participant
Participant

Yes, the sheet layout tabs were intact. I thought I would need to recreate these, but I did not have to do this after all.

0 Likes
Message 10 of 13

paullimapa
Mentor
Mentor

I'm surprised that assuming you chose the Wblock> Entire Drawing option that also removed the unreferenced xrefs

paullimapa_0-1758308596081.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 11 of 13

phil_ferlino
Participant
Participant

It sounds like you don't believe me. Yes, I chose entire drawing--try it for yourself. I still have the original drawing so I repeated the operation and saved to a new file, and yes the layout tabs were also saved in the new drawing.

0 Likes
Message 12 of 13

paullimapa
Mentor
Mentor

well, glad that worked out for you...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 13 of 13

paullimapa
Mentor
Mentor

If you're adventurous, perhaps try this free purge app to see if it'll also get rid of your unreferenced xrefs and without having to even open the dwg also supports batch processing:

https://apps.autodesk.com/ACD/en/Detail/Index?id=3773138176974634673&appLang=en&os=Win32_64


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes