<?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 Re: Using GetParameterAsText() with Cursor. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550053#M42996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I was being too optimistic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the whole code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===============================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import string&lt;/P&gt;&lt;P&gt;import math&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;arcpy.env.overwriteOutput=True&lt;/P&gt;&lt;P&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.CheckOutExtension("Spatial")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Set workspace location, extent and variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INWorkspace = r"D:\PROGRAMMES\LFP_Source_Rocks\ArcGIS\00_LFP_GLOBAL\00_LFP_GLOBAL_Python\WORK_TEST_space\ISLAND_Effect\INPUT.gdb"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.extent = arcpy.Extent(-180.0, -90.0, 180.0, 90.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inFeature = INWorkspace + "\\" + "G_SL_HiStand_20M_J_Tith_m2_0"&lt;/P&gt;&lt;P&gt;outFeature = INWorkspace + "\\" + "HiStand_polygon"&lt;/P&gt;&lt;P&gt;outFeatureAREA = INWorkspace + "\\" + "HiStand_polygonAREA"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Convert polyline feature to polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.FeatureToPolygon_management(inFeature, outFeature, "","NO_ATTRIBUTES", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Calculate area in KM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CalculateAreas_stats(outFeature, outFeatureAREA)&lt;/P&gt;&lt;P&gt;Expr = "(!F_AREA!) / 1000000"&lt;/P&gt;&lt;P&gt;arcpy.CalculateField_management(outFeatureAREA,"F_AREA",Expr,"PYTHON")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Filter by Area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AreaFilter = float(arcpy.GetParameterAsText(0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cur = arcpy.UpdateCursor(outFeatureAREA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for row in cur:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if row.F_AREA &amp;lt;= AreaFilter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.deleteRow(row)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.updateRow(row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;del row&lt;/P&gt;&lt;P&gt;del cur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===============================================================================&lt;/P&gt;&lt;P&gt;If I run the script up to "# Filter by Area" it will create a Polygon Feature Class (HiStand_polygonAREA) with a field called "F_Area" holding all area values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then run the script only from "# Filter by Area" with "HiStand_polygonAREA" as the input feature class (outFeatureAREA) it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the whole script at once it still produces the output required (HiStand_polygonAREA) but it doesn't perform anything within the cursor part, for example, deleting those rows &amp;lt;= than 1000; and I get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/29356_Capture2.JPG" style="width: 620px; height: 315px;" /&gt;&lt;/P&gt;&lt;P&gt;So, I'm lost now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 12:23:45 GMT</pubDate>
    <dc:creator>anTonialcaraz</dc:creator>
    <dc:date>2014-11-12T12:23:45Z</dc:date>
    <item>
      <title>Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550047#M42990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to use the GetParameterAsText() for user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use a value instead, it works fine but not with GetParameterAsText()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;NOT WORKING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WORKING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="29264" alt="Capture.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/29264_Capture.JPG" style="height: auto;" /&gt;&lt;IMG __jive_id="29265" alt="Capture2.JPG" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/29265_Capture2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1415721399281596 jive_text_macro" jivemacro_uid="_1415721399281596"&gt;
&lt;P&gt;AreaFilter = arcpy.GetParameterAsText(0)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;cur = arcpy.UpdateCursor(outFeatureAREA)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;for row in cur:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if row.F_AREA &amp;lt;= AreaFilter:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.deleteRow(row)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.updateRow(row)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;del row&lt;/P&gt;
&lt;P&gt;del cur&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 15:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550047#M42990</guid>
      <dc:creator>anTonialcaraz</dc:creator>
      <dc:date>2014-11-11T15:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550048#M42991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alcaraz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14157221693244812" jivemacro_uid="_14157221693244812"&gt;
