We are having issues with AutoCAD 2014 crashing when using VB.NET PublishExecute.
We create a DSD file and PublishExecute to publish all layout in the DWG to a single DWF file.
The debug verson works fine and does not crash.
The release verson always crashes.
Anyone else have this issue?
Application.Publisher.PublishExecute(dsdData, plotConfig)
Hi,
try running the code provided in http://adndevblog.typepad.com/autocad/2012/04/publishing-all-layouts-of-the-drawing-file-to-a-dwf-fi... The code is using the same API.
The following code crashed:
----
Dim plotConfig As PlotConfig = Autodesk.AutoCAD.PlottingServices.PlotConfigManager.CurrentConfig
---
Chaning it to like the sample as show below fixed it - very strange.
Using plotConfig As PlotConfig = Autodesk.AutoCAD.PlottingServices.PlotConfigManager.CurrentConfig
Application.Publisher.PublishExecute(dsdData, plotConfig)
EndUsing
we were having the same issue with PublishExecute where any Release builds would cause an unhandled exception (AutoCAD 2014).
adding a Using statement for the PlotConfig resolved the issue for us. Thanks!