Kean Walmsley

July 2009

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Twitter Updates

    follow me on Twitter



    « It's all in the context: adding a default menu to your AutoCAD application using .NET | Main | Creating a partial CUI file using .NET and loading it inside AutoCAD »

    May 10, 2007

    TrackBack

    TrackBack URL for this entry:
    http://www.typepad.com/services/trackback/6a00d83452464869e200d835110b7153ef

    Listed below are links to weblogs that reference Automating batch printing of DWF files using Design Review 2008:

    Comments

    Thank you for your example. It was very helpful for me.
    I have a question. I created a new plotter using "Autodesk ePlot (PDF)". When I use AutoCAD's Plot command, it takes couple of seconds to produce the PDF file. However, when I try to generate the plot through the code, after pe.EndPlot(null), it takes between 30 Sec to a minute till PDF gets created. I have to actually test the ProcessPlotState during this time as I don’t want to return the control while PDF is not ready.
    Any idea why it takes so much longer to produce the PDF this way?

    Hi Artem,

    It could be that background plotting is switched on. If the BACKGROUNDPLOT sysvar is set to 1 or 3, then PLOT will background plot. This doesn't explain why the command takes less time than your code, but it's a direction in which to start your investigations.

    Regards,

    Kean

    Hi Kean,

    That was it! Setting BACKGROUNDPLOT sysvar to zero resolved the issue.

    Thanks,
    Artem

    Kean,

    I'm a VB.NET programmer and need to write a Windows Service that prints DWF files. Can I use the Design Review API to print DWF files using VB.NET? Any basic code examples would be very helpful as well.

    Thanks in advance!

    Yes, you should be able to, though I don't have specific source code showing how to.

    I'd personally be happier with implementing a web service to do this than a Windows service (which I don't know for sure will work with ADR as a component).

    Regards,

    Kean

    Thanks for the quick reply. Any ideas where I could get source code examples using Design Review in VB.NET?

    The ADR API documentation includes some sample code in C#, VB6 and JavaScript. C# or VB6 should be a good start for VB.NET.

    Kean

    I'm currently working with the batch printing and it's working properly. I'm dynamically creating the BPJ file in C# and then running the batch. The problem I'm having is trying to set the Page Range for printing. No matter what I put in this variable, it will print all the pages of a DWF. I'd like to only print the first page in the DWF. In fact when I'm using the Batch Print Wizard in Design Review it grays out all of the options to choose a page range in the Print Settings, "All" is the only option you can select. Do you know why this is?

    Hi JD,

    Sorry - I don't know why that is.

    Regards,

    Kean

    Verify your Comment

    Previewing your Comment

    This is only a preview. Your comment has not yet been posted.

    Working...
    Your comment could not be posted. Error type:
    Your comment has been posted. Post another comment

    The letters and numbers you entered did not match the image. Please try again.

    As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

    Having trouble reading this image? View an alternate.

    Working...

    Post a comment

    Feed & Share

    Search