New Member
Posts: 1
Registered: ‎06-26-2012
Message 1 of 2 (515 Views)

Plotting to a PDF file with a custom page size using .NET API

515 Views, 1 Replies
06-26-2012 11:08 AM

I have AutoCAD 2007 on my machine.I have made a dll using AutoCAD.NET API which does the task of plotting a DWG harness drawing to a pdf file.I specify the device name and the page size to be plotted in a AutoCAD.NET method SetPlotConfigurationName(ps,"DWG To PDF.pc3",papersize).It works fine as long as I keep on giving default paper sizes.But, when I create a custom paper size using the plot configuration editor which in turn produces a new .pc3 file and when I include the same as the device name in the above mentioned method,it does not work.It throws an exception as eInvalidInput.kindly suggest me some solution on this.

Posts: 165
Registered: ‎08-26-2010
Message 2 of 2 (477 Views)

Re: Plotting to a PDF file with a custom page size using .NET API

07-12-2012 04:21 PM in reply to: rajputabhijit

Don't create the custom paper dynamically.  Pre create it.  Then with some code, read the paper sizes within the PC3 file, you'll find that it's name is goofy like a serial number.  that's what you have to code too.  I discovered this with HP printers and custom papersizes.




You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community