默认头像
路人甲
路人甲
  • 注册日期2004-09-02
  • 发帖数72
  • QQ
  • 铜币387枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:2512回复:5

ArcGIS9.2的数据转换工具(源码)

楼主#
更多 发布于:2007-04-09 11:54
ArcGIS9.2的数据转换工具

谁在代码里用ESRI.ArcGIS.ConversionTools.ExportCAD将PDB数据转换成DWG数据没?

怎么总是得不到正确结果呢?

  ESRI.ArcGIS.ConversionTools.ExportCAD exportCAD = new ExportCAD();

           exportCAD.in_features = @"D:\10.Data\Data.mdb\XZQH\Xingzhen_M";
           exportCAD.Output_Type = @"DWG-R2004";
           exportCAD.Output_File = @"C:\22.dwg";

           exportCAD.Append_To_Existing = true;
           exportCAD.Ignore_FileNames = true;

           ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult result;
           result = (IGeoProcessorResult)geoProcessor.Execute(test, null);

           if (result != null)
           {
               while (result.Status == esriJobStatus.esriJobSucceeded)
               {
                   for (int Count = 0; Count <= result.MessageCount - 1; Count++)
                   {
                       Console.WriteLine(result.GetMessage(Count));
                   }

               }
           }

初始化权限时我已经将扩展模块加进去了

if (!m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB, esriLicenseProductCode.esriLicenseProductCodeArcInfo },
           new esriLicenseExtensionCode[] { esriLicenseExtensionCode.esriLicenseExtensionCodeDataInteroperability, esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst }))

喜欢0 评分0
http://www.geostar.com.cn(吉奥 公司) http://www.waterblue.com.cn(水之灵,蓝之静 个人)
默认头像
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
1楼#
发布于:2007-04-09 15:54
你得到说明结果?
GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
默认头像
路人甲
路人甲
  • 注册日期2004-09-02
  • 发帖数72
  • QQ
  • 铜币387枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2007-04-09 16:35

当然没有了,Result值为空

http://www.geostar.com.cn(吉奥 公司) http://www.waterblue.com.cn(水之灵,蓝之静 个人)
举报 回复(0) 喜欢(0)     评分
默认头像
路人甲
路人甲
  • 注册日期2006-06-17
  • 发帖数3108
  • QQ
  • 铜币6445枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2007-04-13 19:35
举报 回复(0) 喜欢(0)     评分
默认头像
路人甲
路人甲
  • 注册日期2006-03-05
  • 发帖数57
  • QQ
  • 铜币264枚
  • 威望0点
  • 贡献值0点
  • 银元0个
4楼#
发布于:2007-04-14 11:40
举报 回复(0) 喜欢(0)     评分
默认头像
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
5楼#
发布于:2007-04-16 14:04

你可以在arcgis帮助里查看

Export to CAD (Conversion) (ArcInfo only)

This function will create one or more CAD drawings based on the values contained in one or more input feature classes or feature layers and supporting tables.

GIS麦田守望者,期待与您交流。
举报 回复(0) 喜欢(0)     评分
默认头像

返回顶部