阅读:2485回复:5
ArcGIS9.2的数据转换工具(源码)
<STRONG>ArcGIS9.2的数据转换工具<BR></STRONG>
<P>谁在代码里用ESRI.ArcGIS.ConversionTools.ExportCAD将PDB数据转换成DWG数据没?</P> <P>怎么总是得不到正确结果呢?</P> <P> ESRI.ArcGIS.ConversionTools.ExportCAD exportCAD = new ExportCAD();</P> <P> exportCAD.in_features = @"D:\10.Data\Data.mdb\XZQH\Xingzhen_M";<BR> exportCAD.Output_Type = @"DWG-R2004";<BR> exportCAD.Output_File = @"C:\22.dwg";</P> <P> exportCAD.Append_To_Existing = true;<BR> exportCAD.Ignore_FileNames = true;</P> <P> ESRI.ArcGIS.Geoprocessing.IGeoProcessorResult result;<BR> result = (IGeoProcessorResult)geoProcessor.Execute(test, null);</P> <P> if (result != null)<BR> {<BR> while (result.Status == esriJobStatus.esriJobSucceeded)<BR> {<BR> for (int Count = 0; Count <= result.MessageCount - 1; Count++)<BR> {<BR> Console.WriteLine(result.GetMessage(Count));<BR> }</P> <P> }<BR> }</P> <P>初始化权限时我已经将扩展模块加进去了</P> <P>if (!m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB, esriLicenseProductCode.esriLicenseProductCodeArcInfo },<BR> new esriLicenseExtensionCode[] { esriLicenseExtensionCode.esriLicenseExtensionCodeDataInteroperability, esriLicenseExtensionCode.esriLicenseExtensionCodeSpatialAnalyst }))</P> |
|
|
1楼#
发布于:2007-04-16 14:04
<P>你可以在arcgis帮助里查看</P>
<P>Export to CAD (Conversion) (ArcInfo only)</P> <P>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.</P> |
|
|
2楼#
发布于:2007-04-14 11:40
<img src="images/post/smile/dvbbs/em02.gif" />
|
|
3楼#
发布于:2007-04-13 19:35
<img src="images/post/smile/dvbbs/em01.gif" />
|
|
4楼#
发布于:2007-04-09 16:35
<P>当然没有了,Result值为空</P>
|
|
|
5楼#
发布于:2007-04-09 15:54
你得到说明结果?
|
|
|