.NET

Reply
Active Member
Akanath
Posts: 7
Registered: ‎11-15-2012
Message 1 of 5 (364 Views)

FATAL ERROR with Core Console (Automate plotting)

364 Views, 4 Replies
11-21-2012 03:05 AM

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

 

 

 

Active Member
Akanath
Posts: 7
Registered: ‎11-15-2012
Message 2 of 5 (325 Views)

Re: FATAL ERROR with Core Console (Automate plotting)

11-26-2012 01:57 AM 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 ?

ADN Support Specialist
Balaji_Ram
Posts: 715
Registered: ‎03-21-2011
Message 3 of 5 (291 Views)

Re: FATAL ERROR with Core Console (Automate plotting)

12-03-2012 08:27 AM 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

Active Member
Akanath
Posts: 7
Registered: ‎11-15-2012
Message 4 of 5 (287 Views)

Re: FATAL ERROR with Core Console (Automate plotting)

12-03-2012 08:40 AM 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

 

 

Active Member
Akanath
Posts: 7
Registered: ‎11-15-2012
Message 5 of 5 (263 Views)

Re: FATAL ERROR with Core Console (Automate plotting)

12-04-2012 01:41 AM 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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.