<?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: trying to learn in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27658#M2100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Back when things were fun, you could do stuff like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toeNails = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toeNails.Clip_analysis(inputFC, clipFC, outputFC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now we only have arcpy &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess standards are good though...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2011 15:05:11 GMT</pubDate>
    <dc:creator>ChrisSnyder</dc:creator>
    <dc:date>2011-04-21T15:05:11Z</dc:date>
    <item>
      <title>trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27656#M2098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In arcsscripting python code I see this statement all the time...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then all the functions of the arcgisscripting package are addressed similar to this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something = gp.updateCursor(...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in arcpy I rarely (if ever) see that same convention... its &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;something = arcpy.updateCursor(...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;instead.&amp;nbsp; Why the difference?&amp;nbsp; Also, sometimes my autocomplete typing assist window after the . in arcpy. doesn't drop down a list even though the package has been imported and is in memory.&amp;nbsp; What would be the cause of that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 14:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27656#M2098</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-21T14:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27657#M2099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Back in the old days :), that's they way you created the geoprocessing module.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting module, setting a 9.3 version:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the native arcgisscripting module (before 9.3):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...Then, going way back to the caveman days, it was done like this!...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using COM IDispatch interface:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import win32com.client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 14:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27657#M2099</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2011-04-21T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27658#M2100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Back when things were fun, you could do stuff like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toeNails = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toeNails.Clip_analysis(inputFC, clipFC, outputFC)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now we only have arcpy &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess standards are good though...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 15:05:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27658#M2100</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-04-21T15:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27659#M2101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ah yes...;) progress.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about the autocomplete... why does it work only sometimes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 15:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27659#M2101</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-21T15:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27660#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Autocomplete in v9.3 or v10?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My understanding is that one of the reasons ESRI made arcpy an actual python sitepackage/module is so that autocomplete would rein. Not sure in v10 why it wouldn't work all the time no matter what IDE you were using (except of course Notepad or something like that). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In v9.3, there was some sort of bastard version of autocomplete that basically would only show just the gp methods (like .updatecursor or .setproduct). It would also display any tools/methods that you had used during that session - i.e. ones that were still in the memory (like Clip).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that one of the shortcomings of the autocomplete functionality in arcpy is that all the methods MUST now be proper case. Because of this I have a lot of code re-writing to do to be arcpy-compliant! For example, in v10 it must be arcpy.UpdateCursor() and not arcpy.updatecursor().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 16:03:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27660#M2102</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-04-21T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27661#M2103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Back when things were fun, you could do stuff like:&lt;BR /&gt;&lt;BR /&gt;import arcgisscripting&lt;BR /&gt;toeNails = arcgisscripting.create(9.3)&lt;BR /&gt;toeNails.Clip_analysis(inputFC, clipFC, outputFC)&lt;BR /&gt;&lt;BR /&gt;Now we only have arcpy &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I guess standards are good though...&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's some funny stuff, Chris! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;R.D.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 16:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27661#M2103</guid>
      <dc:creator>RDHarles</dc:creator>
      <dc:date>2011-04-21T16:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27662#M2104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Autocomplete in v9.3 or v10?&lt;BR /&gt;&lt;BR /&gt;My understanding is that one of the reasons ESRI made arcpy an actual python sitepackage/module is so that autocomplete would rein. Not sure in v10 why it wouldn't work all the time no matter what IDE you were using (except of course Notepad or something like that). &lt;BR /&gt;&lt;BR /&gt;In v9.3, there was some sort of bastard version of autocomplete that basically would only show just the gp methods (like .updatecursor or .setproduct). It would also display any tools/methods that you had used during that session - i.e. ones that were still in the memory (like Clip).&lt;BR /&gt;&lt;BR /&gt;I know that one of the shortcomings of the autocomplete functionality in arcpy is that all the methods MUST now be proper case. Because of this I have a lot of code re-writing to do to be arcpy-compliant! For example, in v10 it must be arcpy.UpdateCursor() and not arcpy.updatecursor().&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy... but it seems to be exhibiting the behavior you describe for v9.3.&amp;nbsp; If it is something I've already typed out, it shows up in the list, but if I haven't typed it previously, it doesn't show up.&amp;nbsp; This is something that I just noticed yesterday.&amp;nbsp; Prior to that I'm sure the list was always complete.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 16:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27662#M2104</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-21T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27663#M2105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In addition to not giving me autocomplete, when I start the ( paranthesis it used to give me the parameters that the function expected, but it's not doing that either anymore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 17:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27663#M2105</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-21T17:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27664#M2106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What IDE (PythonWin, Eclipse, etc.) are you using? Maybe there is some setting somewhere in the IDE? I really don't know... Sadly, I'll admit that v10 is still too buggy for my likes, so I'm still doing most of my heavy lifting in 9.3.1 still, so my knowledge of auto complete functionality in v10 is really masked by ignorance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, here's a story though that may be enlightening. I made a hokey custom python module a long while back (called lmpy.py). It had a bunch of useful little functions in it like sending email, recursive searches, listing fields/field properties of a table, etc. It was basically set up like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#lmpy.py
