Change in API Printing Behavior for AutoCAD 2015
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?