Purge blocks
I was editing some of our older drawings which are in AcadR13 format and when trying to savekept getting some error message saying "cannotfind dimstyle associated with leader line" or something to that effect. I found that by purgingall blocks it solves the problem but we have hundreds of such drawings so brings me to the question does anyone have a lisp routine that would let you select multiple drawings and thenpurge the blocks from them? I have a similar routine called bprint (which I got from this forum) and it lets you select multiple dwgs for printing. If all else fails maybe someone can recommend a book or whatever on lisp programming.
Comments
-
I just recently was researching this. I came across a message in the Autodesk discussion groups. It was a DOS batch file, which would open every drawing in a directory and run a script. The script can do things like plotting or purging.Here is the message, but I couldn't get it to work. The DOS window always had a problem with the path. I am not familiar enough with advanced (and old) DOS batch files to resolve the problem.---Make a script file, let's say you call it Purge.scr. In it put:_purge_all*_noqsavequitThen make a batch file, let's say you call it Purge.bat. In it put:FOR %%D IN (*.DWG) DO C:\Progra~1AutoCA~1\ACLT %%D /b PURGE.SCRexitMake sure you change:C:\Progra~1\AutoCA~1\to the path where the aclt.exe is located.Then put both files in the same directory as the DWGs. For NT 4 I know you can just double-click on the batch file. For Win9x you may have to open a DOS box, change to the directory, and run the batch file from the command line. Win2000 should behave like NT 4.You may also want to put the purge command in a couple more times to be sure everything is out.---Joe Dunfee
0 -
Thanks for replying. Yes - it's getting hung up at the same spot for me too. Surely there ought to be some info on specifying paths in a batch file.I'll look on the web and see what's out there.
0 -
I have a lisp based on Doslib4 that purges a bunch of drawings.I anyone else wants it mail me.Patrik
0