<?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 Con condition Expression arcobjects error in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656448#M17590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All.&lt;/P&gt;&lt;P&gt;Below is the code for con opertor in arcmap.&lt;/P&gt;&lt;P&gt;When i execute it gives me the error.Pls suggest and show to me where is something wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rasModel = New RasterModelClass&lt;/P&gt;&lt;P&gt; rasModel.BindRaster(slopeRDN, "slope")&lt;/P&gt;&lt;P&gt; strExpression = "Con" + "(" + """" + "[slope]" + """" + "&amp;gt;" + "0" + "," + """" + "[slope]" + """" + "," + "0.000001" + ")"&lt;/P&gt;&lt;P&gt;&amp;nbsp; rasModel.Script = strExpression---error throw on this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:010084 invalid command or expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thanks in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 06:36:47 GMT</pubDate>
    <dc:creator>NadirHussain</dc:creator>
    <dc:date>2015-01-14T06:36:47Z</dc:date>
    <item>
      <title>Con condition Expression arcobjects error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656448#M17590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All.&lt;/P&gt;&lt;P&gt;Below is the code for con opertor in arcmap.&lt;/P&gt;&lt;P&gt;When i execute it gives me the error.Pls suggest and show to me where is something wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rasModel = New RasterModelClass&lt;/P&gt;&lt;P&gt; rasModel.BindRaster(slopeRDN, "slope")&lt;/P&gt;&lt;P&gt; strExpression = "Con" + "(" + """" + "[slope]" + """" + "&amp;gt;" + "0" + "," + """" + "[slope]" + """" + "," + "0.000001" + ")"&lt;/P&gt;&lt;P&gt;&amp;nbsp; rasModel.Script = strExpression---error throw on this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:010084 invalid command or expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thanks in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 06:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656448#M17590</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2015-01-14T06:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Con condition Expression arcobjects error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656449#M17591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Dear All.&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Below is the code for con in map aljebra.&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;When i execute it gives me the error.Pls suggest and show to me where is something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;rasModel = New RasterModelClass&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;rasModel.BindRaster(slopeRDN, "slope")&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;strExpression = "Con" + "(" + """" + "[slope]" + """" + "&amp;gt;" + "0" + "," + """" + "[slope]" + """" + "," + "0.000001" + ")"&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp; rasModel.Script = strExpression&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; rasModel.execute()&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.63636302948px; font-family: inherit;"&gt;Error:010084 invalid command or expression.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.63636302948px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.63636302948px; font-family: inherit;"&gt;thanks in advance&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 07:07:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656449#M17591</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2015-01-14T07:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Con condition Expression arcobjects error</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656450#M17592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you just you the expression below? There is no need to divide the expression into small parts and then concatenate it. The raster [slope] should not be in between quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con([slope] &amp;gt; 0, [slope], 0.000001)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 12:28:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/con-condition-expression-arcobjects-error/m-p/656450#M17592</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-14T12:28:12Z</dc:date>
    </item>
  </channel>
</rss>

