【问题标题】:C# AutoCAD Publish not including layer informationC# AutoCAD Publish 不包括图层信息
【发布时间】: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


【解决方案1】:

请使用 true 和大写

dsdData.SetUnrecognizedData("IncludeLayer", "TRUE");

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-08
    • 1970-01-01
    • 2021-08-14
    • 1970-01-01
    • 2013-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多