Running scriptpro from a batch?

Discussion in 'AutoCAD' started by coachball8, May 10, 2004.

  1. coachball8

    coachball8 Guest

    I'm trying to setup a script to run nightly on certain folders on our network. I have a batch file written and scheduled to run as a task. Problem: If, for some reason, someone moves one or more of the drawings during the day, I get a prompt to either remove it or set the status to skip. I can't figure out how to enter this response into the batch file. Any ideas on this are greatly appreciated. TIA
     
    coachball8, May 10, 2004
    #1
  2. coachball8

    ECCAD Guest

    You will probably need to generate a 'file' list - just before running a script. In DOS shell, you could generate the list by:
    cd\your file path
    dir *.dwg >drawing.lst
    ...
    Then use drawing.lst as input in foreach loop..

    Bob
     
    ECCAD, May 10, 2004
    #2
  3. coachball8

    coachball8 Guest

    Thanks Bob,
    I was afraid that was going to be the answer. I was hoping to be able to build the project on Monday, start it running Monday night, and continue it each night. The number of dwg files is large, and it won't complete in one night. Since scriptpro labels them as "done", I'd like to be able to pick up where I left off the following night. Any other ideas on how to do this?
     
    coachball8, May 10, 2004
    #3
  4. coachball8

    ECCAD Guest

    Not really. 'New' files could be there also..
    Any way to break down the stack into smaller runs ?
    Bob
     
    ECCAD, May 10, 2004
    #4
  5. coachball8

    ECCAD Guest

    Only other way I can think of is to modify my EC-Batch. Produces a script that can 'include' up to 10 scripts, or Lisp programs for each .dwg in multiple folders. Present script built just does 'open' ..work on dwg .. qsave, next..
    But I could modify output script to include:
    (if (findfile "next file on list")..run script or lisp)
    ...or such.

    Bob
     
    ECCAD, May 10, 2004
    #5
  6. coachball8

    coachball8 Guest

    Don't know if lisp would be an answer to this or not. Scriptpro validates the project prior to running the actual script, and that's where it's hanging up on the missing files. I hope I didn't misunderstand your reply. Thanks again.
     
    coachball8, May 10, 2004
    #6
  7. coachball8

    ECCAD Guest

    Yes,
    That is the point. Scriptpro stores the project and file list. Therein lies the problem. It would need to 'refresh' the list of files, then run the script. All I'm saying is that (without using) Scriptpro at all, you could use EC-Batch to process all the .dwg's in multiple folders, and call up any script or lisp you want to run on them.
    See EC-Batch at: www.bobscadshop.com
    If you think it will do the job, I'll send you a copy (freebe).
    Bob
     
    ECCAD, May 10, 2004
    #7
  8. coachball8

    coachball8 Guest

    Will it work on WinXP/ AutoCad 2K4?
     
    coachball8, May 10, 2004
    #8
  9. coachball8

    ECCAD Guest

    You betcha.
    Bob
     
    ECCAD, May 10, 2004
    #9
  10. coachball8

    coachball8 Guest

    Sounds good to
    Thanks for the help!
     
    coachball8, May 10, 2004
    #10
  11. coachball8

    ECCAD Guest

    Ok,
    Coming your way.
    Bob
     
    ECCAD, May 10, 2004
    #11
  12. coachball8

    coachball8 Guest

    Thanks Bob, but the files too big. The e-mail bounced. Can you post it in customer files?
     
    coachball8, May 10, 2004
    #12
  13. coachball8

    ECCAD Guest

    You got another mailbox ?
    I can't post in customer files, cause it's the 'real' thing.
    Bob
     
    ECCAD, May 10, 2004
    #13
  14. coachball8

    coachball8 Guest

    Yeah. Let's try it at

    Thanks again for your help.
     
    coachball8, May 10, 2004
    #14
  15. coachball8

    ECCAD Guest

    OK
    Bob
     
    ECCAD, May 10, 2004
    #15
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.