SaveAs from a scipt?

Discussion in 'AutoCAD' started by BillZ, Nov 19, 2004.

  1. BillZ

    BillZ Guest

    R2005

    We are in the middle of a project that will require us to create copies of around 4000 parts drawings with slightly different file names from the originals.
    Can this be done in a script?

    TIA

    Bill
     
    BillZ, Nov 19, 2004
    #1
  2. BillZ

    T.Willey Guest

    Bill,

    Could you just set up a routine to run(vl-file-copy ? If the name is only going to be change by a certain variable in all the old names to a new variable in the new names, I would think it would work for you.

    Tim
     
    T.Willey, Nov 19, 2004
    #2
  3. BillZ

    Jason Wilder Guest

    The simple answer is yes.

    The scriptlines would be:
    _saveas
    "filedir/newfilename"

    Can also use a loop like Tim suggests.


    around 4000 parts drawings with slightly different file names from the
    originals.
     
    Jason Wilder, Nov 19, 2004
    #3
  4. BillZ

    BillZ Guest

    Thanks,
    I wasn't sure if saveas would kill the script or not.

    I could vl-file-copy but I have to make other fixes in the new drawings anyway.

    Bill
     
    BillZ, Nov 22, 2004
    #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.