Batch Process

Discussion in 'AutoCAD' started by mike0w, Mar 3, 2005.

  1. mike0w

    mike0w Guest

    I need to create a seven step batch process anyone that can help your advice is appreciated. here we go:

    step 1:
    open drawing (designated selecting a group of drawings or directory)
    step 2:
    turn layer(s) off (by name)
    step 3:
    zoom extents
    step 4:
    purge all
    step 5:
    save drawing
    step 6:
    close drawing
    step 7:
    open next drawing and repeated steps on each drawing until the whole list or directory until complete.

    I need to do this to over 75 files and something like this would save alot of time.
    any help is appreciated I am currently using 2005 I am new to this version is there
    something than will do this for me??? Please Help.

    Thanks
     
    mike0w, Mar 3, 2005
    #1
  2. mike0w

    Matt W Guest

    Look in the 2005 NG for a reply and please don't cross post.
     
    Matt W, Mar 3, 2005
    #2
  3. mike0w

    John Laidler Guest

    Use 'scriptpro', which comes with AutoCAD. Load the drawings you want to
    'purge' and close.
    Then create a script that loads this lisp routine into the drawing. If you
    need help using scriptpro, just let me know.


    ;Close Paperspace Drawing
    (IF (= (GETVAR "TILEMODE") 0)(progn
    (command "pspace")
    (command "ZOOM" "A")
    (command ".qsave")

    (repeat 5 (command "-purge" "a" "*" "n"))

    (setvar "clayer" "0")
    (command ".qsave")
    (command "close")))

    ;Close Modelspace Drawing
    (IF (= (GETVAR "TILEMODE") 1)(progn
    (command "ZOOM" "E" "ZOOM" ".9X")
    (command ".qsave")

    (repeat 5 (command "-purge" "a" "*" "n"))

    (setvar "clayer" "0")
    (command ".qsave")
    (command "close")))





    advice is appreciated. here we go:
     
    John Laidler, Mar 8, 2005
    #3
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.