错误 IAutocadPlotFailed - 绘图仪异步运行

Error IAutocadPlotFailed - Plotter runs async

我在 Autocad VBA 宏中得到了 error IAutocadPlotFailed。 我的代码遍历一组绘图和绘图并将它们保存为 png。 我设法将错误缩小为绘图机制 运行 异步。

由于只能有一个 Plotting 机制的实例,如果代码移动速度比 Plot 快。它打印出一个错误。

有什么方法可以让剧情运行与app同步吗?

Meaning if i call the plotting mechanism inside Autocad to wait until it calls the next plot.

BACKGROUNDPLOT 系统变量确定是否打开或关闭后台打印以进行打印和发布(从 AutoCAD 脚本文件发布打印时除外);如果启用后台绘图,绘图作业将使用单独的线程异步处理。

如果将此系统变量设置为 0,所有绘图作业都将在前台处理。