使用ArcEngine的 Gp工具(Geoprocessor) 开发CAD导出时,
执行 m_Geoprocessor.Execute(m_ExportCAD, null);
会返回null,这时通过
for (int i = 0; i < m_Geoprocessor.MessageCount; i++)
{
lstMessages.Add(m_Geoprocessor.GetMessage(i));
}
可以查看错误的相关信息,其中有几句
Failed to execute (ExportCAD)
Error code: 000824: The tool is not licensed
Failed to execute,Parameters are not valid.
查看了ArcEngine的license,替换了各种license,也没有解决问题。
大家猜猜怎么解决的?
呵呵,装了9.3的sp1补丁就解决了。
原来9.3存在bug,对CAD支持的不好,包括加载dwg文件,标记会显示成乱码,只要装了补丁就一并解决了。
本文介绍了解决在使用ArcEngine进行CAD导出时遇到的问题,包括错误代码000824,提示未授权和参数无效的情况。最终通过安装9.3的SP1补丁成功解决了这一问题。
4295

被折叠的 条评论
为什么被折叠?



