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

AutoCAD crashing when using VB.NET PublishExecute

3 REPLIES 3
Reply
Message 1 of 4
pp713
541 Views, 3 Replies

AutoCAD crashing when using VB.NET PublishExecute

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)

3 REPLIES 3
Message 2 of 4
Virupaksha_aithal
in reply to: pp713

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.



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
pp713
in reply to: Virupaksha_aithal

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

 

Message 4 of 4
mdesksmartin
in reply to: pp713

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!

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