• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    Active Member
    Posts: 7
    Registered: ‎11-15-2012

    FATAL ERROR with Core Console (Automate plotting)

    198 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

     

     

     

    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎11-15-2012

    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 ?

    Please use plain text.
    ADN Support Specialist
    Balaji_Ram
    Posts: 343
    Registered: ‎03-21-2011

    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

    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎11-15-2012

    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

     

     

    Please use plain text.
    Active Member
    Posts: 7
    Registered: ‎11-15-2012

    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.

    Please use plain text.