I'm using ArcGis 10.0. While output is faulty cad file
public static void convertGdb2Cad(string fromFile, string toFile) {
Geoprocessor GP = new Geoprocessor(); ESRI.ArcGIS.ConversionTools.ExportCAD tool = new ESRI.ArcGIS.ConversionTools.ExportCAD(); //tool.in_features = "d:/lzx/data/road/test.gdb/line1"; //tool.Output_File = "d:/lzx/data/cadfile1.dwg"; tool.in_features = fromFile; // this OK tool.Output_File = toFile; // this OK tool.Output_Type = "DWG_R2007"; GP.Execute(tool, null); //**Errors here when run** *Error HRESULT E_FAIL has been returned from a call to a COM component.* //MessageBox.Show("ok"); }
How to fix this
أكثر...
public static void convertGdb2Cad(string fromFile, string toFile) {
Geoprocessor GP = new Geoprocessor(); ESRI.ArcGIS.ConversionTools.ExportCAD tool = new ESRI.ArcGIS.ConversionTools.ExportCAD(); //tool.in_features = "d:/lzx/data/road/test.gdb/line1"; //tool.Output_File = "d:/lzx/data/cadfile1.dwg"; tool.in_features = fromFile; // this OK tool.Output_File = toFile; // this OK tool.Output_Type = "DWG_R2007"; GP.Execute(tool, null); //**Errors here when run** *Error HRESULT E_FAIL has been returned from a call to a COM component.* //MessageBox.Show("ok"); }
How to fix this
أكثر...