Elektrik Posted December 21, 2021 Posted December 21, 2021 I have a dwg file that contains several external references that I can't detect. It seems like some elements, blocks, etc. copied from another drawing, and that original drawing was the one containing these external references. So, it seems like they are like ghost external references or something, and I can't get rid of them. Thanks in advance. Quote
mhupp Posted December 21, 2021 Posted December 21, 2021 (edited) Make sure all layers are on, thawed, and unlocked. run audit then purge. See if you have any nested blocks that have a reference in them. Still there ? might just be easier to start a new drawing and copy things over. with the help of steal Edited December 21, 2021 by mhupp 2 Quote
Steven P Posted December 21, 2021 Posted December 21, 2021 If it was just one drawing I would do the usual purge, audits and so on and like mhupp just copy to a new drawing and replace the bad one, you can also wblock the drawing which is a common solution. Creating a LISP for just one drawing is a bit of overkill unless someone has something already written. Remember to select the objects mouse top left to bottom right and not the other way else you might still get these rogue objects. If not you can look into the blocks you want to keep, there might be one of them that references these 'ghost' elements, - could try delete the block, purge and insert a new version ... but for a one off drawing writing and checking a LISP routine sounds like a lot of work 1 1 Quote
ronjonp Posted December 21, 2021 Posted December 21, 2021 4 hours ago, Elektrik said: I have a dwg file that contains several external references that I can't detect. It seems like some elements, blocks, etc. copied from another drawing, and that original drawing was the one containing these external references. So, it seems like they are like ghost external references or something, and I can't get rid of them. Thanks in advance. Post your file. 2 Quote
exceed Posted December 22, 2021 Posted December 22, 2021 (edited) case0. Run PURGE, AUDIT case1. Clean up DGN rubbish (paste to command line include "( )" ) (dictremove (namedobjdict) "acad_dgnlinestylecomp") if anwer is "nil", your drawing is clean case2. use delproxy https://forums.autodesk.com/t5/autocad-forum/proxy-objects-acad-p-id-how-do-you-purge-them/td-p/2582872 case3. use delblank (maybe purge do this) https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/find-and-delete-a-block-if-attributes-are-blank/td-p/2524433 case4. DWG->DXF->DWG converting by save as or by command DXFOUT, DXFIN case5. DWG version downgrade by save as then save as latest version case6. select contents to preserve then use WBLOCK command. case7. Detach all XREF : -XREF > D > * case8. It doesn't matter if the drawing is changed select all - qse (quickselect) - set filter to all block - explode loop this until no more blocks are selected then redo this routine from case0 Edited December 22, 2021 by exceed 1 Quote
Recommended Posts
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.