Script Brain Lock....

Discussion in 'AutoCAD' started by Jason Wilder, Feb 16, 2004.

  1. Jason Wilder

    Jason Wilder Guest

    Ok, either I'm just forgetting something since I haven't used a SCR file in
    quite awhile, or I'm going at this wrong. Not to mention my brain doesn't
    function quite the way it used to.... but that's another story.

    I want to batch a directory of files and first thought of creating a loop in
    LISP that would process a script file against each drawing:

    PLOT
    YES
    MODEL
    DWF-EPLOT.PC3
    ANSI A (8.50 X 11.00 INCHES)
    INCHES
    PORTRAIT
    NO
    EXTENTS
    1/4"=1'
    0.00,0.00
    YES
    BW-SMALL.CTB
    YES
    NO
    C:\0-PLOT\%1.DWF
    NO
    YES

    However, when I specify the file being created, I'd obviously like it to
    inherit the name of the DWG.

    So that SD1_10C.DWG = SD1_10C.DWF.

    Please steer me in the right direction for this.

    Thanks.
     
    Jason Wilder, Feb 16, 2004
    #1
  2. Jason Wilder

    dean_bourke Guest

    (strcat(vl-filename-base (getvar"dwgname")) ".dwf")

    Dean
     
    dean_bourke, Feb 16, 2004
    #2
  3. Jason Wilder

    Jason Wilder Guest

    Perfect, thank you Dean.
     
    Jason Wilder, Feb 16, 2004
    #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.