Plotting to PDF - file names ?

Discussion in 'AutoCAD' started by cf, Apr 1, 2004.

  1. cf

    cf Guest

    All,
    When using a PC3 that points to Adobe Acrobat 6, is there a way to pass the
    file name so the user isn't prompted ?

    This will create a PLT file with a PDF extension.
    (BTW, I dim out and set the PDFFile elsewhere in the code)

    ThisDrawing.Plot.PlotToFile (PDFFile)
    ThisDrawing.Plot.PlotToDevice "PDF.pc3"

    If I remove this line:
    ThisDrawing.Plot.PlotToFile (PDFFile)
    a correct PDF is created, however, the user is prompted for the name and
    location.
    This is the only PC3 that I cannot pass info into and have it work silently.

    Many thanks.
     
    cf, Apr 1, 2004
    #1
  2. That's an option of the Window's driver and needs to be set there - not
    thru code or AutoCAD.
     
    Mike Tuersley, Apr 1, 2004
    #2
  3. cf

    Ed Jobe Guest

    Instead of "plotting" from acad, reference the PdfMakerX tlb and "convert"
    it. There, you can supply the file name.
     
    Ed Jobe, Apr 1, 2004
    #3
  4. cf

    cf Guest

    Thanks - I was able to uncheck the "Prompt for PDF filename..." option in
    the PDF System printer, and now the PDF is created silently, however, it
    uses the drawing name + layout name and places it in the last place a PDF
    was created.
    So, essentially, I can have it not prompt me for a PDF filename, but I
    cannot tell it the name and location that I want, right ?
     
    cf, Apr 2, 2004
    #4
  5. What is the value of ChDir prior to plotting ?
     
    Mark Gardiner, Apr 2, 2004
    #5
  6. cf

    Kevin Terry Guest

    But you could automatically rename the file afterwards...

    Kevin
     
    Kevin Terry, Apr 5, 2004
    #6
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.