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

Ploting from Autocad

4 REPLIES 4
Reply
Message 1 of 5
dancalgary
482 Views, 4 Replies

Ploting from Autocad

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
 
 
4 REPLIES 4
Message 2 of 5

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
Message 3 of 5
elliottpd11
in reply to: dancalgary

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

-Pete

Message 4 of 5
dancalgary
in reply to: elliottpd11

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?

Message 5 of 5
fieldguy
in reply to: dancalgary

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.

 

 

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