def fieldExists(table, fieldName):
&amp;nbsp;&amp;nbsp; """Returns a list indicating boolean if field exists, if True also the place"""
&amp;nbsp;&amp;nbsp; blah
&amp;nbsp;&amp;nbsp; blah

def doThat(param1,param2,param3)
&amp;nbsp;&amp;nbsp; """Does this, that, and the other"""
&amp;nbsp;&amp;nbsp; blah
&amp;nbsp;&amp;nbsp; blah&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And when placed in the proper folder (one of the folders that sys.path references), the lmpy module works like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import lmpy
&amp;gt;&amp;gt;&amp;gt; lmpy.fieldExists(myTable, "FIELD1")
[True, 3]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The great thing I found, is without even trying, the thing had auto complete functionality "built in", so for example after I typed "lmpy." I got a pick list of all the functions available in the module, and upon picking one, it would tell you what the method did (that's the """" part).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With v10, there is a folder: C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy, and it is chock full of .py files that are basically what my module is... A bunch of functions that define/control the Python auto complete functionality. For example, a brief excerpt of arc.py (which references all the ArcInfo Workstation coverage tools):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@gptooldoc('CollapseDualLinesToCenterline_arc', None)
def CollapseDualLinesToCenterline(in_cover=None, out_cover=None, maximum_width=None, minimum_width=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """CollapseDualLinesToCenterline_arc(in_cover, out_cover, maximum_width, {minimum_width})

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Derives centerlines (single lines) from dual-line features, such as road
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; casings, based on specified width tolerances.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUTS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_cover (Coverage):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The coverage containing near parallel dual lines, such as road casings, from
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; which centerlines are derived.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; maximum_width (Double):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sets the maximum width in coverage units.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; minimum_width {Double}:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sets the minimum width in coverage units. The default is zero.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUTS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_cover (Coverage):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The output coverage containing the derived centerlines. The output coverage name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; must be different from the input coverage name."""
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.CollapseDualLinesToCenterline_arc(*gp_fixargs((in_cover, out_cover, maximum_width, minimum_width), True)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return retval
&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e

@gptooldoc('Dissolve_arc', None)
def Dissolve(in_cover=None, out_cover=None, dissolve_item=None, feature_type=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Dissolve_arc(in_cover, out_cover, dissolve_item, {feature_type})

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Creates a new coverage by merging adjacent polygons, lines, or regions that have
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the same value for a specified item.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUTS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_cover (Coverage):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The coverage containing features to be dissolved.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dissolve_item (String):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The item in the in_cover feature attribute table that is used to dissolve
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Dissolve_itemâ�?��?�An item name will be used to perform the dissolve. The item may
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; be a redefined item.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * #ALLâ�?��?�All items past the cover-ID in the PAT, AAT, or region subclass PAT will
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; be used as a single dissolve item. If there are no items past the cover-ID, then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the cover-ID will be used.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature_type {String}:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The feature classes to be preserved in the output coverage:

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * POLYâ�?��?�Polygons will be dissolved; an AAT will not be created for the output
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coverage. This is the default option.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * LINEâ�?��?�Nodes will be dissolved; a PAT will not be created for the output
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coverage.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * NETâ�?��?�Polygons will be dissolved, and both a PAT and AAT will be created for the
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output coverage.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * REGION.subclassâ�?��?�Region subclass will be dissolved, and all existing attributes
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; of the input coverage will be maintained in the output coverage.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUTS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_cover (Coverage):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The coverage to be created. The output coverage cannot already exist."""
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.Dissolve_arc(*gp_fixargs((in_cover, out_cover, dissolve_item, feature_type), True)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return retval
&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e

@gptooldoc('Eliminate_arc', None)
def Eliminate(in_cover=None, out_cover=None, info_express=None, polygon_boundary=None, feature_type=None, selection_file=None, polygon_option=None):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Eliminate_arc(in_cover, out_cover, info_express;info_express..., {polygon_boundary}, {feature_type}, {selection_file}, {polygon_option})

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Merges the selected polygons with neighboring polygons if they have the largest
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared border or the largest area.Eliminate is often used to remove sliver
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygons created during polygon overlay
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or buffering. With the LINE option, Eliminate merges selected arcs separated by
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pseudo nodes into single arcs.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUTS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_cover (Coverage):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The coverage whose selected polygons or arcs will be merged into neighboring
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; info_express (INFO Expression):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; An INFO query containing one or more logical expressions to select features from
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the input coverage.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Reselectâ�?��?�Reduces the selected set of records with a selection expression to
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; those that meet its criteria. If no selection expression follows, the selected
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set will be empty.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Aselectâ�?��?�Adds unselected records that meet the selection expression criteria to
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the currently selected set. If no selection expression follows, the selected set
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; will contain all features.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Nselectâ�?��?�Reverses the current selection to the unselected set.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon_boundary {Boolean}:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ensures that polygons along the coverage boundary are not altered.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * NO_KEEP_EDGEâ�?��?�Allows the elimination of outer polygon boundaries. This is the
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * KEEP_EDGEâ�?��?�Is only used with the POLYGON option. Any polygon which is a
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; neighbor of the background polygon will not be eliminated when KEEP_EDGE is
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; specified.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; feature_type {String}:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The feature class(es) to be eliminated in the Output Coverage. This parameter is
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only used for polygon coverages.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * POLYâ�?��?�Polygon features will be eliminated; an AAT will not be created for the
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output Coverage.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * LINEâ�?��?�Line features will be eliminated; a PAT will not be created for the
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output Coverage.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; selection_file {File}:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A Selection File is a preexisting file that identifies which features will be
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; used.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon_option {Boolean}:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Specifies which method will be used for eliminating polygons. This parameter is
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only used for polygon coverages.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * BORDERâ�?��?�Merges a selected polygon with a neighboring unselected polygon by
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dropping an Arc. The neighboring polygon is the one with the longest shared
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; border. This is the default and the way Eliminate worked with the POLY option in
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all pre-6.1.1 releases.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * AREAâ�?��?�Merges a selected polygon with a neighboring unselected polygon by
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dropping an Arc. The neighboring polygon is the one with the largest area.

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUTS:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_cover (Coverage):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The new coverage with all the selected sliver polygons merged into larger
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; features. There should be a smaller number of polygons than the Input Coverage
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; contains."""
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.Eliminate_arc(*gp_fixargs((in_cover, out_cover, info_express, polygon_boundary, feature_type, selection_file, polygon_option), True)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return retval
&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:07:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27664#M2106</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-10T21:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27665#M2107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;PythonWin is what I'm using.&amp;nbsp; I haven't made any changes to my desktop, no setting changes, no installs, no upgrades, no maintenance (within the time period)... it worked fine a couple of days ago, and now it doesn't. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I used lmpy.py about a year ago in a class I took on programming for arcGIS.&amp;nbsp; I found it somewhere and it had what I needed for my project.&amp;nbsp; Thanks for that.&amp;nbsp; I haven't really used python since that class, however I do use VBA on a daily basis (not for arcGIS though) so not only am I trying to learn new syntax in python, but applying that to arcGIS projects as well, and then having it not do what I expect is slowing me down a bit.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 20:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27665#M2107</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-21T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27666#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;used lmpy.py about a year ago&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ha! That's so cool &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doubt it would help, but when ArcMap starts acting wonkey on me, one of my last ditch efforts is to delete/rename the normal.mxt file (it's in your profile directory - might be called something else in v10 though). The benefit is ArcMap then behaves like brand new, the downside is ALL your customizations are deleted (buttons, toolboxes, everything). Maybe there is something akin to normal.mxt for arcpy? I have no idea... Could you have somehow tuned off auto complete in the ArcGIS python window, and it somehow stuck for other IDEs somehow? Worth a shot... Just make a backup of normal.mxt first if it doesn't work!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will say that some of us had to learn gp/arcpy/whatever scripting without auto complete. As within many things though, once you have something cool, it hard to go back! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 21:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27666#M2108</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2011-04-21T21:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27667#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Could you have somehow tuned off auto complete in the ArcGIS python window&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, in the arcGIS python window the auto complete works just fine.&amp;nbsp; It's only in PythonWin that it is as described above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 15:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27667#M2109</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-22T15:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: trying to learn</title>
      <link>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27668#M2110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I don't know what happened, but now auto complete is working.&amp;nbsp; The only thing I did was to open the python window in arcGIS to see if it worked there and now it's working in pythonWin as well.&amp;nbsp; Go figure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 15:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/trying-to-learn/m-p/27668#M2110</guid>
      <dc:creator>TerrySilveus</dc:creator>
      <dc:date>2011-04-22T15:49:21Z</dc:date>
    </item>
  </channel>
</rss>

