Discussion:
Plotting to PDF - file names ?
(too old to reply)
cf
2004-04-01 18:53:45 UTC
Permalink
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.
Mike Tuersley
2004-04-01 22:27:47 UTC
Permalink
That's an option of the Window's driver and needs to be set there - not
thru code or AutoCAD.
--
___________________________
Mike Tuersley
CADalyst's AutoCAD Clinic
Rand IMAGINiT Technologies
Ed Jobe
2004-04-01 22:48:41 UTC
Permalink
Instead of "plotting" from acad, reference the PdfMakerX tlb and "convert"
it. There, you can supply the file name.
--
----
Ed
----
Post by Mike Tuersley
That's an option of the Window's driver and needs to be set there - not
thru code or AutoCAD.
--
___________________________
Mike Tuersley
CADalyst's AutoCAD Clinic
Rand IMAGINiT Technologies
cf
2004-04-01 23:24:04 UTC
Permalink
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 ?
Post by Mike Tuersley
That's an option of the Window's driver and needs to be set there - not
thru code or AutoCAD.
--
___________________________
Mike Tuersley
CADalyst's AutoCAD Clinic
Rand IMAGINiT Technologies
Kevin Terry
2004-04-05 11:58:49 UTC
Permalink
But you could automatically rename the file afterwards...

Kevin
Post by cf
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 ?
Post by Mike Tuersley
That's an option of the Window's driver and needs to be set there - not
thru code or AutoCAD.
--
___________________________
Mike Tuersley
CADalyst's AutoCAD Clinic
Rand IMAGINiT Technologies
Mark Gardiner
2004-04-02 21:50:50 UTC
Permalink
What is the value of ChDir prior to plotting ?
Post by cf
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"
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.
Continue reading on narkive:
Loading...