Change in API Printing Behavior for AutoCAD 2015

Change in API Printing Behavior for AutoCAD 2015

davidh
Explorer Explorer
390 Views
1 Reply
Message 1 of 2

Change in API Printing Behavior for AutoCAD 2015

davidh
Explorer
Explorer

I have .NET code that I use for printing that works well with AutoCAD 2013, but when we upgraded to 2015 a small change happened. In 2015, when printing metric drawings only, the lineweights all come out thin (we use .CTB files). I can print these same files manually and they turn out correct, but when using my function they come out all thin. I can make the plot look the same way manually by changing the plot scale from 1mm = 1 unit to 1 inches = 25.4 units, which is what I suspect might be happening under the hood.

 

Note that I didn't change my code from one platform to the next, and it worked fine in 2013. The code for setting the scale in the plot function looks like this:

 

' '' Set the plot scale

acPlSetVdr.SetUseStandardScale(acPlSet, True)

acPlSetVdr.SetStdScaleType(acPlSet, StdScaleType.StdScale1To1)

acPlSetVdr.SetPlotPaperUnits(acPlSet, PlotPaperUnit.Millimeters)

 

Any ideas?

0 Likes
391 Views
1 Reply
Reply (1)
Message 2 of 2

SENL1362
Advisor
Advisor
I've seen plot unit issues in previous versions of AutoCAD but where all related to Printer Drivers or CTB files. Sometimes the problems could be solved creating the CTB files from scratch within the newer AutoCAD versions.
0 Likes