<?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: 10.1 beta and comtypes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382046#M30105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for sharing, this is encouraging.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2011 15:51:10 GMT</pubDate>
    <dc:creator>JasonScheirer</dc:creator>
    <dc:date>2011-11-11T15:51:10Z</dc:date>
    <item>
      <title>10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382043#M30102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been really busy this year and only just now started looking at the 10.1 beta.&amp;nbsp; I noticed that the current version of comtypes croaks when trying to wrap esriSystem.olb.&amp;nbsp; Fortunately, you can remedy this by adding the following entry to the _ctype_to_vartype dictionary in automation.py:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POINTER(BSTR): VT_BYREF|VT_BSTR,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there's a better approach I'd like to hear about it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also note that arcpy.da approaches ArcObjects via comtypes in terms of performance.&amp;nbsp; To query and hydrate ~500,000 polygons from a file GDB feature class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.0SP3:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcObjects/comtypes: 31 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SearchCursor: 96 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.1 Beta:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-----------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcObjects/comtypes: 21 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SearchCursor: 85 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.da.SearchCursor: 27 sec&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 17:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382043#M30102</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2011-11-10T17:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382044#M30103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nice. Could you share your code? Have you tried benchmarking against a cursor without a shape field or using one of the Shape@XY etc shortcuts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 21:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382044#M30103</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-11-10T21:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382045#M30104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arcpy.da blows away ArcObjects for accessing table fields in a file gdb:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcObjects/comtypes (Shape_Area): 13 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SearchCursor (Shape_Area): 65 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.da.SearchCursor (Shape_Area): 2 sec&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.da.SearchCursor (SHAPE@AREA): 14 sec&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 13:37:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382045#M30104</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2011-11-11T13:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382046#M30105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for sharing, this is encouraging.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 15:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382046#M30105</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-11-11T15:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382047#M30106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just curious, but is the da module using numpy recarrays? or is it some com wrapper thing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 17:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382047#M30106</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-11-11T17:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382048#M30107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A little of column a, a little of column b.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 19:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382048#M30107</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-11-11T19:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 beta and comtypes</title>
      <link>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382049#M30108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jason ... oh you all revealing types &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 20:01:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-beta-and-comtypes/m-p/382049#M30108</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-11-11T20:01:31Z</dc:date>
    </item>
  </channel>
</rss>

