C# AutoCAD Publish 不包括图层信息

C# AutoCAD Publish not including layer information

我正在编写一个 AutoCAD 工具,用于从 dsd 文件发布绘图。虽然DSD文件有相关行"IncludeLayer=True",但是publish方法并没有推送图层信息。我试图通过无法识别的数据添加它,但我仍然没有获得图层信息。有什么想法吗?

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大写

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