.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FATAL ERROR with Core Console (Automate plotting)

4 REPLIES 4
Reply
Message 1 of 5
Akanath
778 Views, 4 Replies

FATAL ERROR with Core Console (Automate plotting)

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.

 

The steps:

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.

 

 

Problem :

Old method
It works with DWGTrueView, but I would like a silent mode for executing.

Solution ==> use AccoreConsole.exe include in Autocad 2013

 

New method

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

 

 

 

4 REPLIES 4
Message 2 of 5
Akanath
in reply to: Akanath

Is it possible that the object number in file has any limit ?

If it's the problem, can we delete this limit ?

Message 3 of 5
Balaji_Ram
in reply to: Akanath

Hello,

 

I havent come across any such limit.

 

Can you please share a non-confidential drawing along with the steps to reproduce the crash ?

 

Thank you.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Message 4 of 5
Akanath
in reply to: Akanath

Hello

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

 

 

Message 5 of 5
Akanath
in reply to: Akanath

It seems not to work with my postscript (420*297 mm) printer.

But it works with a PDF printer.

I work on it.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost