I've tried to create a single plot job that consists of multiple pages. Each
page is a single layer turned on and off in a loop.
To do this using multiple plots is not a problem and if you look at the
Autodesk.AutoCAD.PlottingServices.PlotEngine it looks like you should be
able to do this in a single plot job something like my example. But only the
first page gets printed.
The parameter lastPage in PlotEngine.BeginPage suggests that it should be
able to create a multi-page plot.
Has anyone suceeded with this?
Our application has multiple pages in one drawing.
There is two problems with creating one print job for each page:
1. If I create multiple print jobs and send them to a network printer other
users print jobs can sometimes be created inbetween my pages.
2. I annot create a multi-page PDF file in a simple way. (Need to create
postscript files and merege those with distiller afterwards).
I don't think AutoCAD is capable of sending a multiple page document to a printer as one print job. For both Multi-Sheet DWFs and PDFs we have always had to produce the single files and then merge them (er to a single file. We can't use publish as we are adding data/restoring Layerstates, etc). As for Xerox plotters, we use PJL to create a multi-sheet file that will print as one job. I have tried doing the same for our "B" size Ricohs without any luck.
I had a similar issue and I came up with a work around that you might be interested. The general idea is - when someone plots through AutoCAD, it is always plotted to file (".plt") and save the drawings on the local machine. When everything is plotted you can use the WINSPOOL API to directly communicate to the device you want to plot and using that you can submit a multipage plotting job using the plt files from saved on the local hard drive. A starting point would be to look at the C# wrapper for the WINSPOOL API. If you think this is going to be work in your case let me know and I can send the C# wrapper for the API I am using.