Ploting from Autocad

Ploting from Autocad

dancalgary
Enthusiast Enthusiast
747 Views
4 Replies
Message 1 of 5

Ploting from Autocad

dancalgary
Enthusiast
Enthusiast

Hello,

I copy - paste the code used for plotting from the

AutoCAD .NET Developer's Guide - Plot from model space - works using as a printer:
 acPlSetVdr.SetPlotConfigurationName(acPlSet, "DWF6 ePlot.pc3","ANSI_A_(8.50_x_11.00_Inches)")
 
but when I change the line with:

            acPlSetVdr.SetPlotConfigurationName(acPlSet,"Oce TDS320", "Oce D+ 24x36 in")

 
it is not working. I have an error at this line.
the Plotter I have is on the network
the name is correct - as shown the Paper name is correct.
see the snapshot of the control panel.
 
What I am doing wrong here?
 
Thanks
 
 
0 Likes
748 Views
4 Replies
Replies (4)
Message 2 of 5

augusto.goncalves
Alumni
Alumni

The code sound correct, but maybe the name is different (from AutoCAD perspective)

 

Can you quick try list and double check the names? See the code at http://adndevblog.typepad.com/autocad/2012/05/how-to-list-the-canonical-media-names-of-a-ploter.html

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 5

Anonymous
Not applicable

Try replacing the spaces in the paper size name, with underscores.  That worked for me.

-Pete

0 Likes
Message 4 of 5

dancalgary
Enthusiast
Enthusiast

i used

acPlSetVdr.SetPlotConfigurationName(acPlSet,"Oce TDS320", "Oce_D+_24x36_in")

does not work

the first sugestion with getcanonicalmedianamelist is giving me this list

User2322
User1298
User2321
User1297
User2320
User1296
User2319
User1295
User2318
User1294
User1293
User1292
User1291
User2314
User1290
User2313
User1289
User2312
User1288
User2311
User1287
User1286
User2309
User1285
User2308
User1284
User2307
User1283
User2306
User1282

 

Means those are my paper sizes defined?

0 Likes
Message 5 of 5

fieldguy
Advisor
Advisor

Have you created a pc3 file called "Oce TDS320.pc3"?  It looks as if you are trying to print to a windows printer and the setplotconfigurationname wants the name of a pc3 (plot config) file.

 

 

0 Likes