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

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

559 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: 170
Registered: ‎08-26-2010
Message 2 of 2 (521 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.



Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.