I'm trying to automate plotting DWG to make PDF.
My File :
My DWG has one model and one paperspace with view of the model.
Each view can have many viewport and has a cartridge.
My Goal :
I want a PDF File. One view per page.
My method :
I have an intermediate step, which create many Postscript File(One per View)
The second step use GhostScript to concate PS Files in a PDF.
1st step : Read DWG File to create script file, in order to automate plotting with AccoreConsole.exe. My method give me the point for plotting in a window with both corner.
2d step : Use the Script File and Software like (TRUEVIEW or ACCORECONSOLE(Autocad 2013) to create PS Files.
Last step : Run GhostScript to make my PDF File as I wish.
It works with DWGTrueView, but I would like a silent mode for executing.
Solution ==> use AccoreConsole.exe include in Autocad 2013
Using Accoreconsole with a ProcessStartInfo, I realized that accoreconsole.exe can raised error that DWGTrueView didn't raised.
It works with some files, but sometimes, it's crashed, and I don't understand why.
Do you have any idea ?
For exemple, a file that succeed with DWGTrueView
I havent come across any such limit.
Can you please share a non-confidential drawing along with the steps to reproduce the crash ?
This is my Dwg File and his associated script.
The plot don't work and catch a FATAL ERROR.
Thank you for you reply.
For information, my virtual printer makes postscript file.
My script who don't work as Attachement :
_plot y COMETE_PS.pc3 COMETE (420.00 x 297.00 mm) m L _N _w 0,2400 387,2674 f c _n . _n _y _y _n _y C:\test.PS _n y quit
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.