【发布时间】:2015-10-27 00:19:33
【问题描述】:
我正在编写一个从 dsd 文件发布图形的 AutoCAD 工具。虽然 DSD 文件有相关行“IncludeLayer=True”,但发布方法并没有推送图层信息。我试图通过无法识别的数据添加它,但是我仍然没有得到图层信息。有什么想法吗?
dsdData.ReadDsd(project.DSDPath);
dsdData.SetUnrecognizedData("IncludeLayer", "True");
PlotConfig plotConfig = Autodesk.AutoCAD.PlottingServices.PlotConfigManager.SetCurrentConfig("DWG To PDF.pc3");
Autodesk.AutoCAD.Publishing.Publisher publisher = Autodesk.AutoCAD.ApplicationServices.Application.Publisher;
publisher.PublishExecute(dsdData, plotConfig);
【问题讨论】:
-
你能快速尝试一下用 TRUE(大写)代替 True 吗?
-
我很高兴这行得通。我可以以某种方式将您的评论标记为答案吗?非常感谢!
-
添加为答案 :-) 谢谢!
标签: c# autocad autocad-plugin