.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
rajputabhijit
978 Views, 1 Reply

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

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.

1 REPLY 1
Message 2 of 2

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.

 

jvj

jvj

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost