<?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 TopoToRaster Tool Execute problem in ArcGIS in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/topotoraster-tool-execute-problem-in-arcgis/m-p/410680#M2757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;I am trying to execute TopoToRaster tool (ArcToolbox&amp;gt;3D Aanalyst Tool&amp;gt;Raster Interpolation&amp;gt;Topo To Raster) in arcGis 10.0 with .NET. &lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/net_api_ref/GP/topic1638.html" title="http://edndoc.esri.com/arcobjects/9.2/net_api_ref/GP/topic1638.html"&gt;TopoToRaster Class Members&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;But get exceptions. My code is here :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt; private ESRI&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGIS&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Analyst3DTools&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;TopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;InitTool&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;out object beginningEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; _gp &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; new &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Geoprocessor&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;OverwriteOutput&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;AddOutputsToMap&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; false &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;};&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; beginningEnvironmentValue &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _gp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GetEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"workspace"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; _gp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SetEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"workspace"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _workspace&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;PathName&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; _gp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SetEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"scratchWorkspace"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _workspace&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;PathName&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; var topoToRaster &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; new ESRI&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGIS&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Analyst3DTools&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;TopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; in_topo_features &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _inputFeature&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,//&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;new &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;InputFeatureTopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _inputFeature&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(),&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Field&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"HGL"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Type&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"CONTOUR"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; out_surface_raster &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _outputRaster&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;};&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; topoToRaster&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt;private readonly object _inputFeature&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; private readonly string _outputRaster&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt; public &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;class&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;InputFeatureTopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; public string &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; set&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; public string &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Field&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; set&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; public string &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Type&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; set&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="padding-right: 10px; padding-left: 10px; border-left-color: transparent; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #eeeeee;"&gt;&lt;BLOCKQUOTE class="jive-quote" style="padding: 10px; border-left-color: transparent; background-color: #eeeeee;"&gt;&lt;P&gt;_inputFeature: is the input feature class path.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;what is the problem of my input?? I have also tried with class of InputFeature&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2016 04:43:22 GMT</pubDate>
    <dc:creator>MonirRahman</dc:creator>
    <dc:date>2016-02-04T04:43:22Z</dc:date>
    <item>
      <title>TopoToRaster Tool Execute problem in ArcGIS</title>
      <link>https://community.esri.com/t5/developers-questions/topotoraster-tool-execute-problem-in-arcgis/m-p/410680#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;I am trying to execute TopoToRaster tool (ArcToolbox&amp;gt;3D Aanalyst Tool&amp;gt;Raster Interpolation&amp;gt;Topo To Raster) in arcGis 10.0 with .NET. &lt;/SPAN&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/net_api_ref/GP/topic1638.html" title="http://edndoc.esri.com/arcobjects/9.2/net_api_ref/GP/topic1638.html"&gt;TopoToRaster Class Members&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;But get exceptions. My code is here :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt; private ESRI&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGIS&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Analyst3DTools&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;TopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;InitTool&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;out object beginningEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; _gp &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; new &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Geoprocessor&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;OverwriteOutput&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; true&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;AddOutputsToMap&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; false &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;};&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; beginningEnvironmentValue &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _gp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;GetEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"workspace"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; _gp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SetEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"workspace"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _workspace&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;PathName&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; _gp&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;SetEnvironmentValue&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"scratchWorkspace"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _workspace&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;PathName&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; var topoToRaster &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; new ESRI&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ArcGIS&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Analyst3DTools&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;TopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; in_topo_features &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _inputFeature&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,//&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;new &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;InputFeatureTopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;()&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _inputFeature&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;(),&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Field&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"HGL"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Type&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: maroon;"&gt;"CONTOUR"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; out_surface_raster &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; _outputRaster&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;};&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;return&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; topoToRaster&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt;private readonly object _inputFeature&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; private readonly string _outputRaster&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;"&gt;&lt;SPAN class="pln" style="color: black;"&gt; public &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #00008b;"&gt;class&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;InputFeatureTopoToRaster&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; public string &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; set&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; public string &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Field&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; set&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&amp;nbsp; public string &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Type&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; set&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: black;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;SPAN class="pun" style="color: black;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote" style="padding-right: 10px; padding-left: 10px; border-left-color: transparent; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: #eeeeee;"&gt;&lt;BLOCKQUOTE class="jive-quote" style="padding: 10px; border-left-color: transparent; background-color: #eeeeee;"&gt;&lt;P&gt;_inputFeature: is the input feature class path.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;what is the problem of my input?? I have also tried with class of InputFeature&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em; font-size: 15px; color: #222426; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);"&gt;thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 04:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/topotoraster-tool-execute-problem-in-arcgis/m-p/410680#M2757</guid>
      <dc:creator>MonirRahman</dc:creator>
      <dc:date>2016-02-04T04:43:22Z</dc:date>
    </item>
  </channel>
</rss>