&lt;P&gt;AreaFilter = float(arcpy.GetParameterAsText(0))&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 16:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550048#M42991</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-11-11T16:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550049#M42992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jake. Yes, I had already try that. I don't quite understand why it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 10:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550049#M42992</guid>
      <dc:creator>anTonialcaraz</dc:creator>
      <dc:date>2014-11-12T10:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550050#M42993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alcaraz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;AreaFilter = arcpy.GetParameter(&lt;/SPAN&gt;&lt;SPAN class="number" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#If you want to convert to float:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;AreaFilter = float(arcpy.GetParameter(&lt;/SPAN&gt;&lt;SPAN class="number" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: green;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I used this code in v9.3:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;import sys&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;AreaFilter = &lt;/SPAN&gt;sys.argv[1] # The first argument has index number 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps. Good luck!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;Luis&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 10:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550050#M42993</guid>
      <dc:creator>Luis_ÁngelPascual_Camino</dc:creator>
      <dc:date>2014-11-12T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550051#M42994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gracias Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just found that what was going on:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "AreaFilter" field data type on the attribute table was "Double"; that matches the data type for the parameter within the tool properties dialogue box (see image) (there is no "Float" option).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/29355_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, apparently python doesn't like that. I created a new "Float" Area field and used it in the script instead of AreaFilter. Now it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the fact that there is no "Float" option in the Data Type python tool may lead to confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 11:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550051#M42994</guid>
      <dc:creator>anTonialcaraz</dc:creator>
      <dc:date>2014-11-12T11:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550052#M42995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running the tool as a script within ArcMap?&amp;nbsp; If so, what is the Data Type you have specified for this parameter?&amp;nbsp; Try specifying this as a 'Double'.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen1.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/28390_screen1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 11:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550052#M42995</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-11-12T11:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550053#M42996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I was being too optimistic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the whole code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===============================================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import string&lt;/P&gt;&lt;P&gt;import math&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;arcpy.env.overwriteOutput=True&lt;/P&gt;&lt;P&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.CheckOutExtension("Spatial")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Set workspace location, extent and variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INWorkspace = r"D:\PROGRAMMES\LFP_Source_Rocks\ArcGIS\00_LFP_GLOBAL\00_LFP_GLOBAL_Python\WORK_TEST_space\ISLAND_Effect\INPUT.gdb"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.extent = arcpy.Extent(-180.0, -90.0, 180.0, 90.0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inFeature = INWorkspace + "\\" + "G_SL_HiStand_20M_J_Tith_m2_0"&lt;/P&gt;&lt;P&gt;outFeature = INWorkspace + "\\" + "HiStand_polygon"&lt;/P&gt;&lt;P&gt;outFeatureAREA = INWorkspace + "\\" + "HiStand_polygonAREA"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Convert polyline feature to polygon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.FeatureToPolygon_management(inFeature, outFeature, "","NO_ATTRIBUTES", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Calculate area in KM2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CalculateAreas_stats(outFeature, outFeatureAREA)&lt;/P&gt;&lt;P&gt;Expr = "(!F_AREA!) / 1000000"&lt;/P&gt;&lt;P&gt;arcpy.CalculateField_management(outFeatureAREA,"F_AREA",Expr,"PYTHON")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Filter by Area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AreaFilter = float(arcpy.GetParameterAsText(0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cur = arcpy.UpdateCursor(outFeatureAREA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for row in cur:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if row.F_AREA &amp;lt;= AreaFilter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.deleteRow(row)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.updateRow(row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;del row&lt;/P&gt;&lt;P&gt;del cur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;===============================================================================&lt;/P&gt;&lt;P&gt;If I run the script up to "# Filter by Area" it will create a Polygon Feature Class (HiStand_polygonAREA) with a field called "F_Area" holding all area values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I then run the script only from "# Filter by Area" with "HiStand_polygonAREA" as the input feature class (outFeatureAREA) it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run the whole script at once it still produces the output required (HiStand_polygonAREA) but it doesn't perform anything within the cursor part, for example, deleting those rows &amp;lt;= than 1000; and I get this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/29356_Capture2.JPG" style="width: 620px; height: 315px;" /&gt;&lt;/P&gt;&lt;P&gt;So, I'm lost now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550053#M42996</guid>
      <dc:creator>anTonialcaraz</dc:creator>
      <dc:date>2014-11-12T12:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550054#M42997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like the value entered in the script execution dialog window (where you have written the parameter declared into scripts parameters) is a literal like "HiStand_polygon" and it cannot be converted to float.Have you entered a number in this parameter at execution time?&lt;/P&gt;&lt;P&gt;Is it the only one or do you have more parameters? You know the order is important, the first parameter declared has position number 0, the second has 1, and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't think anything else, well, only one comment: why don't you get the parameter at the beginning of the script?&lt;BR /&gt;Maybe you can isolate the problem. I mean that there are others function calls along the code and the script can override the "parameter" value with the last one executed. (I don't know exactly, it's only an intuition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 12:48:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550054#M42997</guid>
      <dc:creator>Luis_ÁngelPascual_Camino</dc:creator>
      <dc:date>2014-11-12T12:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using GetParameterAsText() with Cursor.</title>
      <link>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550055#M42998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Luis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put the parameter at the beginning of the script (as I normally do actually) and now IT WORKS!&lt;/P&gt;&lt;P&gt;That "rule" seems obviously to be important and I'm sure there is an explanation for it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-getparameterastext-with-cursor/m-p/550055#M42998</guid>
      <dc:creator>anTonialcaraz</dc:creator>
      <dc:date>2014-11-12T13:27:47Z</dc:date>
    </item>
  </channel>
</rss>

