Create a batch command?

Discussion in 'AutoCAD' started by Chris Chiles, Feb 17, 2005.

  1. Chris Chiles

    Chris Chiles Guest

    How would I go about creating a batch command that i could run on a folder
    or set of folders which would open each drawing in the folder, run a command
    (lfd - Layer Filter Delete), save the drawing, and move to the next one?

    We donot use layer filters much at all and we've noticed that all of our
    drawing have somewhere between 500 to 1000 layer filters in them. If we
    delete they decrease the file size by as much as half!

    Thanks,
    Chris
     
    Chris Chiles, Feb 17, 2005
    #1
  2. Chris Chiles

    Guest Guest

    look into ScriptPro
     
    Guest, Feb 17, 2005
    #2
  3. Chris Chiles

    Dommy2Hotty Guest

    Example .bat file that opens every drawing (in the folder that the .bat resides) and runs the script using the /b command switch. You'll have to do a little tweaking to suite your needs, but it isn't that involved at all.
    Code:
    FOR %%V IN (*.DWG) DO START /W "c" "C:\Program Files\Autodesk Architectural Desktop 2005\acad.exe" %%V /nologo /c "Z:\Configs" /b "Z:\Scripts\Purge.scr"
     
    Dommy2Hotty, Feb 17, 2005
    #3
  4. Chris Chiles

    John Schmidt Guest

    I use AutoM8 from www.m8tools.com for this. I just have it run a Layer
    Filter Delete routine downloaded from here. AutoM8 opens a single session of
    AutoCAD, and then just opens, modifies, and saves all the drawings in
    whatever folders I want - highly recommended.

    John
     
    John Schmidt, Feb 17, 2005
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.