<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic IGeoProcessor failing on Export to CAD execute in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/igeoprocessor-failing-on-export-to-cad-execute/m-p/175157#M4529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I'm trying to execute a the "Export to CAD" tool through a C# webservice.&amp;nbsp; I'm using an IGeoProcessor2 and executing like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeoProcessorResult result = gp.Execute("ExportCAD_conversion",parameters,null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The parameters are an IVariantArray that's built out like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add("DWG_R2007");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(outputfile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Immediately upon executing, a COMException is caught that tells me "Error HRESULT E_FAIL has been returned from a call to a COM component".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried several variations on the parameters, the GeoProcessor, the outputfile, using a FeatureClass instead of a FeatureLayer, it always fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's stranger is the fact that this method works when I try to do another tool.&amp;nbsp; (In this case, "Clip_analysis")&amp;nbsp; Both tools are set up and executed the same way (well, except for slightly different parameters), but one fails and the other doesn't and I can not figure out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help, tip, suggestion, comment would be greatly appreciated here.&amp;nbsp; I've been banging my head on this for almost a week now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 19:05:26 GMT</pubDate>
    <dc:creator>WilliamKimrey</dc:creator>
    <dc:date>2013-06-26T19:05:26Z</dc:date>
    <item>
      <title>IGeoProcessor failing on Export to CAD execute</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/igeoprocessor-failing-on-export-to-cad-execute/m-p/175157#M4529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I'm trying to execute a the "Export to CAD" tool through a C# webservice.&amp;nbsp; I'm using an IGeoProcessor2 and executing like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IGeoProcessorResult result = gp.Execute("ExportCAD_conversion",parameters,null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The parameters are an IVariantArray that's built out like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add("DWG_R2007");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parameters.Add(outputfile);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Immediately upon executing, a COMException is caught that tells me "Error HRESULT E_FAIL has been returned from a call to a COM component".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried several variations on the parameters, the GeoProcessor, the outputfile, using a FeatureClass instead of a FeatureLayer, it always fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's stranger is the fact that this method works when I try to do another tool.&amp;nbsp; (In this case, "Clip_analysis")&amp;nbsp; Both tools are set up and executed the same way (well, except for slightly different parameters), but one fails and the other doesn't and I can not figure out why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help, tip, suggestion, comment would be greatly appreciated here.&amp;nbsp; I've been banging my head on this for almost a week now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 19:05:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/igeoprocessor-failing-on-export-to-cad-execute/m-p/175157#M4529</guid>
      <dc:creator>WilliamKimrey</dc:creator>
      <dc:date>2013-06-26T19:05:26Z</dc:date>
    </item>
  </channel>
</rss>

