Have some files developed over serveral versions of A-CAD and includes stuff from client drawings. There are blocks that will not delete. Even went so far as doing a SaveAs and then deleted all items from Model Space, all existing tabs in Paper Space (Acad put up a new Layout1tab). I then deleted all layers except 0, and all xref and I still have a bunch of unused blocks. When clicking on the list of things Purge will not delete there are listings with an * as the lead character that I suspect are the culprets that contain over 50 blocks that Purge won't let me delete.
Thanks in advance for any help in getting rid of this clutter.
Solved! Go to Solution.
Solved by bham4ever. Go to Solution.
Solved by mathewkol. Go to Solution.
And if you go to purge and toggle "View items you cannot purge" you see them.
Well this is a problem solver for you.
You want to clean the drawing and you want to keep all your paperspace tabs so you will end up with a clean drawing.
1) use the command -wblock
2) enter a new name
3) enter * (that will tell Autocad to create a new drawing with everything in it)
4) close the old drawing don't save and open your new clean drawing with all your paperspace tabs, your done!
YOUR WELCOME...........
Took me a little while to figure that one out, but what a time saver ..for sure.
And it's Birmingham Al.
@bham4ever wrote:
YOUR WELCOME...........
And it's Birmingham Al.
Perhaps an old customer of ours? ALACAD
Is there any reason why the -wblock method won't work in LiSP?
(command "-wblock" (strcat (getvar "dwgprefix") "CLEAN_" (getvar "dwgname"))"*")
When I run the -wblock manually it cleans the drawing, but when I run it in LiSP it goes through without errors, but the new file is the same size as the old one.
Any help is appreciated.
Scott
Hi guys
I have the same problem but the Wblock wont do the trick is there something im doing wrong
I dont know if it can be a factor the unused block I need to get rid are in other blocks?
Can someone help me
thanks
Hi,
Do you know what AutoCAD is doing when you go through the process:
@bham4ever wrote:
1) use the command -wblock
2) enter a new name
3) enter * (that will tell Autocad to create a new drawing with everything in it)
4) close the old drawing don't save and open your new clean drawing with all your paperspace tabs, your done!
I thought "wblock" creates blocks, not cleans up files.
Glad to hear it.
Since I showed it to our users they have made it a easy way to clean out a drawing, hasn't failed us ...yet.
That is true, but you can export out the Layerstate from your old drawing and import it back in to the new drawing.
Also could be DGN items originally from Civil Microstation files. These items get copy/pasted invisibly into dwg after dwg after dwg even if you just copy one line, and you can't see them or Purge them, and -wblock isn't working for me for every drawing. 2013+ has a Hotfix and 2015+ has incorporated DGN into Purge command. Or you can DXF out, and then Purge/Audit, and then save back to DWG.