Batch pdf not working

I use the lisp below to batch create pdf's thru bullzip. The problem is it keeps printing them in portrait mode instead of landsape. Everything is done in model space, fit to print....etc. Nothing fancy here just need landscape mode. Is there a way to set Bricscad to plot in landscape instead of always defaulting to portrait? Maybe someone can add something to this routine to make it work. It worked fine on another system but not on my current one. I checked the bullzip.pc3 file and it's set to landscape.

[code]PCode bplot:

(defun C:BPLOT (/ )

(if (not dos_dir) (arxload "DOSLib12.brx"))

(setq files (dos_getfilem "Select files to print.." "C:\\""Drawing Files (*.dwg)|*.dwg"))

(setq dwgpath (car files))

(if (/= files nil)

(progn

(foreach dwgfile (acad_strlsort (cdr files))

(command ".open" (strcat dwgpath dwgfile))

(command
  "_.plot"
 
 "_no"            ; Detailed plot configuration? Yes/:

  ""               ; Enter a layout name or [?] :

  "_previous plot" ; Enter a page setup name <>:

  "bullzip PDF printer.pc3"               ; Enter an output device name or [?] :

  "_no"            ; Write the plot to a file? Yes/:

  "_no"            ; Save changes to page setup? Yes/:

  "_yes"           ; Proceed with plot? /No:

)

(command ".qsave")

(command ".close")

)

)

)

)
ASTE CODE HERE[/code]

Comments

  • My v12 seemed to forget its previous setup after a few individual consecutive plots.

    I haven't used v13 long enough to know if that's still a problem, I keep encountering other things which don't work as well as v11.

    Pdf-xchange and pdf995 before never gave trouble, both do a better job than bcad's pdf export and v13's doesn't do round circles.

    Landscape always comes out right (v11, pdfxchange), but when I print an A1 pdf to the plotter the setup says it will be portrait.

    That's sort of correct because A1 plots are sideways, but normally the plotter re-orientates A1 plots said to be landscape.

  • @ Tim:
    In your code you do not perform a detailed plotter configuration but use the "_previous plot" page setup. This means that the results of your code (portrait/landscape) will depend on whatever happens to be the "_previous plot".
    You should either perform a detailed plotter configuration or create a special page setup to be used with your code.
  • Thanks for the feedback. I ended up revising the code so that it hits return at the page setup prompt and that so far seems to have fixed it. When I get time I'm going to have to study up more on page setups, still a confusing concept for me. If they are stored items like layers how do you get them into a multitude of drawings when batch plotting without a lot of tedious work?
This discussion has been closed.